Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Help with closing a trigger loop
Help with closing a trigger loop
This topic is locked. You can no longer write replies here.
Mar 30 2009, 4:04 am
By: Vrael  

Mar 30 2009, 4:04 am Vrael Post #1



In my map, I'm going to use a DC to keep track of when all the "in battle" DC's are set to 0. I'm using Kyadarin Crystal Formation for the tracking DC, when its value is 1 that means all the other DC's values are 0, which means the player isn't in a battle, and if the player is in a battle, there are triggers to set the Kyadarin to 0. Unfortunately I noticed this is bugging in my map, but I can't figure out why. I copied my text trigger set into notepad++ to verify that the only occurances of

"Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);"

are the ones I want, and I was right, the only time that action occurs in my triggers is in the triggers below. I also checked for force name and all players actions setting to 0, and it returned negative. For some reason, the trigger that sets deaths of Kyadarin to 1 fires every trigger cycle, (ex: when I enter the game it displays the text "1 for Kyadarin" non-stop), and the triggers below it that set kyadarin to 0 are NOT firing, so the first trigger shouldn't run because it invalidates its own conditions by its actions. Help!



Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 0);
Deaths("Player 1", "Zerg Zergling", Exactly, 0);
Deaths("Player 1", "Terran Ghost", Exactly, 0);
Deaths("Player 1", "Jim Raynor (Marine)", Exactly, 0);
Deaths("Player 1", "Protoss Zealot", Exactly, 0);
Deaths("Player 1", "Zerg Ultralisk", Exactly, 0);
Deaths("Player 1", "Aldaris (Templar)", Exactly, 0);
Deaths("Player 1", "Tassadar (Templar)", Exactly, 0);
Deaths("Player 1", "Terran Goliath", Exactly, 0);
Deaths("Player 1", "Hunter Killer (Hydralisk)", Exactly, 0);
Deaths("Player 1", "Terran Vulture", Exactly, 0);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 1);
Display Text Message(Always Display, "1 For Kyadarin");
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Zerg Zergling", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Display Text Message(Always Display, "\x0130 For Kyadarin Goblin");
Preserve Trigger();
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Terran Ghost", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Goblin Archer");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Jim Raynor (Marine)", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Goblin Archer");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Protoss Zealot", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Bandit");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Zerg Ultralisk", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Ultralisk");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Aldaris (Templar)", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Venicar");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Tassadar (Templar)", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Ferdas");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Terran Goliath", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Golem");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Hunter Killer (Hydralisk)", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Troll");
}

//-----------------------------------------------------------------//

Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 1);
Deaths("Player 1", "Terran Vulture", At least, 1);

Actions:
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 0);
Preserve Trigger();
Display Text Message(Always Display, "\x0130 For Kyadarin Thraz");
}

//-----------------------------------------------------------------//



None.

Mar 30 2009, 4:15 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

You've mixed up two units. Check your first trigger:
Quote
Deaths("Player 1", "Khaydarin Crystal Formation", Exactly, 0);
Quote
Set Deaths("Player 1", "Kyadarin Crystal Formation", Set To, 1);
Khaydarin != Kyadarin




Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:30 pm]
Oh_Man -- yeah, probs
[03:11 pm]
NudeRaider -- I bet it just needs another training session against pros instead of only against itself and nobody will be able to stop it anymore.
[03:09 pm]
NudeRaider -- Oh_Man
Oh_Man shouted: pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
so it can be beaten by a prepared pro, even in macro games, if only barely. the muta micro in particular seems really hard to handle for protoss ground though. In the open goons can't catch them, in the base they trip over buildings, it just instantly flies out of storms and they fly circles around archons. Mass cannons do work, but can't cover the whole map with it. Probably need mass corsair to counter and hope you can outmaneuver all the scourge.
[02:14 am]
Oh_Man -- pluto vs pro gamer snow: https://youtu.be/NOXXpATkdZU
[2026-9-25. : 2:22 pm]
Oh_Man -- https://youtu.be/Lfo4C0xzU04
[2026-9-25. : 12:00 am]
Oh_Man -- he hasnt won a single game so far this is hilarious
[2026-9-24. : 11:41 pm]
Oh_Man -- new arty username Rage Against The Machine
[2026-9-24. : 10:14 pm]
Oh_Man -- https://m.youtube.com/watch?v=KPXri8q9ZBs artys vsing the bot now
[2026-9-24. : 8:12 pm]
Ultraviolet -- do you even lift bro?
Please log in to shout.


Members Online: Symmetry