- Joined
- Aug 7, 2013
- Messages
- 1,338
Hi,
For using LUA scripts, I have to use the blocks like this:
But how can I make a global variable in one block which exists in all the other separate blocks? Kind of like global variables in JASS--once you declare it, all other triggers can see it.
So basically I'd like to have this
Block of Globals
Block of unit objects (separate trigger)
Block of item objects
etc..
All on separate triggers to make code readable (my units object code is already many many pages long >_>, I don't want to put another 10,000 lines of code for items just to use some constants that I calculated from units).
For using LUA scripts, I have to use the blocks like this:
JASS:
//! externalblock extension=lua ObjectMerger $FILENAME$
...
//! endexternalblock
But how can I make a global variable in one block which exists in all the other separate blocks? Kind of like global variables in JASS--once you declare it, all other triggers can see it.
So basically I'd like to have this
Block of Globals
JASS:
//! externalblock extension=lua ObjectMerger $FILENAME$
//My list of global variables
//! endexternalblock
Block of unit objects (separate trigger)
Block of item objects
etc..
All on separate triggers to make code readable (my units object code is already many many pages long >_>, I don't want to put another 10,000 lines of code for items just to use some constants that I calculated from units).