So I had this idea for an attack where if the enemy isn't a boss and is at 50% or lower health, the attack will OHKO them. Otherwise it does nothing. I figured the best way I can manage this is by using a Common Event and having a Conditional Branch that will manage the attack.
Common Events for attacks
RPG Maker MV Supportnope - it can be done this way, but it would be tedious as common events are executed independently (no data on user) and only at the end of the battleturn (after everything else).
A better way would be to use conditional javascript in the damage formula - there are topics on this forum on how to use the damage formula coding, please search for them and you'll find examples on how to do that.
A better way would be to use conditional javascript in the damage formula - there are topics on this forum on how to use the damage formula coding, please search for them and you'll find examples on how to do that.
Original thread: https://forums.rpgmakerweb.com/threads/common-events-for-attacks.66855/