Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Death counters not slowing down hyper trigs
Death counters not slowing down hyper trigs
This topic is locked. You can no longer write replies here.
Feb 18 2010, 6:23 am
By: RetPallylol  

Feb 18 2010, 6:23 am RetPallylol Post #1



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.

Feb 18 2010, 6:28 am CecilSunkure Post #2



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.

Feb 18 2010, 6:40 am RetPallylol Post #3



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.

Feb 18 2010, 8:55 am Jack Post #4

>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."

Feb 18 2010, 10:14 am RetPallylol Post #5



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! :D



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
[01:05 am]
Vrael -- that's better
[12:39 am]
NudeRaider -- can confirm, Vrael is a total madman
[10:18 pm]
Vrael -- who says I'm not a total madman?
[02:26 pm]
UndeadStar -- Vrael, since the ad messages get removed, you look like a total madman for someone that come late
[2024-5-02. : 1:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[2024-5-02. : 1:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
Please log in to shout.


Members Online: Roy