Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Trigger Not Working
Trigger Not Working
Jun 3 2008, 2:23 am
By: Morphling  

Jun 3 2008, 2:23 am Morphling Post #1



I have these two triggers and the first one works and the second one does not. I know this because i put display text in both triggers and it only showed for the first one. What is wrong?
EDIT: When I changed the condition for the second trigger from exactly to atleast it worked. I guess it was Starcraft being gay in single player again.
Quote
Trigger("All players"){
Conditions:
Always();

Actions:
Set Deaths("All players", "Zerg Devourer", Set To, 1);
Set Deaths("All players", "Zerg Guardian", Set To, 1);
Set Deaths("All players", "Zerg Mutalisk", Set To, 1);
Quote
Trigger("All players"){
Conditions:
Deaths("All players", "Zerg Devourer", Exactly, 1);
Deaths("All players", "Zerg Guardian", Exactly, 1);
Deaths("All players", "Zerg Mutalisk", Exactly, 1);

Actions:
Give Units to Player("Player 4", "Player 2", "Protoss Photon Cannon", 26, "01");
Give Units to Player("Player 4", "Player 1", "Protoss Photon Cannon", 1, "01");
Give Units to Player("Player 2", "Player 4", "Protoss Photon Cannon", All, "01");
Set Deaths("All players", "Zerg Devourer", Set To, 0);
Set Deaths("All players", "Zerg Guardian", Set To, 0);
Set Deaths("All players", "Zerg Mutalisk", Set To, 0);
Preserve Trigger();


Post has been edited 1 time(s), last time on Jun 3 2008, 3:13 am by Omega_Guardian.



None.

Jun 3 2008, 10:15 am rockz Post #2

ᴄʜᴇᴇsᴇ ɪᴛ!

I'm not sure how "all players" works when detecting deaths, it could detect the sum of the deaths, meaning 2-8, or just the most of one. Do you have any place where Devs/Guards/Mutas are fighting/dying?



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Jun 3 2008, 10:30 am NudeRaider Post #3

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

Sc isn't gay.
Sc has clear rules for how to count deaths.
It adds up any values from the group.
1) If a player has suffered a death of a ling and a hyd he will have exactly 2 deaths of [men]
2) If each Player in Force 1 (4 Players) has lost a ling then Force 1 has suffered exactly 4 deaths of zergling.
3) If each player in Force 1 has lost a ling and a hyd then Force 1 has suffered exactly 8 deaths of [men].
4) If you subtract 1 [men] in example 1) from that player he has suffered exactly 0 deaths of [men] because all death counts of units counting as [men] are decremented.

There are more possibilities but by now you should have understood the principle.

So to give a specific solution:
Don't work with exact deaths count for all players unless you are sure how many players are playing.
When you got a comp player (always present) have it store the deaths you're working with.




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:45 am]
Sylph-Of-Space -- Does the shoutbox get disabled when there's spammers?
[2024-5-17. : 6:47 am]
NudeRaider -- lil-Inferno
lil-Inferno shouted: nah
strong
[2024-5-17. : 5:41 am]
Ultraviolet -- 🤔 so inf is in you?
[2024-5-17. : 4:57 am]
O)FaRTy1billion[MM] -- my name is mud
[2024-5-17. : 4:35 am]
Ultraviolet -- mud, meet my friend, the stick
[2024-5-16. : 10:07 pm]
lil-Inferno -- nah
[2024-5-16. : 8:36 pm]
Ultraviolet -- Inf, we've got a job for you. ASUS has been very naughty and we need our lil guy to go do their mom's to teach them if they fuck around, they gon' find out
[2024-5-16. : 5:25 pm]
NudeRaider -- there he is, right on time! Go UV! :D
[2024-5-16. : 5:24 pm]
lil-Inferno -- poopoo
[2024-5-16. : 5:14 pm]
UndeadStar -- I wonder if that's what happened to me. A returned product (screen) was "officially lost" for a while before being found and refunded. Maybe it would have remained "lost" if I didn't communicate?
Please log in to shout.


Members Online: 9andrewe821rN6, Roy, 2claudiae52100yh6