Yanfly Limited Skill Uses - Reset Points at Inn

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
Plugin found at http://yanfly.moe/2016/01/09/yep-56-limited-skill-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 currently have it set up so that no points are awarded after combat, and are only drained when you use abilities, now I'm looking for a script that would be able to restore all skill once you talk to an npc for example.

Thanks!
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
While I haven't used this particular plugin, looking through its documentation I think you can do it without any additional plugins or scripting.  There is a plugin parameter to cause the "Recover All" command to refill each characters' skill uses to their maximum; normally this is how you'd want to do it but if you need to use the Recover All command in places where you don't want to fill up the party's skill uses, there is another way.


It makes use of this notetag: <Global Limited Uses: +x>  What you will need to do is make a new skill called "Recover My Skill Uses" or something like that.  Give it that notetag (where x is a very large number like 999), have it target The User, and make sure it has no other effects, costs, or animations.  (This one skill should preferably be unlimited use.)  Don't allow any characters to naturally learn this skill.  At the inn (or other NPC) event, after the party has been healed, teach this skill to each character, have each character use this skill via Force Action (this will increase their remaining skill uses of each skill to their max), and finally make each character forget this skill.  That should do what you need to do!


This will work fine for characters that are not in your active battle party, but I don't think it will work for characters that have been entirely removed from the party itself.  For those characters, when they are brought back into the party, you should do the exact same as the above (teach this skill, force them to use it, and make them forget it) to refill their skill uses.
 

Traveling Bard

The Bard
Veteran
Joined
Jul 4, 2012
Messages
565
Reaction score
491
First Language
English
Primarily Uses
<After Battle Uses Recover: 0> 


Set this on each of your skills note section. Then set the plugin's parameters to recover the uses via "Recover All". Use "Recover All" in the inn events or whenever you'd like to recover their skill uses. 


Hope this helps! :)


Edit: The default for the plugin's parameter for "Recover All" is set to true. So using a "Recover All" command via the inn event should do this naturally. 
 
Last edited by a moderator:

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
While I haven't used this particular plugin, looking through its documentation I think you can do it without any additional plugins or scripting.  There is a plugin parameter to cause the "Recover All" command to refill each characters' skill uses to their maximum; normally this is how you'd want to do it but if you need to use the Recover All command in places where you don't want to fill up the party's skill uses, there is another way.


It makes use of this notetag: <Global Limited Uses: +x>  What you will need to do is make a new skill called "Recover My Skill Uses" or something like that.  Give it that notetag (where x is a very large number like 999), have it target The User, and make sure it has no other effects, costs, or animations.  (This one skill should preferably be unlimited use.)  Don't allow any characters to naturally learn this skill.  At the inn (or other NPC) event, after the party has been healed, teach this skill to each character, have each character use this skill via Force Action (this will increase their remaining skill uses of each skill to their max), and finally make each character forget this skill.  That should do what you need to do!


This will work fine for characters that are not in your active battle party, but I don't think it will work for characters that have been entirely removed from the party itself.  For those characters, when they are brought back into the party, you should do the exact same as the above (teach this skill, force them to use it, and make them forget it) to refill their skill uses.


I just tried this, and it doesn't work. I also just tried giving them the spell that uses <global limited uses +x> but I wasn't able to use it, I just got a buzzing sound.


I've also just tried using <Recover All Uses> as both a note in a spell and item, and as a plugin command and this doesn't work either. :/
 
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
<After Battle Uses Recover: 0> 


Set this on each of your skills note section. Then set the plugin's parameters to recover the uses via "Recover All". Use "Recover All" in the inn events or whenever you'd like to recover their skill uses. 


Hope this helps! :)
The problem is, the <recover all uses> tag doesn't actually do anything. I've tried it multiple ways, and haven't got it to work yet.
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
From what I understand now, the "recover all uses" is actually just the plugin recovering uses after a battle. You can set it in the plugin menu to do this, and it will default to this unless you tag spells otherwise. What the recover all uses tag does is set these skills to still recover after battle, even if you have it defaulted off. So there is really no "recover all uses" command that you can use to get all your points back defaulted into the plugin it seems like, you can only get them back after battle (which I find odd). It looks like it will need a script to do this.
 
Last edited by a moderator:

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
I also just tried giving them the spell that uses <global limited uses +x> but I wasn't able to use it, I just got a buzzing sound.


To get around the "buzzing sound" (skill not allowed to be used), add a Common Event to the skill (using its Features box) which does absolutely nothing.  The fact that a CE is tied to the skill will inform RPG Maker that there is a reason you want to use the skill despite its lack of "normal" effects.  Also make sure that the skill can be used "Always" and that its skill type is "None" on its database tab.
 

Traveling Bard

The Bard
Veteran
Joined
Jul 4, 2012
Messages
565
Reaction score
491
First Language
English
Primarily Uses
I think there is a bit of confusion here. I don't have screenshots to show you but I have a feeling that you didn't modify the plugin from the plugin manager to exclude recover all...


So give this a try...


1. Create an event on your map.


2. Set it as an innkeeper or whatever you'd like it's picture to be.


3. Add a command to it like the attached I found online.


4. Set your trigger to whatever you'd like... say action button.


5. Rake up some uses of skills by fighting enemies or menu uses.


6. Talk to the "innkeeper".


That "Recover All" by default, should restore your limited uses.


Just to be clear, I am not talking about the notetags from the yanfly plugin. I mean the Recover All event from your event contents. By default, unless you changed it under the plugin manager, this event should restore your skill uses. Make sense? 


inn.png
 
Last edited by a moderator:

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
To get around the "buzzing sound" (skill not allowed to be used), add a Common Event to the skill (using its Features box) which does absolutely nothing.  The fact that a CE is tied to the skill will inform RPG Maker that there is a reason you want to use the skill despite its lack of "normal" effects.  Also make sure that the skill can be used "Always" and that its skill type is "None" on its database tab.


When I set the skill to "none" it will not show up in game. Neither letting the class start with the skill, nor giving them the skill via an npc make it show up in my skill menu.


However, if I do put it to "magic" then it will let me use it, but it still does nothing.
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,635
Reaction score
5,116
First Language
English
Primarily Uses
RMVXA
When I set the skill to "none" it will not show up in game. Neither letting the class start with the skill, nor giving them the skill via an npc make it show up in my skill menu.


However, if I do put it to "magic" then it will let me use it, but it still does nothing.


The entire point is for the skill to not show up in game.  What we are doing is  creating a "dummy skill" that is only used when you as the designer force it to be used as part of the Inn event.
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
I think there is a bit of confusion here. I don't have screenshots to show you but I have a feeling that you didn't modify the plugin from the plugin manager to exclude recover all...


So give this a try...


1. Create an event on your map.


2. Set it as an innkeeper or whatever you'd like it's picture to be.


3. Add a command to it like the attached I found online.


4. Set your trigger to whatever you'd like... say action button.


5. Rake up some uses of skills by fighting enemies or menu uses.


6. Talk to the "innkeeper".


That "Recover All" by default, should restore your limited uses.


Just to be clear, I am not talking about the notetags from the yanfly plugin. I mean the Recover All event from your event contents. By default, unless you changed it under the plugin manager, this event should restore your skill uses. Make sense? 


View attachment 56394
Yeah it totally makes sense, and seems like the easiest thing to do, but when I do it in game, it doesn't restore any of the skill points even though I have the option set that way in the plugin...  It does restore everything else, but not my skill points.
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
The entire point is for the skill to not show up in game.  What we are doing is  creating a "dummy skill" that is only used when you as the designer force it to be used as part of the Inn event.
Yeah, I understand that. But if I can't even get it to work as a regular skill...
 

Nessuno

Villager
Member
Joined
Dec 6, 2016
Messages
10
Reaction score
3
First Language
English
Primarily Uses
As far as the recover all goes been messing with the script and some calls for a little bit to not much avail (Mostly getting NaN errors when trying to use the $gameParty.recoverLimitedSkillUses () command laying around in the code). That said have you tried updating the plugin? That may be causing the problem regarding why the standard inn "Recover All" isn't working for you. (Will keep looking into this though since it'd be nice/cool to get a script call or general plug-in for a Recover All for skills only, meaning it could be something separate from inns, or something you could get without the HP/MP recover)
 

KawaiiKid

Veteran
Veteran
Joined
Oct 13, 2015
Messages
151
Reaction score
38
First Language
English
Primarily Uses
As far as the recover all goes been messing with the script and some calls for a little bit to not much avail (Mostly getting NaN errors when trying to use the $gameParty.recoverLimitedSkillUses () command laying around in the code). That said have you tried updating the plugin? That may be causing the problem regarding why the standard inn "Recover All" isn't working for you. (Will keep looking into this though since it'd be nice/cool to get a script call or general plug-in for a Recover All for skills only, meaning it could be something separate from inns, or something you could get without the HP/MP recover)


In a different thread on the help forum, someone suggested this code:


$gameParty.recoverLimitedSkillUses();

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



After updating the plugin and using this code, it works! I figured I'd post here for anyone in the future looking for this~
 
Last edited by a moderator:

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,580
Members
137,843
Latest member
Betwixt000
Top