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.
[08:19 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: damn, if that doesn't scream UV, I don't know what does. https://staredit.net/382067/
hah yeah in the past that might've been up my alley. haven't really been mapping lately, been too busy with everything else. and kinda lost interest too tbh. just not enough people left on SC to feel worth investing the time personally.
[08:03 pm]
lil-Inferno -- u
[07:38 am]
NudeRaider -- damn, if that doesn't scream UV, I don't know what does. https://staredit.net/382067/
[06:55 am]
UndeadStar -- :wob:
[02:28 am]
Symmetry -- :wob:
[2026-10-29. : 9:17 pm]
RIVE -- :wob:
[2026-10-29. : 7:03 pm]
CoCo( -- OK, click here if any1 is interested in this $ making opportunity https://staredit.net/topic/18952/
[2026-10-29. : 4:39 pm]
NudeRaider -- sure, make a post in ums assistance
[2026-10-29. : 6:44 am]
CoCo( -- anyone willing to help fix a few triggers on a new "impossible" map? Please
[2026-10-28. : 6:52 pm]
lil-Inferno -- UndeadStar
UndeadStar shouted: https://www.youtube.com/watch?v=rbChzMFX0mE <= I wonder if that will attract new players to SC1&2 ?
:doubt:
Please log in to shout.


Members Online: ihjel, DarkenedFantasies