Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Display message for all players
Display message for all players
Aug 10 2009, 1:13 am
By: cakeofages  

Aug 10 2009, 1:13 am cakeofages Post #1



How can I make it so that when a unit enters a beacon (location), everyone gets displayed a message?

I tried making it so the unit sets off a switch when entering the beacon, and a trigger in Force 1 starts as (Condition) "The switch is set...", "Display for current player...", but it only views the message for the player with the unit.

Then I made it so the trigger was like (Condition) "Player brings Unit to Location...", but the text viewed for everyone except that player.

Help?



None.

Aug 10 2009, 1:29 am Vrael Post #2



Basically, the "Display text" action only works for the player running the trigger at the time. So, all this means is that you need to have every player that should see the text run the trigger. Basically, for this to work correctly you just need to include the correct players in the trigger setup. There are a couple ways to go about this, one is like you mentioned, using a switch, in a setup something like this:

Trigger1(Any Player){
Conditions:
Player X brings at least 1 men to Beacon
Actions:
Set Switch 1
}
Trigger2(Players who need to be displayed text){
Conditions:
Switch 1 is set
Actions:
Display Text("Blah blah blah")
}

Alternately, you could condense it into one trigger without the use of the switch:

Trigger("Players who need to see the text"){
Conditions:
Player X brings at least 1 men to Beacon Location
Actions:
Display Text("Blah blah blah")
}

The only thing you have to worry about with the condensed version, is including actions with nullify the conditions being met. For example, if the trigger displays text AND moves the unit on the beacon, When Player 1 runs the trigger, the conditions will be met, but when it comes time for P2 to run the trigger, P1 will have already moved the unit there, so P2's trigger won't fire because the conditions for the trigger are no longer met.



None.

Aug 10 2009, 5:20 am lil-Inferno Post #3

Just here for the pie

You could have a death statistic for displaying messages. The trigger would be like this:

[PLAYERS]
[*]Players you want.
[CONDITIONS]
[*]Current player brings at least one [men] to "Beacon".
[ACTIONS]
[*]Set deaths for [force] to 1 for "##TEXT##".

[TRIGGER]
[PLAYERS]
[*]Players you want.
[CONDITIONS]
[*]Current player has suffered exactly 1 death of "##TEXT##".
[ACTIONS]
[*]Set deaths for current player set to 0 for "##TEXT##".
[*]Display text message: "I'M ON A BEACON AND IT'S GOING STATIONARY.".




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[04:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[04:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[04:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[03:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[03:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[03:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[09:18 pm]
Ultraviolet -- 🔪🐈
[12:34 pm]
NudeRaider -- curiosity kills the cat!
[2024-5-19. : 6:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
Please log in to shout.


Members Online: Roy