Is there a way (script line) to force a full recover of all skills? Thanks in advance!
MV YEP Limited Uses Skills
Javascript/Plugin SupportThe function is Game_BattlerBase.recoverAllLimitedSkillUses()
So you'll need a reference to whichever actor you want.
If you're asking to recover them all for the whole party, you can do
So you'll need a reference to whichever actor you want.
If you're asking to recover them all for the whole party, you can do
Code:
$gameParty.members().forEach(actor => actor.recoverAllLimitedSkillUses())
Nice! Thank you.
And if you want to recover a given amount (for instance 1) to a given skill, is that possible?
BTW is that a plugin command or a script line?
And if you want to recover a given amount (for instance 1) to a given skill, is that possible?
BTW is that a plugin command or a script line?
script
Try this. replace the "x"s for the skill's id and the "user"s for your battler reference
Code:
user.setSkillLimitedUse(x, user.skillLimitedUseMax(x) - user.skillLimitedUseCurrent(x)-1);
By user you mean actor ID (so 1 for the first actor?).
no. a battler reference such as $gameParty.members()[x], $gameActors.actor(x), any predefined battler variable provided within a notetag (many yanfly notentags provide user and target), etc.
So how do I do it with actor ID and skill ID (recover 1 use)?
RMMV - Apply YEP's Cooldown to spell without casting it?
Using YEP's Cooldown, which works with skill tags, is it possible to apply a cooldown to a specific spell without having to cast it first?
forums.rpgmakerweb.com
This worked, thank you.
Original thread: https://forums.rpgmakerweb.com/threads/yep-limited-uses-skills.166754/