MV YEP Limited Uses tied to a variable?

How to make it so that a skill with limited uses can have its amount of uses vary according to a variable?

YEP gives the following as "example" but that's not helping:

<Custom Skill x Limited Uses>
value += user.level;
</Custom Skill x Limited Uses>


Any clue?
Assuming this example adds more uses based on the user's level, you could try replacing it with the value of a variable (note the '=' instead of '+=', since we're setting the value, not adding to it).

Code:
<Custom Skill x Limited Uses>
value = $gameVariables.value(42);
</Custom Skill x Limited Uses>

Original thread: https://forums.rpgmakerweb.com/threads/yep-limited-uses-tied-to-a-variable.161500/