[trigger=Specific Removal Trigger]
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Unit - Remove (Dying Unit) from the game
Set Spawn[1] = Number of units in (Units in Region 001 Red <gen> owned by Player 12 (Brown)))
Leaderboard - Change the Value for Player 1 (red) in (Last Created leaderboard) to Spawn [1]
Else - Actions
Do Nothing
[/trigger]
This is what i currently have. however, because this removes the corpse, it means spells like Animate Dead or Resurrection Cannot be used. However, if i don't remove the Corpse, the Spawn[1] Value doesn't change.
I can't use Set Spawn[1] = (Number of living SpawnType units owned by Player 12 (Brown)) either since it has to go on the leaderboard of "how many there are left spawned in a specific region."
is there a condition i can add to it to make it so that it does something like "If ((Dying Unit) dies in Region 001 Red)) then do (Set Spawn[1] = Spawn[1] - 1) else do (Do Nothing)???
Events
Unit - A unit Dies
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Then - Actions
Unit - Remove (Dying Unit) from the game
Set Spawn[1] = Number of units in (Units in Region 001 Red <gen> owned by Player 12 (Brown)))
Leaderboard - Change the Value for Player 1 (red) in (Last Created leaderboard) to Spawn [1]
Else - Actions
Do Nothing
[/trigger]
This is what i currently have. however, because this removes the corpse, it means spells like Animate Dead or Resurrection Cannot be used. However, if i don't remove the Corpse, the Spawn[1] Value doesn't change.
I can't use Set Spawn[1] = (Number of living SpawnType units owned by Player 12 (Brown)) either since it has to go on the leaderboard of "how many there are left spawned in a specific region."
is there a condition i can add to it to make it so that it does something like "If ((Dying Unit) dies in Region 001 Red)) then do (Set Spawn[1] = Spawn[1] - 1) else do (Do Nothing)???