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.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[2026-7-23. : 1:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
[2026-7-23. : 1:39 am]
Oh_Man -- where they use third party audioprogram called WWISE which basically makes adding audio extremely difficult
Please log in to shout.


Members Online: Symmetry, RIVE