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.
[07:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
Please log in to shout.


Members Online: lil-Inferno, jun3hong, Dem0n