Removing player’s items all at once

Is there an event i can make that removes all the player’s items at once?
Are you talking about just unequiping everything or removing everything from the player inventory. Because those are definitely two different things.

For the unequip option, the MV/MZ Script call list has two script options to unequip all items for 1 party member or the entire party.

actor.clearEquipments();

// Make party member #1 (index 0) unequip everything
$gameParty.members()[0].clearEquipments();

$gameParty.members().forEach(function(actor) {
actor.clearEquipments();
});


Taking all equipment away and returning it:
$gameVariables.setValue(1, $gameParty.equipItems());
$gameParty._weapons = {};
$gameParty._armors = {};

Then to reinstate them:

for (const item of $gameVariables.value(1)) { $gameParty.gainItem(item, 1, false); }

To be clear, I didn't write that last code above. I found it from searching for this issue and I previously tested it and added it to my research notes.

So yes, either thing you want to do can be achieved with scripts.
@ZombieKidzRule Sorry I wasn't clear enough, I meant removing the items from the player's inventory entirely so pretty much clearing their inventory.
In a Script command:
JavaScript:
$gameParty.initAllItems();
$gameMap.requestRefresh();
This is listed as "Clear Inventory" on the MV / MZ Script Call List. 👋
In a Script command:
JavaScript:
$gameParty.initAllItems();
$gameMap.requestRefresh();
This is listed as "Clear Inventory" on the MV / MZ Script Call List. 👋
Thank you so much :LZScheeze:

Original thread: https://forums.rpgmakerweb.com/threads/removing-players-items-all-at-once.170436/