Here is the trigger for one character dieing:
Condition:
Deaths(CurrentPlayer, AtLeast, 1, mud creature);
Bring(CurrentPlayer, AtMost, 0, Mud Creature, Left Arena);
Actions:
CreateUnitWithProperties(1, Mud Creature, Pik Sort, CurrentPlayer, burrowed);
DisplayText("You have been slain! [Respawn in 20 Seconds]", 4);
SetDeaths(CurrentPlayer, SetTo, 0, Mud Creature);
Comment("Die Mud");
SetDeaths(CurrentPlayer, SetTo, 1, Bengalaas);
PlayWAV("sound\\Misc\\ZRescue.wav");
PreserveTrigger();
This is the death count trigger:
Condition:
Deaths(CurrentPlayer, Exactly, 1, Bengalaas);
Action:
Comment("Die Counter");
SetDeaths(CurrentPlayer, Add, 1, Ultralisk Cavern);
PreserveTrigger();
This is the death count listening trigger:
Condition:
Deaths(CurrentPlayer, Exactly, 1, Bengalaas);
Deaths(CurrentPlayer, AtLeast, 255, Zerg Ultra Cavern);
Action:
Comment("Die Count Listen");
SetDeaths(CurrentPlayer, SetTo, 0, Ultralisk Cavern);
SetDeaths(CurrentPlayer, SetTo, 0, bengalaas);
SetSwitch(Switch 1, Randomize);
SetSwitch(Switch 2, Randomize);
SetSwitch(Switch 3, Randomize);
PreserveTrigger();
SetDeaths(CurrentPlayer, SetTo, 1, Kakaru);
And here is one of the possible outcomes for the random gen, all other outcomes are the same exact trigger.. basicly. And no, none of these triggers have an error in them that could cause the bug like a wrong condition switch listener or a wrong unit death in a condition.
Condition:
Switch(Switch 1, Set);
Switch(Switch 2, Set);
Switch(Switch 3, Set);
Deaths(CurrentPlayer, Exactly, 1, Kakaru);
Action:
MoveUnit(All, Men, CurrentPlayer, Pik Waiting, Arena Spawn 1);
CenterView(Arena Spawn 1);
Comment("Random Loc Die");
DisplayText("You have been Respawned!", 4);
SetDeaths(CurrentPlayer, SetTo, 0, Kakaru);
PreserveTrigger();
Any help would be greatly appreciated!
Edit: trigs copied from starforge so conditions had numbers instead of units.[TRIGGER]
Post has been edited 3 time(s), last time on Aug 31 2008, 6:27 am by O)Silent.
None.