The trigger concept is VERY simple.
Cond:
Player brings civilian
Player doesn't command building
Action:
Play wav
Remove 1 civilian
Give building
Ping
Preserve
This works fine! But when I try the EXACT same triggers, using Khaydarin Crystal Formation under the conditions... the triggers work, but always preserve. (ie keep sucking in civilians and re-giving the same building). Khaydarin Crystal IS given to X player, but do triggers read it as that player owning it?
The only thing I can think of is if the "building" is a Neutral unit and always belongs to P12 (even if given to another player, with appropriate player color displaying).
I can easily just use a different building/unit to replace the crystal, but this problem still urks me.
//-----------------------------------------------------------------//
Trigger("Force 1"){
Conditions:
Bring("Force 1", "Terran Civilian", "Empowerment1", At least, 1);
Bring("Force 1", "Protoss Temple", "Empowerment1", Exactly, 0);
Actions:
Play WAV("sound\\Misc\\PRescue.wav", 1637);
Remove Unit At Location("Force 1", "Terran Civilian", 1, "Empowerment1");
Display Text Message(Always Display, "\x013\x002\x007Empowerment Checkpoint Aquired \x004(+1 Frag Count)\r\n\r\n");
Give Units to Player("All players", "Player 4", "Protoss Temple", 1, "Empowerment1");
Minimap Ping("Empowerment1");
Preserve Trigger();
}
//-----------------------------------------------------------------//
//-----------------------------------------------------------------//
Trigger("Force 1"){
Conditions:
Bring("Force 1", "Terran Civilian", "Resource1", At least, 1);
Bring("Force 1", "Kyadarin Crystal Formation", "Resource1", Exactly, 0);
Actions:
Play WAV("sound\\Misc\\PRescue.wav", 1637);
Remove Unit At Location("Force 1", "Terran Civilian", 1, "Resource1");
Display Text Message(Always Display, "\x013\x002\x007Resource Checkpoint Aquired \x004(+1 Resource Income)\r\n\r\n");
Give Units to Player("All players", "Player 4", "Khaydarin Crystal Formation", 1, "Resource1");
Minimap Ping("Resource1");
Preserve Trigger();
}
None.