Adding and Removing Skill based off a Variable?

(I wasn't sure whether or not to put this in Script Requests, feel free to move it. )

I noticed that in the 'Change Skills' box, you can select the Actor based off of a variable, but how do I select the Skill based off one (So if the Variable is 5, it adds/removes skill No. 5)

x_136.png
You'd just need to use a script call instead of the event command.

Code:
$game_actors[id].learn_skill($data_skills[$game_variables[id]])
You'd just need to use a script call instead of the event command.

$game_actors[id].learn_skill($data_skills[$game_variables[id]])
Thanks! This is exactly what I needed 🙂

Original thread: https://forums.rpgmakerweb.com/threads/adding-and-removing-skill-based-off-a-variable.40854/