Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Where to put triggers
Where to put triggers
This topic is locked. You can no longer write replies here.
Apr 2 2010, 5:38 am
By: XGenesis  

Apr 2 2010, 5:38 am XGenesis Post #1



Im making a map that has an intro where you choose which race you want to be (custom races). I put all the players in Force 1 and used a "Display message" for an action. If there is more than one player in the force, will the trigger run more than once? Sorry for such a noobie question, but I can't test it right now. Also, I tried putting the triggers in "Current Player", but some triggers failed to run. Is there a better "place" to put the triggers? (there are four players by the way)



None.

Apr 2 2010, 7:04 am ProtoTank Post #2



Give the triggers individually to each player, and if you can use "Current Player" in your triggers (its just convenient). Also, the trigger (in order to operate for a current player) must belong to the player.

Make sure that in your "forces" menu you have unchecked "Randomize start locations"



I'm only here because they patched SC1 and made it free.

Apr 2 2010, 7:15 am rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

Triggers work like this:
Each player has their own copy of triggers. All Players and forces are translated into one trigger per player (so if you have an all players trigger that doesn't have a preserve trigger on it, it can run up to 8 times). First, Player 1 runs all his triggers in the order of the triggers, with any triggers from All Players or his force considered to be owned by him. Then Player 2 runs all his triggers in the same fashion, regardless of whether or not all of player 2's triggers are before player 1 in the trigger list. Repeat for the rest of the players.

In the case of "Display Message", it only works for current player, so if player 1 runs the display trigger first, then the action makes it so that the trigger won't run again, only player 1 will see the display text, and it won't run for the rest of the players. If the condition is true for all players, then it will be displayed up to 8 times in one trigger cycle, each on different players' computers (each individual person will only see the display text once).

The same is not true for other actions, like "create unit". If all 8 players run a create unit trigger, there will be 8 units, and everyone can see those 8 units.

The only legal/working owners of triggers are players 1-8, Force 1-4, and All Players. I'm unsure of the (non) allied victory players, but I doubt it. Note that conditions and actions can use the extra players just fine.



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

Apr 2 2010, 8:01 am NudeRaider Post #4

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from rockz
I'm unsure of the (non) allied victory players, but I doubt it. Note that conditions and actions can use the extra players just fine.
Nope. This is a "relative" player statement, each of the players has other players that they share allied victory with so there's no way for sc to determine what player to give it to and it won't even try.
When the map starts there's only players 1-8 as trigger owners because as you already explained the valid "wildcard" players (Forces, All Players) are being separated into specific players (P1-8).




Apr 2 2010, 9:35 pm XGenesis Post #5



Oh good! My main concern was "Display Message" being shown more than once. Thanks! :)



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[07:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[06:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[03:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[01:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[2024-4-26. : 6:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[2024-4-26. : 6:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[2024-4-26. : 6:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[2024-4-26. : 6:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
Please log in to shout.


Members Online: Ultraviolet