Gaining stats after or during a battle script

So in addition to gaining stats from leveling up is there a way to grant permenant stat increases based on behavior and RNG done in battle?

For example, if you get healed from low health a lot of times there's a chance you will increase your Max HP or if you perform the attack command enough times there is a % chance you will increase your attack power, and if you guard against attacks enough times there is a chance you will increase your defense. Things like that
That has nothing to do with the battlescript, it's about skill handling.


Basically the skill has to count up the uses (for target and/or user) by adding variable counts to the damage formula.


Then, when certain numbers are reached, an event can check if the actor gets a bonus - and that can be done either as common event or as troop event depending on when you want that effect.


There might be some conditions where it's difficult to count as a skill, and for that you might have to look for scripts - but those are usually rare and I think it'll work better if you start doing that with pure eventing and only ask for scripts/help for the few cases where you don't know how to check that condition.
You're probably right. I've seen this thing done on RPG Maker 2000 purely by battle events.... but if there was any kind of script based on this glad to see it. Doesn't have to be exact same rules.

Original thread: https://forums.rpgmakerweb.com/threads/gaining-stats-after-or-during-a-battle-script.40075/