Skill usage restricted to variables?

Recently I have played a game called “Kioh Gyoku”, which has a kinda fun mechanic I wanted to replicate in my game (even though the game is a STG (shooter game)):

There’s a gauge at the bottom of the screen, which fills up gradually: Once the gauge reaches certain levels, pressing a key will empty the gauge and unleashes an attack based on the gauge’s level (each level (max 4) has different attacks based on the character we / the opponent is controlling.

I would like to do a similar thing using RPG Maker using skills and variables, to which I want some skills to have usage be restricted to the value of a variable (placeholder name “Power”). For instance, a skill would be usable regardless of that variable’s value, while others cannot be used unless that variable’s value hit certain values (let’s say I want 200 for a “Level 2” attack, 300 for “Level 3”, and so on).

But I have no idea on how to do this…

Can you please help me with this?
Probably the easiest way would be to grab whichever Yanfly plugin has skill accessibility note tags, and use said note tag in the note box of your skill. For MV, I *think* you would use Skill Core, and the Custom Requirement note tag. For example:
Code:
<Custom Requirement>
  value = $gameVariables.value(id) >= 200;
</Custom Requirement>

You would change id to be the numerical ID of the variable that you want to check. You could also make it subtract 200 from that variable upon use, by adding this note tag:
Code:
<Custom Execution>
  $gameVariables.setValue(id, $gameVariables.value(id) - 200);
</Custom Execution>
Probably the easiest way would be to grab whichever Yanfly plugin has skill accessibility note tags, and use said note tag in the note box of your skill. For MV, I *think* you would use Skill Core, and the Custom Requirement note tag. For example:
Code:
<Custom Requirement>
  value = $gameVariables.value(id) >= 200;
</Custom Requirement>

You would change id to be the numerical ID of the variable that you want to check. You could also make it subtract 200 from that variable upon use, by adding this note tag:
Code:
<Custom Execution>
  $gameVariables.setValue(id, $gameVariables.value(id) - 200);
</Custom Execution>
That’s exactly what I’ve think of lately! Problem solved…

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/skill-usage-restricted-to-variables.149548/