Hi guys, I'm trying to create a spell effect where DTs spawn one at a time on a moving location based on your hero. First I didn't know about hyper triggers so the DT's appeared once ever 2 seconds. Now that I've used hyper triggers, in addition to death counters, all my triggers go off simultaneously. I don't understand why the triggers aren't waiting for each to finish.
Basically the triggers look like this; the death counters are integrated into each trigger with the condition "Player 1 suffers x death of Nukes" and so on and so fourth.
//-----------------------------------------------------------------//
Trigger("Player 1"){
Conditions:
Bring("Current Player", "Terran SCV", "P1 Use", At least, 1);
Actions:
Move Unit("Current Player", "Terran SCV", All, "Anywhere", "P1 Items");
Set Switch("Switch1", set);
Set Deaths("Current Player", "Nuclear Missile", Set To, 1);
Preserve Trigger();
Comment("use sword");
}
//-----------------------------------------------------------------//
None.
All your triggers will fire simultaneously, if the previous trigger modifies the game to where the next trigger in the trigger list's conditions will be met.
If you want your triggers to fire once every two seconds, then you need to figure out how many deaths you need to add so that your triggers will cycle for the desired amount of time, before taking the action you want.
12 deaths = 1 second, so you need to wait for 24 deaths to spawn things once every two seconds. This means, you need to have 1 and only 1 trigger adding 1 death to a deathcount, and you need to wait until this death reaches 24 deaths later so that the gap between your spawning equals two seconds.
None.
Hi Cervantes, thank you for the quick reply. I'm still a little puzzled though. If I can only have 1 and only 1 trigger that adds to the death count, how would I make it span across 12 triggers for the once every second effect? Thanks again for helping a noob out.
None.
>be faceless void >mfw I have no face
Have one trigger that constantly adds 1 to your death count.
The second trigger would have a condition: If player X has suffered at least 24 deaths of (yourDeathCount)
And an action: Set deaths of yourDeathCount to 0. Plus any other conditions and actions you have.
Red classic.
"In short, their absurdities are so extreme that it is painful even to quote them."
Ahh thank you zany, that worked for me. I was trying to figure this out and didn't really understand the death counter wiki. Thank you gents!
None.