Influencing multiple stats via Damage Formulas

Hello great sages of RPG Maker, I have another question.


So im currently working on a skill system that passively improves skill via variables. Now I've gotten the skill system to work great, but as for the damage formulas I'm running into some trouble.


So this works just fine: (a.atk * 1 - b.def * 1) * (.1 * v[9]) to gradually increase my attack, but lets say that in addition to increasing my damage I also wanted to increase my critical, or evasion with the same skill.


So far everything I've tried hasn't worked and the skill just does zero damage if I try and add any additional formulas or stats into it.


What can I do to make this work?
Have you tried creating a state which increases those stats (set to remove at battle end or however many turns you want) and as part of your skill, have it inflict that state?  In Ace the additional part of the formula would be


a.add_state(id)


but I think that in MV the syntax is not add, but something else.  Maybe you know the correct MV term.  Allowing for that alteration, the damage formula would be something like


a.add_state(id); (a.atk * 1 - b.def * 1) * (.1 * v[9])

Original thread: https://forums.rpgmakerweb.com/threads/influencing-multiple-stats-via-damage-formulas.70977/