Mass Skill Removal?

I'm making a "Rogue like" game where you gain skills by collecting items and are sent back to a specific area upon death and lose all of those items and the skills they give. For example: if the player picked up an item that gave them a fire spell and then died, they respawn at the hub area with no items or skills.


I used the script call $gameParty.initAllItems(); to get rid of all the items, but I want to know if there's an equivalent to this that works with skills so I don't have to go through and remove them all one by one. 


Thanks in advance.
You want ALL actors to have ALL skills removed?  Or are there skills that are not attached to items, that they should keep?


If it's all actors and all skills, try this in a script call:

Code:
$gameParty.members().forEach(function(actor) { actor.initSkills(); })



If you only have one party member, the above will also work, or you could use this instead:

Code:
$gameParty.leader().initSkills()
You want ALL actors to have ALL skills removed?  Or are there skills that are not attached to items, that they should keep?


If it's all actors and all skills, try this in a script call:

Code:
$gameParty.members().forEach(function(actor) { actor.initSkills(); })



If you only have one party member, the above will also work, or you could use this instead:

Code:
$gameParty.leader().initSkills()

There are some default skills that aren't based on items, but only two or three per class so it won't be hard to just re add them.


Thanks for the help 🙂

Original thread: https://forums.rpgmakerweb.com/threads/mass-skill-removal.60543/