Is it possible to show variables during battle

So I have a weapon with its own attack which increases a variable and once it reached x number it resets and deals damage based on the variables size. Is there anyway to show variables on screen next to the enemy or if that isn't possible have one at the side of the screen?
you can use either a HUD-type plugin for the battlescreen or use states with number icons - the state solution would be really complex using troop events to put the correct state up, but is possible.
since i recall youre using yanflys plugins, a state with a custom counter either on the target or on the user would be a good option.

youll need yanflys buffs & states, add the state to whoever you choose and set their counter to be the variable youre using. youll probably eben be able to scrap the variable use and control everything with just the state counter.
since i recall youre using yanflys plugins, a state with a custom counter either on the target or on the user would be a good option.

youll need yanflys buffs & states, add the state to whoever you choose and set their counter to be the variable youre using. youll probably eben be able to scrap the variable use and control everything with just the state counter.
How would that work? I get what you're saying with the cooldowns and that but i'm not fully there on the method.

I'm assuming there is a way to show the turns and not have it decrease so i can use it as the counter with moves increasing that, then when I hit the variable/countdown required then I can have the state removed and do damage to every entity with that state (entities with more of the variable take more etc.) but I'm not too sure how I can go around checking to see if the countdown is high enough
youre going to need: damage, buffs&states and skill core plugins.

set up a state with no decay but it can be removed by the end of battle. this state needs an icon.

set a way to add the state (it can be due to another passive state being applied by the weapon or some other state that, when present, will make skills apply this state.

on the state note box:
Code:
<custom apply effect>
   user._sCounter = user._sCounter || 0;
   user._sCounter++;
   //replace X bellow to your state id.
   user.setStateCounter(X, sCounter);
</custom apply effect>

<custom remove effect>
   user.sCounter = 0;
</custom remove effect>

on the damaging skill (can even be the normal attack):
Code:
<pre-damage eval>
   //replace X with the state id and  Y with how many stacks you need it to work
   if(a.getStateCounter(X) >= Y){
      //and set your new damage formula bellow
      value = value * 4;
      //reset the counter to be sure and remove the state
      a.removeStateCounter(X); //replace X with state id
      a.removeState(X); //replace X with state id
   }
</pre-damage eval>
youre going to need: damage, buffs&states and skill core plugins.

set up a state with no decay but it can be removed by the end of battle. this state needs an icon.

set a way to add the state (it can be due to another passive state being applied by the weapon or some other state that, when present, will make skills apply this state.

on the state note box:
Code:
<custom apply effect>
   user._sCounter = user._sCounter || 0;
   user._sCounter++;
   //replace X bellow to your state id.
   user.setStateCounter(X, sCounter);
</custom apply effect>

<custom remove effect>
   user.sCounter = 0;
</custom remove effect>

on the damaging skill (can even be the normal attack):
Code:
<pre-damage eval>
   //replace X with the state id and  Y with how many stacks you need it to work
   if(a.getStateCounter(X) >= Y){
      //and set your new damage formula bellow
      value = value * 4;
      //reset the counter to be sure and remove the state
      a.removeStateCounter(X); //replace X with state id
      a.removeState(X); //replace X with state id
   }
</pre-damage eval>
You're an absolute legend thank you so much
no problem! set this thread to solved if all worked well.

Original thread: https://forums.rpgmakerweb.com/threads/is-it-possible-to-show-variables-during-battle.149580/