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.
[08:46 pm]
NudeRaider -- Brusilov
Brusilov shouted: Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
https://armoha.github.io/eud-book/
[2024-5-10. : 8:36 am]
Brusilov -- Hey, what happened to EUDDB? Is there a mirror for it somewhere? Need to do a little research.
[2024-5-09. : 11:31 pm]
Vrael -- :wob:
[2024-5-09. : 8:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7: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
Please log in to shout.


Members Online: 1sophiee111wh7, Roy