Plugin command to Clear an actors equipment

Hello everyone!

I've been trying to make a plugin command that clears an actors equipment, like when you hit clear in the equip menu.

this.actor().clearEquipments()    - I've tried with that, and changing the number to actor(2) or (1) but it doesn't work.

I'm really bad at scripting, does anyone know how to do this?

A million thanks in advance!
A bit more information would be useful.

How do you want to use it exactly?

Do you want to make an event for it?

Or a own window for it?

Should it happen only to the first actor or to every actor in the party?

If it's for an event, then you could use the editor like this

ec829a7147.png


The disadvantage: You have to insert those for every actor you want to clear the equipment.

Alternatavely you could use "script command" like this:

356aee0d6c.png


where the $gameActors.actor(id) correponds to the IDs of your actors you want to clear the equipments.

If you want it for the entire group, you can also use this code, where you don't have to pay attention whether you have the right actors in your party or not.

bf4f2296ce.png


Each approach clears the equipments of the mentioned members.
Amazing! Yes, that is what I needed, but I have many actors, so eventing it would be a HUGE pain.

Thank you so much!

Original thread: https://forums.rpgmakerweb.com/threads/plugin-command-to-clear-an-actors-equipment.53457/