Hello all.
I have a request.
I'm looking to make a shield state that can nullify any kind of HP/MP/TP damage one time only.
I can make a state that can reduce damage of all types ( I hope. I'll likely only need HP and MP protection, but I'll cross that bridge when I get to it.) but I only know of a state being instantly removable after taking PHYSICAL damage, not magical.
Is there a script out there that can help with this? (Basically, think of being able to wake up from a sleep state via a magical attack)
As an aside, I'm not sure if the state would be removed after taking 0 damage. Anyone know about that?
(I imagine the amount of damage won't matter as long as it's physical. Have to test to be sure.)
Thanks for checking and as always, any and all help is appreciated.
Removing State After receiving ANY damage
● ARCHIVED · READ-ONLY
-
-
Hi there,
I suppose you can do this with the damage formula box, something like.
if b.state?(stateid); b.remove_state(stateid); yourdamageformula; end
You may have to add it to every skill you want it to work like this tho'.
Best. -
That may be doable, but adding that to every skill I have will be quite the tall order.
I'll do that if I must, but I'm confident that a script could do it faster and easier.
EDIT: Ok...
It turns off any attack already WILL cancel the sleep state, magic included.
I'll have to set skills to wake enemies up and take the original removal trigger off.
My mistake.
Guess this can be closed now.