Hey there.
I'm trying to make a JASS spell and I know I'm not good at it but had a question regarding Globals.
In GUI you can make variables and well they get made at map initialisation basically. Now I want to do exact the same thing in JASS so I want to make a trigger that does nothing but making a few 'variables' at map initialisation for later use.
How should I do this?
The globals I need to store are:
real SpellUnitX[11][200] and real SpellUnitY[11][200]
Please dont ask me lots of questions about the "why". I just want to try this thing on my way. I don't care if there are more efficient ways but I just like to do something on my own and see how it goes.
Some better explanation:
I use SpellUnitX[][] and SpellUnitY[][] in 2 different triggers so I got to make them global but I don't know how I should do that because the 1st trigger activates on spellcast and the other one has a 0.04 repeating timer.
I'm trying to make a JASS spell and I know I'm not good at it but had a question regarding Globals.
In GUI you can make variables and well they get made at map initialisation basically. Now I want to do exact the same thing in JASS so I want to make a trigger that does nothing but making a few 'variables' at map initialisation for later use.
How should I do this?
The globals I need to store are:
real SpellUnitX[11][200] and real SpellUnitY[11][200]
Please dont ask me lots of questions about the "why". I just want to try this thing on my way. I don't care if there are more efficient ways but I just like to do something on my own and see how it goes.
Some better explanation:
I use SpellUnitX[][] and SpellUnitY[][] in 2 different triggers so I got to make them global but I don't know how I should do that because the 1st trigger activates on spellcast and the other one has a 0.04 repeating timer.