Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Triggers affect players not in game
Triggers affect players not in game
Mar 22 2010, 10:10 pm
By: wangie444  

Mar 22 2010, 10:10 pm wangie444 Post #1



This is really strange. My map starts out with me picking a group of units which spawn for all the players. yesterday players that werent in the game didnt get the units, now they do. the triggers are really simple:

Player One brings selector to location 1,

create one unit for player 1 @ location 2 and so forth

when the player isnt in the game, they have no units, so i tried to do it like this:
CurrentPlayer commands 0 units, kill anyunit
PreserveTrigger

But, it seems that the trigger doesnt affect players that are not in the game, HOWEVER the trigger that spawns units appears to affect them. what is goin on?



None.

Mar 22 2010, 10:19 pm JaFF Post #2



I'm not sure I completely get the problem, but you might want to know that players that are not in game do not run triggers hence the "current player commands 0 units" does not work if it is owned by the player that is supposed to be missing.



None.

Mar 22 2010, 10:35 pm wangie444 Post #3



hey sorry i was kind of rushing. this is what i mean. My map starts out with me selecting a unit, which is created to all players. It looks like this.

Conditions:
CurrentPlayers brings Selector to Location A
Actions:
Create 1 Unit A for P1 @ Location B
Create 1 Unit A for P2 @ Location B
Create 1 Unit A for P3 @ Location B
etc...

The problem i am having is that this trigger is still affected the players not in the game. Lets say player 7 and 8 (Yellow and White) are missing. The trigger still affects them, and they will get these units, and they will be hostile. The units are not going to P12 either. They will be Yellow and White.



None.

Mar 22 2010, 11:02 pm Vrael Post #4



The trigger is doing exactly what you tell it to. The way starcraft triggers work, is there is a giant list of all triggers (you can see the exact list if you open up text trigger editor in scmdraft2).

Triggers run in cycles. Cycle 1 starts, and it goes into "P1 mode" and checks every trigger to see if you checked P1, or a force that P1 is in. (It checks them starting at the top of the list and running towards the bottom.) Once it sees a P1 trigger, it executes it. After it finished the list, it switches into "P2 mode" and checks and runs them again, then "P3 mode" ect ect.

Players not present in the game will not run their triggers, for example, if P3 leaves the game it will skip "P3 mode." However, if a P1 trigger creates a unit for P3, it will still create that unit since the P1 trigger specifically says to make a unit for P3. This is what is occuring in your triggers.

Post has been edited 1 time(s), last time on Mar 23 2010, 9:25 pm by Vrael.



None.

Mar 23 2010, 4:24 am rockz Post #5

ᴄʜᴇᴇsᴇ ɪᴛ!

Units are only given to player 12 when the player leaves, and only once. Alliance status remains, however.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[02:43 am]
Symmetry -- I'm doing my best, damn it
[2026-9-28. : 4:46 pm]
Ultraviolet -- @:@
@:@ shouted: this community still going strong?
Still going.. strong is debatable though.
[2026-9-28. : 4:13 pm]
WeirdoX4857 -- I can't believe this is really been around since 2003 but it does look classic and old asf still better than talking to kids on discord ranting about skibidi toilet and sexuality or whatever mental illness is going on in their heads
[2026-9-28. : 4:11 pm]
WeirdoX4857 -- Nigga how you ask is it still going strong when you get a text every 3 miles per hour or something
[2026-9-28. : 4:10 pm]
WeirdoX4857 -- Where is everybody
[2026-9-28. : 1:21 pm]
@:@ -- this community still going strong?
[2026-9-27. : 4:30 pm]
Oh_Man -- yeah, probs
[2026-9-27. : 3:11 pm]
NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
[2026-9-27. : 3:09 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
[2026-9-27. : 2:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
Please log in to shout.


Members Online: NudeRaider