[Solved] Damage Skill That Also Heals

● ARCHIVED · READ-ONLY
Started by DragonRose35 26 posts Page 2 of 2 View original ↗
  1. 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
  2. your "IsActor" check is missing a (), and thus should read as "if (target.isActor()){"
  3. Okay, so the damage works now, but the healing still doesn't.

    ~ Dragon
  4. 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>
  5. You are absolutely right. I am so sorry!

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

    Thank you so much~!

    ~ Dragon
  6. 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.