State that affects damage variance of all of an actor's attacks?

● ARCHIVED · READ-ONLY
Started by Mx-Toyblock 3 posts View original ↗
  1. Hey guys, sorry if this is obvious, but I tried to look for something similar, but maybe I'm just not good at looking for things lol.

    But yeah, I'm trying to create a state that affects the damage rate of all of the affected actor's attacks (physical/magical/certain) to either do -10% to 50% more damage.

    So every time the user attacks with this state, they will get an added damage boost between the percentages of -10% and 50%.

    Thank you!
  2. You will need Yanfly's Buffs&States Core plugin. Make a state and add this code to it:

    <Custom Confirm Effect>
    if (this.isHpEffect() && value > 0) {
    value = Math.round(value * (0.90 + (Math.random()*0.60)));
    }
    </Custom Confirm Effect>
  3. Ah shoot, you're a legend, dude! Works perfectly, thanks man.