I'm looking to spice up the zombies and add the ability Undead Fortitude.
Undead Fortitude. If damage reduces the zombie to 0 hit points, it must make a Constitution saving throw with a DC of 5 + the damage taken, unless the damage is radiant or from a critical hit. On a success, the zombie drops to 1 hit point instead.
I realise that it may not be possible to script it exactly but I would like to be able to make the zombies at least have a chance to get back up with 1 hp.
Here's what I have so far:
Create variable . Roll to Determine if Undead Fortitude Triggers 0
Assign die roll to variable . Roll to Determine if Undead Fortitude Triggers 20
If variable . Roll to Determine if Undead Fortitude Triggers Is above or equal to the number 8
If character has condition Test_Zombie_0001 Dead
Give condition Remove from Test_Zombie_0001 Dead Rounds 0 0 0
End if
Set HPs Zombie_0001 1
End if
End script
Any help would be appreciated.