| 11-27-2003, 03:39 AM | #1 |
Does anyone have a list of what variables are local variables and which ones are global? the ones like "attacked unit", "leveling unit" and that sort of thing. |
| 11-27-2003, 06:22 AM | #2 |
Well too my knowledge there is no difference between the two regarding on what type they are. There are no special Globals that are not Locals and vice versa. |
| 11-27-2003, 06:38 AM | #3 |
All the functions are local to the trigger they're used in. All user-defined variables are globals. Oh an exception: Integer A and Integer B. They are actually global variables as far as I can tell, which makes them annoying to use if you've got waits. |
| 11-27-2003, 07:52 AM | #4 |
Well, Globals are basically what you put in the Variable Editor in the trigger editor. Locals are variables that only used in one instance (use) of a trigger. Thats why locals are popular alternatives to globals, since there isn't the confusion and bugs between triggers if you have waits. |
| 11-27-2003, 01:31 PM | #5 |
Integer A, Integer B , every "last created (insert) " , and the "Picked (insert) " are global variables , the other things that are mostly event responses are kind of local functions that work for the trigger and every trigger executed from it |
