MZ Visustella Limited Skills- Recover specific skill uses by script call/event etc

Hellooo!!

I'm working a project that uses Visustella's Limited Skills in RMMZ and have had a search around, but can't work out how to make a specific things happen:

Currently the process goes like this:
Equip an accessory > actor1 gains use of a skill > Skill has limited uses(5), displayed in battle, and when depleted, the equipment is removed outside of the battle and so is the skill

That all works great, thanks to some eventing and scripts to track skill usage and if certain items are equipped.

I would like to be able to replenish the uses of the specific skill outside of battle, only the one specified, so that when you get the accessory again, the skill use is set back to 5.
Is there a way to use a script call, or any other way, and achieve this?

(For context if it helps, the game has an alchemy system to make these accessories(bombs etc), equip them and use their associated skills in battle. If possible, I'd like to run a script call (or something similar) in the crafting event to replenish the skill use amount when you remake the item. Everything else is working, just that when I remake the accessory, it doesn't default to 5 uses as when it was first made)

Thank you!
I don't use the plugin, but I think you should check the "Use Alteration-Related Notetags" in the yanfly.moe site :LZSproud:

I think you should put them as a note in the item you want the player to use to recover their uses.

Spoiler: NOTETAGS
<User Global Uses: +x>
<User Global Uses: -x>

<User SType id Uses: +x>
<User SType id Uses: -x>
<User SType name Uses: +x>
<User SType name Uses: -x>

<User Skill id Uses: +x>
<User Skill id Uses: -x>
<User Skill name Uses: +x>
<User Skill name Uses: -x>

- Used for: Skill, Item Notetags
- Alters the limited use amounts for the action's user.
- Global notetag variant affects all limited uses.
- SType notetag variant effects all skills with a matching type.
- Skill notetag viarant effects a specific matching skill.
- This effect will only trigger once per action even if there are
multiple hits as long as it successfully hits one target.
- Replace 'id' with the ID of the skill type.
- Replace 'name' with the name of the skill type (without text codes).
- Replace 'x' with the amount to alter the remaining uses by. Positive
values restore uses while negative values reduce remaining uses.
I think you should put them as a note in the item you want the player to use to recover their uses.
The notetags you cited do what you say. However, the OP is not asking to use a consumable item to replenish uses of a skill.

@zestydoesthings Have you asked VisuStella? Sometimes they give out the script calls to do these little effects.
The notetags you cited do what you say. However, the OP is not asking to use a consumable item to replenish uses of a skill.

@zestydoesthings Have you asked VisuStella? Sometimes they give out the script calls to do these little effects.
It can be a skill too. I supposed an item would be more intuitive.

Sorry, I can't visualize the situation very well.
It can be a skill too. I supposed an item would be more intuitive.
The OP asked for neither 😉

The actor is getting the skill via the Add Skill trait.

They lose the trait, so they lose the skill.

When they get it again, the OP wants the skill uses to restart at full.

Personally, I would even register this as a bug report with VisuStella - I think losing access to the skill should wipe/restore any uses.
If I'm not mistaken, you can make an event that automatically uses an item when something is equipped?

It could work as a workaround I think, as OP can't edit the code.
If I'm not mistaken, you can make an event that automatically uses an item when something is equipped?
I've never seen a plugin for that, but if you have, feel free to share it.

I also don't know if there's some way to use an item in the middle of another menu that wouldn't create undesirable UI effects.

Anyway, I've contributed what I know to the thread. If the OP can get something from VisuStella, awesome. If you find another workaround, awesome 🙂

Original thread: https://forums.rpgmakerweb.com/threads/visustella-limited-skills-recover-specific-skill-uses-by-script-call-event-etc.170789/