I just installed the YEP battle engine and sequence plugins and I'm having trouble with getting the exact value I want for the healing portion of a spell.
I want the heal to be based of the users Mattack and enemies MDef, but trying to assign it causes the error "a is not defined".
As you can see, if the enemy was killed in the attack, then the calculation should weight the enemies mDef lower for the heal, but it seems the two forms of notation don't work together.
Is there a way I can use the damage formula notation in the YEP sequences? Sorry If this has been answered somewhere but I checked a few tutorials and the YEP pages for these plugins don't use this notation.
If this can't be done, is there an alternative? Can I apply the effect of another action?
I want the heal to be based of the users Mattack and enemies MDef, but trying to assign it causes the error "a is not defined".
Code:
<follow action>
perform action
motion wait:user
animation 41: user
wait for animation
if b.isDeathStateAffected()
change variable 21 = a.mat*4/b.mdf*2
else
change variable 21 = a.mat*4/b.mdf*3
end
HP +variable 21: user, show
</follow action>
As you can see, if the enemy was killed in the attack, then the calculation should weight the enemies mDef lower for the heal, but it seems the two forms of notation don't work together.
Is there a way I can use the damage formula notation in the YEP sequences? Sorry If this has been answered somewhere but I checked a few tutorials and the YEP pages for these plugins don't use this notation.
If this can't be done, is there an alternative? Can I apply the effect of another action?