I think this is of interest to everyone so I'll put it here instead of just for myself in the question thread.
Ever since I visited here it seems to me like there have been much confusion around the "loop" function in triggers.
If you put a trigger on loop, does it or does it not check the condition every time? For example, if your condition is timer: 3, and it activates a GP, does the GP fire continuously after 3 seconds is reached? Or does it fire once after every 3 seconds?
I hope this will clear things up.
[This message has been edited by darkdude (edited 04-17-2007 @ 09:26 PM).]
Author
Replies:
enjoy eternal bliss Mortal
(id: Jakwarrior)
posted 17 April 2007 10:50 PM
EDT (US)
1 / 8
It checks the condition every time.
███
andrewv42 Mortal
posted 18 April 2007 00:23 AM
EDT (US)
2 / 8
Whne you're looping a trigger, you're looping the entire trigger, including the conditions, so yes, Jakwarrior is right, it always checks the condition first.
So, in this case, it will just wait till 3 seconds are reached, do the effect, start counting again, wait till 3 seconds are reached since last time it did the effect, do the effect again, etc.
So why do many people seem to think otherwise and use "fire event" instead? Where did - perhaps the biggest myth in design history - come from?
SyncViews Mortal
posted 18 April 2007 05:37 PM
EDT (US)
5 / 8
Most likely one of these people who know nothing but like to think they know everything so just talk rubbish and people belive them.
Paperfriend Mortal
posted 18 April 2007 05:40 PM
EDT (US)
6 / 8
It would be funny to see in some maps however, you put an old man next to an unit in the blood map, and the unit keeps on coming, you can then start the spawning of the other units, like an instant army in 3 seconds once you have most units unlocked
(Since it would no longer check the 'Timer' condition).
Yes, periods and smileys are the same for me No matter what you say
SyncViews Mortal
posted 18 April 2007 06:03 PM
EDT (US)
7 / 8
heres something i'm not sure about the timer and don't have the time to test. If the conditions are.
A timer set to 5 seconds
An army in area.
Does it simply check if the army is there every 5 seconds or does it check if the army is there and then wait 5 seconds to make sure the army is still there?
DrL_God3999 Mortal
posted 18 April 2007 08:02 PM
EDT (US)
8 / 8
it checks every condition, and all of it has to match for it to work or it wont.