It's a map to train new players in the game Snipers.
Now, everything is working smoothly it seems, but for some reason a certain scenario breaks the map.
First of, I have a trigger for row 1-11 for each command sent just to make sure the map can't miss it, since a lot of text will be displayed constantly.
Code
Trigger("Player 1"){
Conditions:
Memory(187424, Exactly, 1885957715);
Memory(187425, Exactly, 121270885);
Memory(187426, Exactly, 1886930208);
Memory(187427, Exactly, 1852399980);
Switch("LockExplanation", set);
Switch("ArenaActive", set);
Switch("LockExplanationExample", not set);
Switch("LockExplanationExplain", not set);
Actions:
Set Deaths("Current Player", "Alan Schezar (Goliath)", Set To, 90);
Set Deaths("Current Player", "Alan Turret", Set To, 1);
Display Text Message(Always Display, "\x004\x013Simply put, a \"lock\" is how you kill an opposing Sniper.");
Set Switch("LockExplanationExplain", set);
Preserve Trigger();
Comment("LockExplanationExplain11");
}
//-----------------------------------------------------------------//
Conditions:
Memory(187424, Exactly, 1885957715);
Memory(187425, Exactly, 121270885);
Memory(187426, Exactly, 1886930208);
Memory(187427, Exactly, 1852399980);
Switch("LockExplanation", set);
Switch("ArenaActive", set);
Switch("LockExplanationExample", not set);
Switch("LockExplanationExplain", not set);
Actions:
Set Deaths("Current Player", "Alan Schezar (Goliath)", Set To, 90);
Set Deaths("Current Player", "Alan Turret", Set To, 1);
Display Text Message(Always Display, "\x004\x013Simply put, a \"lock\" is how you kill an opposing Sniper.");
Set Switch("LockExplanationExplain", set);
Preserve Trigger();
Comment("LockExplanationExplain11");
}
//-----------------------------------------------------------------//
This specific command, starts by typing "Explain" when each of those switches are set. This command works when I first get to the are and the "LockExplanation" and "ArenaActive" are set and the "LockExplanationExample" and "LockExplanationExample" are clear.
After that command, the are a series of display text triggers, ending in this.
Code
Trigger("Player 1"){
Conditions:
Switch("LockExplanation", set);
Switch("LockExplanationExplain", set);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Deaths("Current Player", "Alan Turret", Exactly, 14);
Actions:
Set Switch("LockExplanationExplain", clear);
Display Text Message(Always Display, "\x004\x013Doing these steps, will \"Lock\" the opposing Sniper.\r\n\x004\x013Go ahead, try it!");
Set Deaths("Current Player", "Alan Schezar (Goliath)", Set To, 45);
Set Deaths("Current Player", "Alan Turret", Set To, 15);
Preserve Trigger();
Comment("LockExplanationMessage7-7");
}
//-----------------------------------------------------------------//
Conditions:
Switch("LockExplanation", set);
Switch("LockExplanationExplain", set);
Deaths("Current Player", "Alan Schezar (Goliath)", Exactly, 0);
Deaths("Current Player", "Alan Turret", Exactly, 14);
Actions:
Set Switch("LockExplanationExplain", clear);
Display Text Message(Always Display, "\x004\x013Doing these steps, will \"Lock\" the opposing Sniper.\r\n\x004\x013Go ahead, try it!");
Set Deaths("Current Player", "Alan Schezar (Goliath)", Set To, 45);
Set Deaths("Current Player", "Alan Turret", Set To, 15);
Preserve Trigger();
Comment("LockExplanationMessage7-7");
}
//-----------------------------------------------------------------//
Now, if I don't do anything else, and I type "Explain" the trigger set refires, as it should.
But, if I kill the enemy unit, it sets this trigger off.
Code
Trigger("Player 1"){
Conditions:
Bring("Current Player", "Terran Ghost", "LockExplanationArena", Exactly, 1);
Bring("Player 2", "Terran Ghost", "LockExplanationArena", Exactly, 0);
Actions:
Display Text Message(Always Display, "\x004\x013Good job, you completed this arena!\r\n\x004\x013Remember, type \"Leave\" to leave this arena or stay and practice!\r\n\x004\x013Or type \"Explain\" to hear again!");
Create Unit("Player 2", "Terran Ghost", 1, "LockExplinationSpawnAI");
Preserve Trigger();
Comment("LockExplanationComplete/Respawn1");
}
//-----------------------------------------------------------------//
Conditions:
Bring("Current Player", "Terran Ghost", "LockExplanationArena", Exactly, 1);
Bring("Player 2", "Terran Ghost", "LockExplanationArena", Exactly, 0);
Actions:
Display Text Message(Always Display, "\x004\x013Good job, you completed this arena!\r\n\x004\x013Remember, type \"Leave\" to leave this arena or stay and practice!\r\n\x004\x013Or type \"Explain\" to hear again!");
Create Unit("Player 2", "Terran Ghost", 1, "LockExplinationSpawnAI");
Preserve Trigger();
Comment("LockExplanationComplete/Respawn1");
}
//-----------------------------------------------------------------//
As it should, but after I do that, when I type "Explain" again, nothing happens at all. But, I can't see how this is, since I have the trigger for rows 1-11.
None.






