Yanfly Limited Skill Uses Issue

So I'm looking for a way to make it so that you are only able restore your skill points when you rest at an inn. I've scoured the internet trying to find a solution, but have come up empty handed. Does anyone know how I could accomplish this?


Here is a link to the Plugin: 
http://yanfly.moe/2016/01/09/yep-56-limited-skill-uses/


After updating the plugin and using this code 


$gameParty.recoverLimitedSkillUses();

$gameActors.actor(X).recoverAllLimitedSkillUses()
(^- X = the id of the actor.)





It works! 
By default, I think the game engines Recover All command refills all skill uses. Couldn't you just use that at an inn?

I am unable to test in a project right now, but perhaps one of these via script call would recover a user's skills without having to rely on the Recover All command?
 

Code:
$gameParty.recoverLimitedSkillUses();

$gameActors.actor(X).recoverAllLimitedSkillUses()
                 (^- X = the id of the actor.)
If this is like the Ace version, then I think the issue is that Yanfly's plugin restores at the end of battle, whereas the OP wants it restricted to being restored at the Inn.


I am doing the 'Inn Rest Only' thing in Ace and it needed an additional script.  I would expect the same to be true for MV
By default, I think the game engines Recover All command refills all skill uses. Couldn't you just use that at an inn?

I am unable to test in a project right now, but perhaps one of these via script call would recover a user's skills without having to rely on the Recover All command?
 



$gameParty.recoverLimitedSkillUses();

$gameActors.actor(X).recoverAllLimitedSkillUses()
(^- X = the id of the actor.)



Yeah, the engine says that you can use the tag <recover all uses> to restore all uses, but it doesn't work. I've tried calling it from a plugin command at an inn and it doesn't work, I've even tried tagging an item and a spell with it and that doesn't work either.

As for those scripts, both of them return a value ingame of "NaN". So my skill that once said 1/5 uses will now say NaN/5 
I have no idea what this means as I know little about scripting T_T

Thanks for your help so far though!



I'd also like to add that I'm using MV
If this is like the Ace version, then I think the issue is that Yanfly's plugin restores at the end of battle, whereas the OP wants it restricted to being restored at the Inn.


I am doing the 'Inn Rest Only' thing in Ace and it needed an additional script.  I would expect the same to be true for MV



I've set the option up in the plugin menu so that none of the charges restore at the end of battle. Now I just need to figure out how to restore the charges at an inn. I'm using MV btw.
Yes, I realize that, which is why I didn't offer my solution.  I just think that, like me, you will have to ask for a small script to do this.  If it's any help, it was done using Yanfly's Skill Cost script, and then a small script to enable the option of only restoring at the inn with a simple script call. 
Yes, I realize that, which is why I didn't offer my solution.  I just think that, like me, you will have to ask for a small script to do this.  If it's any help, it was done using Yanfly's Skill Cost script, and then a small script to enable the option of only restoring at the inn with a simple script call. 



Ah alright. I'll try to find the right forum to post this request in.
I just wanted to add, that using the recover all ability from say an inn or something does restore all my stats, but not my skill points from this addon. The documentation says it should, I'm confused as to why it doesn't.
KawaiiKid, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.



If you want to add something, simply edit your earlier post and include the new stuff.  If you want to make it clear who you are replying to, just use the @membername convention.


You are referring to a plugin, but you haven't actually specified which plugin you are using for this, nor provided a link for it, so we cannot know what the documentation for it says.  Please edit your opening post to include this information.  Without it, suggestions just remain guesswork on anyone's part.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-limited-skill-uses-issue.73551/