by DST » Fri Apr 17, 2009 1:58 am
One thing i'd like you all to learn from this demo, is to notice how i didn't use timers for timed events. I only used one timer, to send a global event to the dudes, but all the rest i used counting variables for timers. Its soooo much easier to change, and one variable can be an unlimited number of timers.
For instance, make the timer count up, and when it reaches 60, reset it to 0 and do something. Now, what happens if i set the variable to 61 in an event? well, i can let it count up and perform another action at 100. By cueing the variable one after the last event, you simply trigger the new event. Thus, unlimited actions off one counter.
and to trigger the timer? how about control.limit=61; instead of CreateTimer("control", "1", 60);
I said this in response to J's question about the freeze ray; i should have just set the variable to make it last longer, thus freezing them so you can use another weapon on them while they're still frozen; fortunately.....thats REALLY EASY TO DO!
And 4erv, take two things into consideration: I've spent more time on GE than most World Of Warcraft players have spent playing world of warcraft. Practice practice practice!