Everys are basicaly timers, every <INSERT TIME> seconds a every will execute its code as long as its enabled. Using them you can for example check areas of the map to see if any units are there.
Every 0$01 doTrigger Everys
// Insert Code
enabled; // We want to keep it going forever!
Trigger everys are slightly different to the basic ones. The trigger ones only run the code between its begin and end when the trigger is true. The trigger is similer to an if then statement.
Every 0$01 trigger SomeVarible = 1 doTime
// Insert Code
// Note we don't need an enabled; since this will keep its self alive
// until Somevarible = 1. Then this code will be ran and it will be disabled.
0$01 means 1 second. Anything after the $ is considered to be in seconds and anything b4 the $ is considered to be in minutes. i.e 11$34 is 11 minutes 34 seconds.Marked Every's
If you want to remotely disable or enable multiple every's one at time or multiple times, you can MARK them. Here's what you have to write:
every 0$01 MARKED 01 do //the number after MARKED is the every's mark. It's like id for units.
here goes the code
Now, somewhere in the code:
Now, a few words about marks: you can give only integer marks, like 01, 22 or other. You cannot write any words. Use the marked every's when you have multiple every's which cannot run at one time, for example:
every 0$01 MARKED 01 do
every 0$01 MARKED 02 do
//Now, I don't like fruits
//Now I like apples
//Now I STILL like apples
//Now I like bananas
//Now I like strawberry ;]