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.
[01:53 am]
Ultraviolet -- :lol:
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
Please log in to shout.


Members Online: Roy, Oh_Man, Risingvge