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.
[11:31 pm]
Vrael -- :wob:
[08:42 pm]
Ultraviolet -- :wob:
[2024-5-08. : 10:09 pm]
Ultraviolet -- let's fucking go on a madmen rage bruh
[2024-5-08. : 10:01 pm]
Vrael -- Alright fucks its time for cake and violence
[2024-5-07. : 7:47 pm]
Ultraviolet -- Yeah, I suppose there's something to that
[2024-5-06. : 5:02 am]
Oh_Man -- whereas just "press X to get 50 health back" is pretty mindless
[2024-5-06. : 5:02 am]
Oh_Man -- because it adds anotherr level of player decision-making where u dont wanna walk too far away from the medic or u lose healing value
[2024-5-06. : 5:01 am]
Oh_Man -- initially I thought it was weird why is he still using the basic pre-EUD medic healing system, but it's actually genius
[2024-5-06. : 3:04 am]
Ultraviolet -- Vrael
Vrael shouted: I almost had a heart attack just thinking about calculating all the offsets it would take to do that kind of stuff
With the modern EUD editors, I don't think they're calculating nearly as many offsets as you might imagine. Still some fancy ass work that I'm sure took a ton of effort
[2024-5-06. : 12:51 am]
Oh_Man -- definitely EUD
Please log in to shout.


Members Online: Vrael, Loges