Variables in Combat

First of all: Sorry if I post this in the wrong thread, still kind of new to the world of forums.

I am searching for a possibility to use variables in order to alter some stats during the combat.

To put it simple:
I am trying to make some kind of berserker-class, which uses rage.
Every move that berserker makes creates some rage until he reaches 100. Then the "bar" resets itself to 0 and he gets a buff to increase his damage for 3 turns. But every point of rage itself should also increase his damage by a small percentage.

Is there some way to do that? And is it possible to change other stats in the same way?
I'm also curious on how to have a static increase in stats using variables. but this can be done easily with common events and using v[N] in your damage formulas. In the common event the skill attaches to, have it increase the variable. When the variable reaches a certain number, have a conditinal branch that resets the variable and adds a state

in the damage formula, do something like: a.atk*4/((b.def/1.5)) + ((v[7]/3)) (If variable 7 is the one you choose for this). Then attach it to a common event which does what i mentioned above
I still dont know, where I could edit the damage formula...
But the rest is totally clear to me - I could scold myself right now for not finding that solution by myself.

But I guess I cannot attach those formulas to a basic attack of that character... Another useless basic. 😀
You can use variables in a damage formula with v[n]. Where n is the variables ID number
I have already read about it somewhere but I dont know, where I can enter those values. Thats my big problem^^
I saw that screen in VX Ace but nowhere in XP.
Yeah that is a VXA thing, not XP. You have to look into your Game_Battler 3 script for the damage formulas. And use $game_variables[ID] to access a variable.
Thanks for your answer.
Now I have to figure out how to read and edit it properly but I guess I can do that by myself.

Original thread: https://forums.rpgmakerweb.com/threads/variables-in-combat.114384/