Is it possible to round all damage done to the 10s digit, as in 374 damage does 370 damage instead? I don't want anything to deal less than 10 damage either. I have access to all of Yanfly's plugins if that helps.
Round all damage to the 10s digit
RPG Maker MV SupportI'd imagine something with math.round, although I don't know if you can set what it rounds to, you'd probably have to look into that to see how JS works.
I hope you find what you looking for.
I hope you find what you looking for.
Yeah I know it has something to do with Math.round() and I know it's possible. I just need the exact code for it.
You could add a step in Yanfly's Damage Core plugin:
Edit: or, without plugins, edit all your skill formulae, e.g.
Code:
value = 10 * Math.round(value / 10);
Edit: or, without plugins, edit all your skill formulae, e.g.
Code:
10 * Math.round((a.atk * 4 - b.def * 2) / 10)
Which damage step should I put it in?
@alcreator440 I think they apply in order 1->100, so one near the end maybe? 🙂
It works! Thank you so much!
Original thread: https://forums.rpgmakerweb.com/threads/round-all-damage-to-the-10s-digit.127973/