Remove all items

I wonder, how to remove all weapons, armors and items from party's inventory?
Especially if party has many types of weapons and armors!

P.S. Unrelated to thread: I trying to make alchemy system through events and variables. Put item count into variables, but it doesn't remove items from inventory.
I think this script call should completely empty the party inventory:
Code:
$gameParty.initAllItems();

Not sure what you mean by the second part? You'll have to manually remove the ingredients, just like you manually add the created items. There's an option in Change Items to specify the number to add/remove as a variable rather than a fixed value. 🙂
Not sure what you mean by the second part? You'll have to manually remove the ingredients, just like you manually add the created items. There's an option in Change Items to specify the number to add/remove as a variable rather than a fixed value. 🙂
I understand that is the only way.
For now this thing seems like this:
capture_001_04062019_010543.jpg

At first I was set item types as variables through "Control Variables". And I thought that through that command I can add or remove ingredients.
But suddenly "Control Variables" doesn't count as items. Ingredients doesn't removes by potion production.
And yet i just using fixed values in "Change Items".
At first I was set item types as variables through "Control Variables". And I thought that through that command I can add or remove ingredients.
But suddenly "Control Variables" doesn't count as items. Ingredients doesn't removes by potion production.
And yet i just using fixed values in "Change Items".
Oh, I see. 🙂 Yes, I believe you'll have to use Change Items there: the variables are just numbers with no memory of where they came from. 😅
Also, not serious question: how to remove ALL equipment, not items via script?
If you just want to clear all weapons and armors out of the inventory, try this two-line script call:
Code:
$gameParty._weapons = {};
$gameParty._armors = {};
If you want a specific actor or party member to unequip all their equipped weapons/armors, try:
Code:
$gameActors.actor(1).clearEquipments();
To reference a party member by their index in the party (leader = index 0), try this instead:
Code:
$gameParty.members()[0].clearEquipments();
If you want to erase an actor's current equipment (no moving it to inventory), try something like:
Code:
$gameActors.actor(1).initEquips([]);

Original thread: https://forums.rpgmakerweb.com/threads/remove-all-items.109644/