I'm creating a library that needs to access external functions and variables but I get compile errors. Here are some specific examples.
Accessing External Variables
This throws a compile error. As a workaround I think I could create another "GetGameData" library and use it as a requirement. This library could have functions to get various pieces of game data and I could call these functions on map init. Is this the right way to go about it?
Accessing External Functions
I need a library to call a function outside of it's scope. Only problem is the function it's trying to use is NOT from a library. It's just normal Jass. Is there any way to use these functions without converting the whole Jass to a VJass library and using it as a requirement?
Accessing External Variables
JASS:
globals
private timer array musicTimers[udg_MAXNUMBERPLAYERS]
endglobals
This throws a compile error. As a workaround I think I could create another "GetGameData" library and use it as a requirement. This library could have functions to get various pieces of game data and I could call these functions on map init. Is this the right way to go about it?
Accessing External Functions
I need a library to call a function outside of it's scope. Only problem is the function it's trying to use is NOT from a library. It's just normal Jass. Is there any way to use these functions without converting the whole Jass to a VJass library and using it as a requirement?