Hey, guys! Found a snippet earlier from @JamesRyan :
From here:
https://forums.rpgmakerweb.com/index.php?threads/absorb-damage-state.82101/
I'm using that, and the damage calculations are now coming with decimals(to clarify: only when the absorbing state is active), can someone show me how to make it round up?
I tried to do
Math.round(value);
But nothing? Any help is valuable, as I'm trying to learn JS
Code:
<Custom React Effect>
if (value > 0 && this.isPhysical()){
var heal = value * 0.8;
target.gainHp(heal);
target.startDamagePopup();
target.startAnimation(x); //Change x into an animation ID if you want to display animation when this effect is activated.
value = value * 0.2;}
</Custom React Effect>
From here:
https://forums.rpgmakerweb.com/index.php?threads/absorb-damage-state.82101/
I'm using that, and the damage calculations are now coming with decimals(to clarify: only when the absorbing state is active), can someone show me how to make it round up?
I tried to do
Math.round(value);
But nothing? Any help is valuable, as I'm trying to learn JS