Add Attack Parameters at the End of a Battle

So, I am making a game in which I want battles to award gold and to increase the players Attack Parameter. I however, do not know how to do this. Everything I have tried so far has resulted in either nothing happening or the game freezing.
If the battlers are evented this would be just be a case of change parameters call after the battle event, if it's random encounters, it would need to be scripted
I strongly suggest that for something like this, you should go for evented battles - as said above that would make the solution simple by adding an add parameter command after the battleprocessing command.


Using such a mechanic with random encounters not only requires you to use scripting, it also introduces a big balancing problem: there is no way to limit the number of random encounters (the are methods, but using them would defeat the purpose and you'll be back to something similiar to evented encounters), so the attack addition will allow for unlimited boosts to the actors if the player just fights often enough.

Original thread: https://forums.rpgmakerweb.com/threads/add-attack-parameters-at-the-end-of-a-battle.36660/