RPG Maker Forums

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.

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top