[Solved] Damage Skill That Also Heals

It... works how I was suggested, but it doesn't do damage or heal. And this entire conversation is confusing me terribly...

Skill Screenshot:
upload_2018-10-17_18-19-46.png


Notebox Formula:

<MP Cost: 50%>

<Enemy or Actor Select>

<Single or Multiple Select>

<damage formula>
if (target.isActor){
value = -(Math.round((a.mat * 8) * 0.25))
} else {
value = a.mat * 8 - b.mdf * 4
}
</damage formula>

Battle Proof of 0 Damage:
upload_2018-10-17_18-32-10.png


Same with the healing... it heals for 0 when I select the party. But the plugins work.

And I also figured out why it would only select the Bat B. Because for some reason mouse control is enabled with the plugin, which confused me.

~ Dragon
your "IsActor" check is missing a (), and thus should read as "if (target.isActor()){"
Okay, so the damage works now, but the healing still doesn't.

~ Dragon
Earlier in this thread, I suggested you change <damage formula> to a <Pre-Damage Eval> via the Skill Core:

<Pre-Damage Eval>
if (this.isHpEffect() && value > 0){
if (target.isActor()){
value = Math.round(-value * 0.25);
}
}
</Pre-Damage Eval>
You are absolutely right. I am so sorry!

I took that suggestion and fixed it. And it works now!

Thank you so much~!

~ Dragon

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.

Original thread: https://forums.rpgmakerweb.com/threads/solved-damage-skill-that-also-heals.101162/