My largest chapter in my WIP relies on an ill-advised number of *temp variables. In my pursuit of quick debug code that will allow me to jump directly to the part of the game I’m currently testing, I tried moving the initialization of these temp variables from the beginning of the scene file, into a *label that can be invoked by *gosub.
When I playtest this, it works well and serves the exact purpose I had hoped for – two clicks, and I’m at the part I need to test.
However, it fails quicktest.
I can’t reasonably continue developing without quicktest, of course, so if I can’t make it work I’ll revert to a simpler version of the testing code… but I’d rather not. I haven’t dug into how the variable initialization works behind the scenes, so I don’t know if this is a limitation of the scripting abilities, or a feature that was added to CS by design. I could conceivably convert the variables in question into regular old *create statements… but that’s a lot of work.
Has anyone ever tried initializing *temp variables in a gosub?