After 3 hours I made it...

Before anything; my only java coding experience is from code academy first 2 or 3 courses... from 6 months ago. I also don't know MV terms even though there are very useful lists they don't always have the example you need.


So I was trying to create a skill check for a variable to be usable (using Yanfly plugins) but I could not figure out how to make it do so, trying $game_variables[3] and $gameVariables.setValue I forgot what other bits of code I had there... I was about to go crazy when I had a sudden flash of checking the Battle Engine Core list... nothing there... oh what's that? Action Sequences? Why not... sweet Jesus it check for switches, might work for Variables? IT DOES OH MY... It was as simple as:


<Custom Requirement>


if ($gameVariables.value(3) > 0){


value = true;


} else {


value = false;


}


</Custom Requirement>


Now if you will excuse me, I have to go cry myself to sleep so I can go to work in a few hours then I have the weekend to figure how to make it reduce the variable's value with every use.

<Custom Execution>
($gameVariables.value(3) --- 1);


</Custom Execution>
Would that work?
Yes I put this in off topic, as it is a sort of rant but at the same time I am proud I managed to make it work minus the time it actually took me... but hey I am learning, right?
It would be value--; to decrement.


Grats though 🙂

Original thread: https://forums.rpgmakerweb.com/threads/after-3-hours-i-made-it.71420/