I've been looking through tutorials and example formulas but I just can't figure this out, and I'm getting tired so I thought I'd ask here.
I'm trying to create a spell that does regular HP damage to an enemy, but if a certain state exists on that enemy, it deals regular HP damage and heals the caster by a set amount.
Any help would be appreciated.
State-affected Skill?
● ARCHIVED · READ-ONLY
-
-
Easy to do in the formula box. Remember that you can use "a" for user and "b" for target, and also remember that the FINAL segment of a damage formula must evaluate to the amount of damage you want to do.
So use something like:
if b.state?(26); a.hp += 50; end; a.mat * 4 - b.mdf * 2 -
Aah, "end;". That's what I was looking for. Works perfectly now, thanks. :)
-
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.