Squishinator
New Member
- Reaction score
- 3
I have gotten them to work only sometimes, and if i cant do it then please explain any other way to gradually increase exp(not including an every x seconds trigger).
Just use periodic event.
Code:Events Time - Every 2.00 seconds of game time Conditions Actions Hero - Add 10 experience to (the hero), Hide level-up graphics
And when you want the xp not to add, turn the trigger off.
Waits works fine with loops, however a problem can arise if you have many loops. The editor uses the same variable to iterate through loop, for example integer a, and if you have a loop with waits that uses this variable, and another loop without waits which also uses that variable is executed, the loop with the wait will mess up because integer a has been used as iterator in the loop without wait.
how does someone go about fixing this mess Tom?
JASS, using local integers for your loops, or using custom variables in GUI.
but when you use custom variables in GUI, you have to give it an array and check which arrays aren't being used and it becomes yucky.
loop a
loop b
put the exp gain per hero here if using array
otherwise, nested loops won't be a good way to go
endloop b
wait goes here
endloop a