Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Message displaying for 1 player?
Message displaying for 1 player?
This topic is locked. You can no longer write replies here.
Jan 15 2010, 8:31 pm
By: payne  

Jan 15 2010, 8:31 pm payne Post #1

:payne:

I have triggers which has many actions, including a "Display [text] for current player". These triggers are under "All Players" and "Force 1". The actions runs as they should, except for the text display ; only the player 1 see it (player 1 to 5 are under Force 1).
Why ? D:

http://www.staredit.net/files/1622/



None.

Jan 15 2010, 8:40 pm Apos Post #2

I order you to forgive yourself!

The triggers always start from player 1 - 8, so if in your trigger there is an action that makes the condition false after player 1 is checked, it means only player 1 will see it.




Jan 15 2010, 8:45 pm ImagoDeo Post #3



Quote from Apos
The triggers always start from player 1 - 8, so if in your trigger there is an action that makes the condition false after player 1 is checked, it means only player 1 will see it.

Exactly. Make sure that nothing is altered by the trigger that would cause it to fail to run again.

Triggers are only executed in relation to players, and run from player 1 to player 8. If you check Force 1, that's the same as checking players 1, 2, 3, 4, and 5. If you check all players, that's the same as checking players 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and Neutral.



None.

Jan 15 2010, 8:50 pm 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

I agree that this is the problem, but what can you do about it?

Well lets assume you display the text as soon as any player walks onto a beacon. Then you have the display text action and move the unit back.
So instead of displaying the text in this trigger you only set a death counter for All Players and make a separate trigger that checks for it, displays the text and resets the dc for Current Player.

Quote from ImagoDeo
If you check all players, that's the same as checking players 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, and Neutral.
Checking a trigger for P9+ does nothing. They can't execute triggers. So checking All Players is essentially the same as checking P1-8.




Jan 15 2010, 8:59 pm Cinolt Post #5



Or you can have P8 as a computer and have a P8 trigger have the same conditions as the display trigger, but it would move the unit back (or whatever it is to make the condition false). the human triggers would just display



None.

Jan 15 2010, 9:04 pm ImagoDeo Post #6



Quote from NudeRaider
Checking a trigger for P9+ does nothing. They can't execute triggers. So checking All Players is essentially the same as checking P1-8.

I know. But SCMD still treats it that way, doesn't it?

EDIT:

Quote from payne
I have triggers which has many actions, including a "Display [text] for current player". These triggers are under "All Players" and "Force 1". The actions runs as they should, except for the text display ; only the player 1 see it (player 1 to 5 are under Force 1).
Why ? D:

http://www.staredit.net/files/1622/

Wait a sec. All the other actions run properly for players 1-5?

...um, then I have no idea.



None.

Jan 15 2010, 11:36 pm NudeRaider Post #7

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

When there's one action running in a trigger then all actions run. Just one exception (and it's the only one): wait blocks.
Keep in mind that in single player move screens also cause wait blocks.

Quote from ImagoDeo
Quote from NudeRaider
Checking a trigger for P9+ does nothing. They can't execute triggers. So checking All Players is essentially the same as checking P1-8.

I know. But SCMD still treats it that way, doesn't it?
ScmDraft has nothing to do with it. The StarCraft engine will just ignore triggers for players other than P1-8. This includes Current Player and all the other weird trigger owners you can choose in ScmD.

Post has been edited 1 time(s), last time on Jan 16 2010, 12:41 am by NudeRaider. Reason: fix'd quote




Jan 16 2010, 2:28 am payne Post #8

:payne:

Thank you very much to everyone! I had forgotten that little detail. ^.^
Problem solved! :D
I'll do that DC thingy.

Btw, when I said actions would run properly for everyone... it wasn't really true now that I think of it since a Give action would work only once, in fact... anyways!

I've got two other questions:
1) If a trigger is set for Force 1 and has no preserve trigger and that once it ran once, the conditions are still being met. Will players 2, 3, 4 and 5 also see a message or the fact that there is no Preserve Trigger action would screw it up?
2) If I have a wait... SC stop executing the trigger, run past all the other triggers (while counting miliseconds) and continue executing the rest of the trigger once the amount of time set is met.
But what happens if when he finishes to count, the condition isn't met anymore ? (My guess is that it doesn't care and still execute actions, but I wanna be sure)

(Ya, noob questions :blush: )



None.

Jan 16 2010, 2:33 am ImagoDeo Post #9



Quote from payne
Thank you very much to everyone! I had forgotten that little detail. ^.^
Problem solved! :D
I'll do that DC thingy.

Btw, when I said actions would run properly for everyone... it wasn't really true now that I think of it since a Give action would work only once, in fact... anyways!

I've got two other questions:
1) If a trigger is set for Force 1 and has no preserve trigger and that once it ran once, the conditions are still being met. Will players 2, 3, 4 and 5 also see a message or the fact that there is no Preserve Trigger action would screw it up?
2) If I have a wait... SC stop executing the trigger, run past all the other triggers (while counting miliseconds) and continue executing the rest of the trigger once the amount of time set is met.
But what happens if when he finishes to count, the condition isn't met anymore ? (My guess is that it doesn't care and still execute actions, but I wanna be sure)

(Ya, noob questions :blush: )

You're correct. It doesn't care. It counts the trigger as having been run for player 1, but if the conditions are still met then it still needs to run it for 2-5.



None.

Jan 16 2010, 2:49 am payne Post #10

:payne:

Quote from ImagoDeo
Quote from payne
Thank you very much to everyone! I had forgotten that little detail. ^.^
Problem solved! :D
I'll do that DC thingy.

Btw, when I said actions would run properly for everyone... it wasn't really true now that I think of it since a Give action would work only once, in fact... anyways!

I've got two other questions:
1) If a trigger is set for Force 1 and has no preserve trigger and that once it ran once, the conditions are still being met. Will players 2, 3, 4 and 5 also see a message or the fact that there is no Preserve Trigger action would screw it up?
2) If I have a wait... SC stop executing the trigger, run past all the other triggers (while counting miliseconds) and continue executing the rest of the trigger once the amount of time set is met.
But what happens if when he finishes to count, the condition isn't met anymore ? (My guess is that it doesn't care and still execute actions, but I wanna be sure)

(Ya, noob questions :blush: )

You're correct. It doesn't care. It counts the trigger as having been run for player 1, but if the conditions are still met then it still needs to run it for 2-5.
Wait what?



None.

Jan 16 2010, 2:57 am Cinolt Post #11



1) p2-p5 will still see it
2) the rest of the trigger will run no matter the condition



None.

Jan 16 2010, 3:02 am payne Post #12

:payne:

Ok, thanks.
Close topic please ^^



None.

Jan 16 2010, 2:47 pm NudeRaider Post #13

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

Just to clarify: In game there is no player groups like forces or All Players. Sc will create a copy of the trigger for every player that is included in the respective group. It's the same as if you had marked the individual players as trigger owner.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[05:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[05: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
[05: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
[03:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[12:51 am]
Oh_Man -- definitely EUD
[2024-5-05. : 9:35 pm]
Vrael -- I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
[2024-5-05. : 9:35 pm]
Vrael -- that is insane
[2024-5-05. : 9:35 pm]
Vrael -- damn is that all EUD effects?
[2024-5-04. : 10:53 pm]
Oh_Man -- https://youtu.be/MHOZptE-_-c are yall seeing this map? it's insane
[2024-5-04. : 1:05 am]
Vrael -- I won't stand for people going around saying things like im not a total madman
Please log in to shout.


Members Online: Roy