Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Run trigger for multiple players when actions negate conditions
Run trigger for multiple players when actions negate conditions
Jun 16 2008, 8:14 am
By: Heimdal  

Jun 16 2008, 8:14 am Heimdal Post #1



This might not be new to a lot of you, but I kind of stumbled upon it when thinking about how waits work.

The problem:You want to run a trigger for many players, but the actions of the trigger will make the conditions false. This means that the trigger will only execute for the first active player.

The solution: Create the trigger as normal, but put a wait(0) before the condition-destroying action. This will cause the trigger to run for the other players before executing that action.

[TRIGGER]
Example[CONDITIONS]
[*]Switch 1 is clear
[/CONDITIONS]
[ACTIONS]
[*]Create 1 marine for current player
[*]wait for 0 milliseconds
[*]Set switch 1
[/ACTIONS]
[/TRIGGER]

The above trigger creates 1 marine for each player that it is active for. Another good example would be for any trigger that needs to display text.



None.

Jun 16 2008, 3:03 pm Falkoner Post #2



I always just had a trigger at the bottom of the trigger list that would do the condition-destroying action, this method is great and all, but it could cause slight wait blocks.



None.

Jun 16 2008, 7:29 pm O)FaRTy1billion[MM] Post #3

👻 👾 👽 💪

Only if you use the spammy 62xWait(0); kind of HTs.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 16 2008, 8:15 pm Atlos Post #4



I remember there being a tutorial about this on the old SEN. It has something to do with waits making a trigger cycle go through before finishing the trigger or something along the lines of that. My old memory is failing me! :(



None.

Jun 16 2008, 8:45 pm Falkoner Post #5



Quote
Only if you use the spammy 62xWait(0); kind of HTs.

Actually, no, as long as you put those at the bottom of the trigger list they turn off just like cross-player hypertriggers whenever another wait is hit. And a wait 0 would do the same thing as their wait 0s, so it wouldn't even turn off the hypers.



None.

Jun 17 2008, 12:42 am O)FaRTy1billion[MM] Post #6

👻 👾 👽 💪

It's still annoying to have to arrange them. (And I just remembered that I already knew about the trigger order trick when I used to make some bound maps. :P)



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[04:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[04:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[06:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[03:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[03:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
[2026-6-19. : 9:57 am]
Oh_Man -- artosis dropped pretty interesting vid: https://youtu.be/EqZHB8Blra4
[2026-6-18. : 5:01 pm]
Ultraviolet -- :wob:
[2026-6-17. : 6:15 am]
RexyRex -- :wob:
Please log in to shout.


Members Online: jun3hong, NudeRaider