How would I be able to do this?
So far I have figured out how to handle recovery and regen inverts.
How would I have a Life/Phoenix Down inversion during Zombie State?
Also is there a reason for making it !b? in the eval?
Thanks for the reply 🙂
Oh no that was just me copy-pasting it and overlooking the !
You would want to omit the ! in this case.
I definitely suggest not doing the 100% = undead and 0% = living because then anything without the trait Element Rate Undead = 0% would be considered undead. However I could see why you might want to, so it's up to you.
I think b.elementRate(elementId) == 100 might be correct. If it isn't try == 1, as it might be a percent based value.
!b means if b, the target, is not, so the check here:
!b.isStateAffected(stateId) means
b is not affected by state #stareId,
If you were doing a zombie state you could have your eval like this:
If(!b.isStateAffected(stateId)){b.revives(); b.mhp/2;} else{b.dies();} where stateId is the zombie state id. And where the target revives if not affected by the zombie state or dies if they are.