Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Display Text Message
Display Text Message
Dec 8 2009, 9:56 am
By: Pinky  

Dec 8 2009, 9:56 am Pinky Post #1



Hey guys I have three players in a force and I have a trigger that goes something like this:
PLAYERS
Force 1
CON
Whatever
ACT
Display Text Message

However (i have a laptop hooked up so I can watch both screens) only one player (P1) gets the text message the other player doesn't. I have no idea why this is occurring would anyone be able to shed some light on the subject?



None.

Dec 8 2009, 10:08 am NudeRaider Post #2

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

Obviously the actions of P1's trigger make the conditions false for P2. Keep in mind that triggers do not run simultaneously but are checked player by player and one after another.
Imagine these 2 triggers:

P1
Con: Switch 1 is set
Action: Display text & clear Switch 1

P2
Con: Switch 1 is set
Action: Display text & clear Switch 1

P2 can never run the trigger because the above trigger makes sure P2 will never have his condition true unless P1 leaves the game.




Dec 8 2009, 10:09 am Pinky Post #3



EDITION: Further testing revealed that the very first DTM works fine but then all ones after that don't.

Believe I have the problem discovered: I am using DCs to time my DTMs, right now they are like this
CON
Whatever
ACT
Modify DC
DTM

I think when it modifies the DC for P1 it then skips the others players.

Solution: I am going to move all my DTMs above my DCs and give it another go and see what happens, I'll report back shortly sorry for wasting time here.

EDIT:
Oh I see you already posted.

Oh I see my solution won't work, crap how am I gonna fix this.

Post has been edited 2 time(s), last time on Dec 8 2009, 12:53 pm by Pinky.



None.

Dec 8 2009, 10:17 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

The standard solution for this kind of problem (global event triggers current player actions) is to set a death counter (dc) for the players that should get the message and let them reset their dc when they run their trigger:

All Players
Con: Switch 1 is set
Action: Clear Switch 1 & Set dc to 1 for [Player Force]

[Player Force]
Con: Current Player has 1 dc
Actions: Display text & set dc to 0 for Current Player




Dec 8 2009, 1:30 pm Pinky Post #5



I have found a solution which lets me keep my triggers in the Force 1 category, I don't have to bloody have triggers everywhere in all the Players.

Basically I have just split up my DC changes to a separate number of DCs and have the DTMs in their own as well. The best thing about it is that it was only a slight alteration to my previous trigger set-up, thank GOD. I feared I would have to go back through all my DTMs and set it up with a new system.

Anyway thanks for the help man, if something wacky pops up I'll post here but for now I'm just going to continue altering all my DTM triggers and continue testing with my laptop to make sure it's all working correctly.

Post has been edited 2 time(s), last time on Dec 8 2009, 2:10 pm by Pinky.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:37 am]
Ultraviolet -- 80% of statistics are made up on the spot
[08:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
Please log in to shout.


Members Online: Andrea Rosa, Heinermann