QUOTE(DT_Battlekruser @ Dec 7 2004, 12:45 AM)
What are they and why are they used?
a) see above
b) Like said above, it is useful to have a faster trigger check time
How do they work?
The Starcraft game engine automatically checks triggers every two seconds and during every wait. Having a trigger with 62 wait 0 actions will cause Starcraft to checks triggers 62 times in quick succession (because it checks trigs during waits). With one HT trigger, the effect is linear and pobabally not desired. But adding a second trigger doesn't double the effect, it squares it. Starcraft reads the first wait in the first trigger. That is a wait, so it checks all other triggers. It runs other triggers then comes to your second hypertrigger. It will then rapidly check your trigger 62 times because of the second trigger, then it will go back to the second wait of the first trigger and so on, Eventually, the block of Hypertriggers will end, but with 3 HT triggers it is something like 3 hours and with 4 its is 5 weeks.
The way to calculate this length is simply (The number of wait actions in the trigger)^(the number of HT triggers). This is how many times it will check triggers before it reaches the end of the waits. Multiply it by 84mS (the speed triggers are checked with the wait) to get the time in milliseconds.
Question to the HT masters> Wouldn't the time between trigger fires under HTs vary by how many triggers you had? I mean if you have 6000 triggers, it would take longer to run through than 1 wouldn't it?
EDIT: spelling
[right][snapback]107467[/snapback][/right]
Pretty good. The equation for the amount of times it waits isn't that simple however. Also no the time it takes hyper triggers to fire doesn't vary with the amount of triggers. Triggers without a wait fire in sequince but so fast you can't tell the differance. I don't think you will ever have so many triggers that it actually would take your computer 84 milli seconds to calculate them all.
QUOTE(Deadalus @ Dec 7 2004, 10:02 AM)
But if all the triggers are checked during waits and you use 2 HT he will check all trigger double right ??? and if you use 3 HT then it will check everything triple.... so if you use extreemly much HT's and much 'normal' triggers the game will go slower because a computer can only do 1 thing at a time (bottleneck stuff) and the game will slow down.... or am I telling

now ?
I think you'll a hell lot of HT's and normal trigger for it thou
[right][snapback]107512[/snapback][/right]
Uhh quite simply, Yeah your telling

.
A trigger can only be checked to run once, as soon as i is checked to run it starts running its actions, it cannot start up again unless it is finished all the actions. Mulitple hyper triggers do not cause any effect like that because only one wait fires at a time.
Triggers themselfs do not cause lag but the things that happen as a result of there actions can and very often do cause lag. For an example, say you had a trigger that always creates 50 marines then kills them. Without hyper triggers it would run fine (maybe). But when you add hyper triggers you might notice your map starting to lag. It isn't lagging because the hyper triggers make it lag. It is lagging because there are being alot more marines being created and killed. The units and there death sprites are alot more processor insinsive than the simple trigger that creates them.