Hello, i've been making a map and i have some troubles with triggers.
First: I wanted to make such a thing that a shuttle flies in and drops (creates) some units. It creates some, then waits, creates again..waits, and the creates the final units. (waiting is not long ~1000 miliseconds)
When i made a trigger to create units, it always makes it double. I.e. if i want to create 5 marines it makes 10.
2nd: I added a second unit drop trigger. Then for some reason the first drop got buggy, it creates only the first units, then when it is supposed to wait only 1000 miliseconds, it waits for almost a minute if not more.
3rd: the second drop units creation is not double, like the first one (so if i want 5 marines i get 5 marines ), even though the triggers are the same, the only difference is location names, and units.
So maybe anyone knows what makes triggers work weird, and create double units, or make short waits longer?
Your problem with it waiting for too long probably is because of a wait block, if a player has too multiple waits active at the same time, they "stack up", and actions after the waits occur only once ALL of the waits are complete. Instead of using waits, you can use a deathcount system (
http://www.staredit.net/index.php?tutorial=124 scroll down) , or any number of physical timers (
http://www.staredit.net/index.php?tutorial=167)
As for the spawning too many units, its possible that the conditions of the trigger are true more than once, make sure that the trigger conditions are not true twice or more times.