Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Zeratul (Dark Templar)", Exactly, 1); <-----Detects death of player1's unit
Switch("Switch7", set); <-----Denotes P1 was in battle, no problems here
Deaths("Current Player", "Zerg Ultralisk", Exactly, 5); <-----Denotes which battle p1 is in
Bring("The Tenebrous", "Men", "Location 128", Exactly, 0); <-----Denotes no other human players are in the battle
Actions:
Set Deaths("Player 1", "Zerg Ultralisk", Set To, 0);
Move Location("Player 9", "Zerg Drone", "Location 82", "M");
Move Unit("Player 7", "Zerg Ultralisk", 1, "Location 128", "M");
Set Invincibility("Player 7", "Zerg Ultralisk", "M", enabled);
Remove Unit At Location("Player 12", "Terran Marine", 1, "Location 125");
Set Switch("Switch7", clear);
Preserve Trigger();
; Comment("Hero Loss");
}
Trigger("Player 1"){
Conditions:
Deaths("Player 1", "Zeratul (Dark Templar)", Exactly, 1);
Switch("Switch7", set);
Deaths("Current Player", "Zerg Ultralisk", Exactly, 5);
Actions:
Set Deaths("Player 1", "Zerg Ultralisk", Set To, 0);
Remove Unit At Location("Player 12", "Terran Marine", 1, "Location 125");
Set Switch("Switch7", clear);
Preserve Trigger();
; Comment("Hero Loss");
}
Now the first trigger is to move the ultralisk back when p1 is alone in the battle. The second trigger is to do everything necessary but move the ultralisk back, because there are other players in the battle. However, what I've actually found is that the second trigger will run and the first trigger will not, despite the fact that I have been testing this solo, so there aren't any other players in the game.
So what I would like to know, is: Does starcraft execute unit death registration/detection/whatever its called/ in some strange order?
Since P1's unit is dead and there aren't any other players in the game at the time of testing, that should mean that "Force 1 brings exactly 0 men to Location 128" is fulfilled. I know the other 3 conditions are fulfilled because the second trigger fires and i can see the results.
Note: I do not need a solution to make the first trigger run, already fixed that, I just want to know wtf is going on.
None.