When i am using the boolean unit is alive condition, it still considers a unit alive even if it is dead. I tried to check it using this trigger
[trigger=trigger]Untitled Trigger 001
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player_Hero[1] is alive) Equal to True
Then - Actions
Game - Display to (All players) the text: Hero Alive
Else - Actions
Set testg = (Units owned by Player 1 (Red) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is alive) Equal to True)))
Unit Group - Pick every unit in testg and do (Actions)
Loop - Actions
Game - Display to (All players) the text: ((Name of (Picked unit)) + is alive.)[/trigger]
So, that trigger was supposed to show the message "Hero Alive" if 'Player_Hero[1] is alive', and another using a unit group that uses a matching condition. This trigger does indeed work, but even if the units are dead, it still works. How can i fix it?
EDIT:
Same for 'unit is dead' condition. units are always alive even if dead ingame.
[trigger=trigger]Untitled Trigger 001
Events
Player - Player 1 (Red) skips a cinematic sequence
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Player_Hero[1] is alive) Equal to True
Then - Actions
Game - Display to (All players) the text: Hero Alive
Else - Actions
Set testg = (Units owned by Player 1 (Red) matching ((((Matching unit) is A Hero) Equal to True) and (((Matching unit) is alive) Equal to True)))
Unit Group - Pick every unit in testg and do (Actions)
Loop - Actions
Game - Display to (All players) the text: ((Name of (Picked unit)) + is alive.)[/trigger]
So, that trigger was supposed to show the message "Hero Alive" if 'Player_Hero[1] is alive', and another using a unit group that uses a matching condition. This trigger does indeed work, but even if the units are dead, it still works. How can i fix it?
EDIT:
Same for 'unit is dead' condition. units are always alive even if dead ingame.