Greetings,
What is the best way to use local variables in drag-and-drop (or, misleadingly, "GUI") scripting?
In this particular case I need to simulate arguments (considering Triggers as functions/methods). My strategy is basically to set a regular global variable for each argument before running the method-like Trigger and setting local variables based on these at the beginning of the scripts of that Trigger so that global variables are only relied on during the call (and thus not exposed) and then replaced by local variables used throughout the "method".
And no, I'm too much of a persistent slacker to start writing JASS (again).
Thanks, much.
What is the best way to use local variables in drag-and-drop (or, misleadingly, "GUI") scripting?
In this particular case I need to simulate arguments (considering Triggers as functions/methods). My strategy is basically to set a regular global variable for each argument before running the method-like Trigger and setting local variables based on these at the beginning of the scripts of that Trigger so that global variables are only relied on during the call (and thus not exposed) and then replaced by local variables used throughout the "method".
And no, I'm too much of a persistent slacker to start writing JASS (again).
Thanks, much.