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.
[2026-10-11. : 6:02 am]
Donald -- Samase
[2026-10-09. : 2:53 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: I'll check it out this weekend!
Thanks
[2026-10-09. : 2:47 am]
Symmetry -- I'll check it out this weekend!
[2026-10-09. : 2:40 am]
Mr.BurnLiquid -- Symmetry
Symmetry shouted: Another map maker? Damn we really ARE back
I invite you to try out the map I modified. I don't have the creativity to create maps from scratch, but I do have the know-how to modify existing ones; my project is to tweak community campaigns (specifically those with errors—to make them playable.
[2026-10-09. : 2:27 am]
Symmetry -- Another map maker? Damn we really ARE back
[2026-10-09. : 1:51 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Now that I wanted to change my avatar, the error image is showing up, haha.
[2026-10-09. : 1:34 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
I invite you to try out a mission I'm modifying from *StarCraft Reversed*; I'm trying to make it more playable and challenging.
[2026-10-09. : 1:33 am]
Mr.BurnLiquid -- Ultraviolet
Ultraviolet shouted: Mr.BurnLiquid actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Thanks; I'm new to the site and a Spanish speaker. I must have missed the part where it was prohibited—I'll change it now.
[2026-10-09. : 1:31 am]
Ultraviolet -- Mr.BurnLiquid
Mr.BurnLiquid shouted: Ultraviolet Is it forbidden to have a large avatar?
actually yeah though I wasn't really saying it to narc on you. It just caught me off guard because I don't usually see it (because it's against the rules) "The avatar may not be bigger than 150x150 pixels". Kinda silly that it relies on users to be well behaved rather than just limiting the dimensions on uploads :lol:
Please log in to shout.


Members Online: Wing Zero, Butch, NudeRaider