Hello, as per above, I'm having difficulty achieving my wish for a specific Yanfly scripting. More specifically, it's in regards to: YEP.56 - Limited Skill Uses - RPG Maker MV
I'm trying to utilize the plugin to make it so my character has limited skill uses (let's say 3 uses), but only per level. So after using 3 times, it is 0/3. Then, when level-up, reset the value to 3/3. They don't stack, so if 2 levels gained, not 6/3, just always 3/3.
The code I was trying to utilize is the following:
<Limit uses: 3>
<Custom Skill 27 Limited Uses>
if user.level += {
user.recoverAll();
}
</Custom Skill 27 Limited Uses>
Obviously, this is incorrect, I am definitely learning improvements everyday, I'm no expert. I couldn't find the scriptcall code to be used for the event (under Actor) ==> 'Recover All...' (specifically for Variable). My thinking was to use a scriptcall for it under my Skill (with the code I have used above), and define a variable, then just recoverAll on that variable so the variable refreshes back to 3/3 skill uses when the character levels up. I might be going about this incorrectly, I know there's a lot of people on here who are very smart when it comes to doing these things.
Thank you if anyone is able to solve this. I'm thinking the fix is fairly easy, and someone will understand it very fast. Feel free to post the correct code if solve-able.
P.S. Is there a way to console.log the event I have on the map to specifically have it show all information the event is using? As-in, I have an event6 doing only RecoverAll Variable. I console.log($gameMap.event(6)); but I don't recall seeing any code to help me find the exact scriptcall I could use from it for debugging this (meaning whatever the scriptcall for RecoverAllOnVariable is). I didn't wish to have to go-about opening json files yet, so I thought if I could get the info in the console.log I could debug it. Any info on if that can be done will probably help out I, and maybe even others, for the future [in regards to debugging]. Again -- thank you.