Yanfly Limited Skill Uses Issue

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
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! 
 
Last edited by a moderator:

Lear

Veteran
Veteran
Joined
Aug 12, 2012
Messages
59
Reaction score
11
Primarily Uses
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.)
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
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
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
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
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
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.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
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. 
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
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.
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
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.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

On my journey of character rework: I had this character, she was meant to be just a princess that joins your party. And at long term she was just uninteresting... So I tweaked her to be a rebel agaisn't the royalty before meeting up with the party.

Quick tip for any other ametuer pixel artists! When trying to create a colour palette, enabling Antialiasing can speed up the process of creating different shades! Just place your lightest colour and your darkest colour next to each other, select both pixels, and stretch it out!
Revolutionizing the JRPG Industry: Knocking on Doors.

Take that, murderhobos.
Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.

Forum statistics

Threads
106,054
Messages
1,018,578
Members
137,843
Latest member
Betwixt000
Top