sentrywiz
S
sentrywiz
Hi all.
I would like to know if I can use custom scripts and little jass knowledge to circumvent a major problem. Here is what I mean:
In GUI I need to create Timers for every player separately because Timers with arrays cannot be put into events (why I still don't know) and because I have lots of effects from spells and items I want to trigger I am basically left with one of three choices:
- Make Timer for every effect, for every player (so 10 timer variables per effect... NICE!)
- Make integer / real variables to "act" like timers and make a "every X seconds" trigger that will increase / decrease their values
- Use JASS to create local timers
So can anyone tell me how can I make a local timer for Player X that I can later on check in condition that the timer's value is 0?
I would like to know if I can use custom scripts and little jass knowledge to circumvent a major problem. Here is what I mean:
In GUI I need to create Timers for every player separately because Timers with arrays cannot be put into events (why I still don't know) and because I have lots of effects from spells and items I want to trigger I am basically left with one of three choices:
- Make Timer for every effect, for every player (so 10 timer variables per effect... NICE!)
- Make integer / real variables to "act" like timers and make a "every X seconds" trigger that will increase / decrease their values
- Use JASS to create local timers
So can anyone tell me how can I make a local timer for Player X that I can later on check in condition that the timer's value is 0?