MV [Yanfly's Limited Skill Uses Plugin] How to implement Ether item ?

Hi, I didn't buy Yanfly Limited Skill Uses Plugin yet, since I got a question that's still un-answered. (Searched through the forum and I'm surprised nobody asked for this before)

So, this plugin sets a number of uses for every skill. Those mechanics are similar to PP in Pokemon™. This is what I'm looking for. But I also want to implement a restoration item that restores 10 uses for one skill (pretty much like the Ether item).


Currently, when I read the plugin notes, I can see that the closest I can get is to create an item made specifically for a skill. Like if my item contains the notetag :

Code:
<Skill 5 Limited Uses: +10>

The item is made to restore 10 uses, but only for Skill 5. What I want is to give the choice to the user which Skill they actually want to restore. Much like Ether in Pokemon™

Is it easily doable ? Like either I'm in battle or in the menu, I'd like to select and use the restoration item, and then a mini skill window opens and I can select which skill I wanna restore
That kind of depends on your definition of "easily doable". It is defenitely doable. I would have the item call a common event to present the choice and then set the appropriate skill uses through the script call event command. You will probably also need to save the item's target through some Yanfly Skill Core notetag. If that is easy to you (or you are willing to ask for help), then go right ahead.

As an aside: I would recommend buying the whole Yanfly Library for 30 bucks instead of only buying the specific plugin you currently need. It is well worth it in my opinion and it will save you money in the long run, compared to buying the plugins individually.
That kind of depends on your definition of "easily doable". It is defenitely doable. I would have the item call a common event to present the choice and then set the appropriate skill uses through the script call event command. You will probably also need to save the item's target through some Yanfly Skill Core notetag. If that is easy to you (or you are willing to ask for help), then go right ahead.

As an aside: I would recommend buying the whole Yanfly Library for 30 bucks instead of only buying the specific plugin you currently need. It is well worth it in my opinion and it will save you money in the long run, compared to buying the plugins individually.
I have some JS knowledge so if I'm not scared to code a little bit if I have to

For example, I don't really like the idea of a choice window inside a common event for two reasons

- In battle, the choice window will pop up on item use and not on actor select, and on map, I'd have to close the menu in order to run the common event

- I prefer to open a Skill Window instead, and that's where my JS knowleds hits some limits. I'd want, after selecting an ally, to immediately open a Skill Window (the item isn't consumed yet), and it's only when a skill is selected that the item is consumed and the effects are applied, so I can use a script call in the damage formula using a variable
Well, how exactly you open and display the skill window has nothing to do with the Yanfly Limited Skill Uses plugin. So you don't need to have that to experiment with getting the skill window to do what you want.
Yeah, should have been a plugin request, and not a plugin support lol, i'll ask for the topic to be moved.
A tip for getting Yanfly plugins. If you subscribe on patron you can get his entire 200+ plugin suite for $5.

100% worth doing even if you think you'll never use 95% of the plugins. Just to have a copy of all the plugins should you ever need.

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-limited-skill-uses-plugin-how-to-implement-ether-item.151292/