MV How to manually decrease the nb of use of a skill (YEP Limited Uses Skills)

Is there a way via a script to decrease the number of available uses of a skill by a given character (for instance from 3 available uses to 2 by actor ID 3)?
You could apply a state with one of the notetags. For example: <Skill 2 Use Max: -1>
It would be much more convenient with a script line, if possible.
You could try modifying the script call from this thread. I'm nowhere near a computer at the moment to provide better help. Sorry

https://forums.rpgmakerweb.com/index.php?threads/limited-skill-uses-resolved.162784/post-1395733

battler.setSkillLimitedUse(skillId, value);
This may work but I need to use an actor (ID) not a battler. Is this possible?
Code:
battler.setSkillLimitedUse(x, battler.skillLimitedUseMax(x) - battler.skillLimitedUseCurrent(x) + 1);
will do. like before, just pass a valid reference for a battler
What would be a valid reference for, say, actor ID 2?
$gameActors.actor(2)
Thank you very much, it worked.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-manually-decrease-the-nb-of-use-of-a-skill-yep-limited-uses-skills.167261/