Title self explanatory. I want to write a Skill ID to a variable and then have the script read it and then Learn or Forget that Skill to the Actor I chose. I need both a script to Learn and a script to Forget.
MV Need a script that lets me choose which Skill to Learn/Forget based on a Variable
Learning Javascript
Code:
$gameParty.members()[0].learnSkill($gameVariables.value(7))
Code:
$gameParty.members()[0].forgetSkill($gameVariables.value(7))
0 is a member's index (you might want to replace it with a variable call), 7 is a variable id.
If you want to target a specific actor you might want to replace the first part with "$gameActors.actor(0)" (without brackets).
Exactly what I needed. Thanks.
Original thread: https://forums.rpgmakerweb.com/threads/need-a-script-that-lets-me-choose-which-skill-to-learn-forget-based-on-a-variable.178509/