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.
[08:08 pm]
anoeth47 -- Can I get a moderator/lord of the forum to clean up my topics - delete posts not really part of the topic.
[07:11 pm]
anoeth47 -- Can you download from forum if not a member?
[07:07 pm]
anoeth47 -- Thank you NudeRaider much cleaner
[04:24 am]
anoeth47 -- Sie_Sayoka >>> Thanks!!! Got the png's to show up in Map Showcase
[2026-4-22. : 10:20 pm]
anoeth47 -- Sweet
[2026-4-22. : 7:48 pm]
NudeRaider -- https://staredit.net/381642/ really makes you appreciate (again) how good sc music is.
[2026-4-18. : 3:57 am]
NudeRaider -- https://staredit.net/381600/ You have 5 minutes, then you can only edit your posts.
[2026-4-17. : 4:05 pm]
NudeRaider -- DarkenedFantasies
DarkenedFantasies shouted: you eat lots of beans
:lol:
Please log in to shout.


Members Online: advicebride7, anoeth47