I'm not sure if this requires a plugin or not but is there some easy way of forcing an Actor to forget all the skills they know beyond just going through and having them forget everything one by one?
Forget all skills
RPG Maker MV SupportThis script command will probably work, though I'm not 100%:
$dataSkills.forEach(function(skill){ if(skill) $gameParty.leader().forgetSkill(skill.id);});
Other than that, the script for forgetting a skill is:
$gameActors.actor(actorId).forgetSkill(n);
To do what you want, you set up a counter variable X equal to zero. Then, call a loop:
add 1 to X
script command: "$gameActors.actor(actorId).forgetSkill($gameVariables.value(X));"
if X >= (your last skill ID)
break loop
$dataSkills.forEach(function(skill){ if(skill) $gameParty.leader().forgetSkill(skill.id);});
Other than that, the script for forgetting a skill is:
$gameActors.actor(actorId).forgetSkill(n);
To do what you want, you set up a counter variable X equal to zero. Then, call a loop:
add 1 to X
script command: "$gameActors.actor(actorId).forgetSkill($gameVariables.value(X));"
if X >= (your last skill ID)
break loop
The first one isn't working but I'm not sure if I'm meant to replace the skill.id part with something? The second method should be fine though, thanks!
Original thread: https://forums.rpgmakerweb.com/threads/forget-all-skills.119423/