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.
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
Please log in to shout.


Members Online: Roy, Ultraviolet