Force Unequip

Is there a way to force an unequip of 1 equip slot? 

I know I can force an equipment change: $game_actors[x].change_equip_by_id(0, y)

Is there anyway I can use this?: force_change_equip(slot_id, item)

Thanks in advance...
then try this. this is just a simple script that i've made

class Game_Interpreter def force_change_equip(actor_id, slot_id, item) $game_actors[actor_id].change_equip_by_id(slot_id, item) endendfor example, you type it on script call command like this :

force_change_equip(1, 0, 5)means that it'll change the equipment for actor id 1. the equipment that'll changed is the equipment in slot 0 (weapons), with the weapons on id 5 (crimson axe) as long as the weapons itself exists in inventory

hopefully this will help 😀
Is there a way to force an unequip of 1 equip slot?
Do you need to use a script command?
In eventing, you can simply use the change equip command to set a slot to (none).


If you're using the script command, I don't know if the setting for (none) is zero or NIL, you might have to test that.
TroyZ - aha... if you use the default command ($game_actors[x].change_equip_by_id(0, y)), and choose an item not in inventory, the slot unequips. Thanks!

Next question: What if I wanted to destroy that item from inventory after unequipping? (or before unequipping, whatever)

(needs to be in a script)
I don't know wich type of item is, but try:

$game_party.lose_item($data_armors[yourarmoridhere]

$game_party.lose_item($data_weapons[yourarmoridhere]

$game_party.lose_item($data_items[yourarmoridhere]

Tell me if it works

Original thread: https://forums.rpgmakerweb.com/threads/force-unequip.22325/