- Joined
- Oct 2, 2013
- Messages
- 95
So I decided to learn vJASS and now, in order to get some skills, I'm converting some of the main spells on my map ( that are GUI ) to vJASS. I was using multiple triggers per spell when I found out that on vJASS, i would only need a single trigger per spell.
So lets suppose I've got a spell that first triggers when spell is cast, displaying the message "It's cast!" and then, on a periodic event, damages the target of that spell by x.
On GUI, I would use 2 triggers - One with "Unit casts a spell" event and other on a "Every 1 seconds of game time".
How It is possible to achieve such effect in vJASS with a single trigger?
Also, another lil question : On vJASS, I wouldn't need to use indexing for MUI spells right? I could use private vars inside a scope for the same purpose?
So lets suppose I've got a spell that first triggers when spell is cast, displaying the message "It's cast!" and then, on a periodic event, damages the target of that spell by x.
On GUI, I would use 2 triggers - One with "Unit casts a spell" event and other on a "Every 1 seconds of game time".
How It is possible to achieve such effect in vJASS with a single trigger?
Also, another lil question : On vJASS, I wouldn't need to use indexing for MUI spells right? I could use private vars inside a scope for the same purpose?