Bracing Bash

So I am having trouble figuring out how to get this skill to work correctly.


The skill is supposed to function as so:


User damanges an enemy and also applies a small increase to the user's defence till his/her next turn.


The main problem is finding a way to apply the buff to the user. The options that MV offers dont seem to allow you to apply a buff to yourself with a damaging ability unless I am overlooking something. I have considered calling a common event that sets a variable to the actor id of whomever uses the ability in order to apply a state, but I havent managed to figure out how to work that.


So any suggestions at all would be appreciated.
No common event needed, you just need to add this to your damage formula:


a.addBuff(x,y); a.atk*4 - b.def*2


Where x is the parameter id you want to increase, and y is the number of turns you want the buff to last.


These are the parameter ids:


0 - Max HP


1 - Max MP


2 - Attack


3 - Defence


4 - Magic Attack


5 - Magic Defence


6 - Agility


7 - Luck


I recommend you googling "damage formulas 101 MV edition" for a better understanding of the possibilities that the damage formula has to offer.


Good luck with your project! 😀
Oh wow, had no idea the formulas were this flexible without plugins, much appreciated!

Original thread: https://forums.rpgmakerweb.com/threads/bracing-bash.70675/