I don't know if I'm stupid or something, but I literally cannot find any script call info on how to clear a specific character's equipment automatically. I'm using the Yanfly Ace Equip Engine, so custom slots need to be cleared as well.
Clear a specific party member's equip slots w/ Yanfly Ace Equip Engine
RGSSx Script SupportI've moved this thread to Script Support. Thank you.
This is the script call for clearing an actor's equipment:
Replace ACTOR_ID with the ID of the actor whose equipment you want to clear.
I'm not sure where you want to be doing this 'automatically'.
Ruby:
$game_actors[ACTOR_ID].clear_equipments
I'm not sure where you want to be doing this 'automatically'.
Thank you, that worked. I'm using it to remove an actors equipment before their class gets changed, otherwise their equipment will disappear when they change classes.
As far as I know, that should only happen if you change actors not classes. The equipment should go into the party's inventory when an equipment cannot be worn with the new class.
Original thread: https://forums.rpgmakerweb.com/threads/clear-a-specific-party-members-equip-slots-w-yanfly-ace-equip-engine.121229/