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.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: jun3hong