Need to remove entire inventory on death

Hey all,
I'm looking for a way to remove my character's inventory on death. Just take it and throw it into the void. I've got the gold part handled, but I'm not seeing a way to remove everything else. Conditional branches aren't ideal as the game is heavily loot dependent, I'd have 20 million branches to get everything off. Anyone know of a way to simply strip everything either through eventing or a plugin? There's only one player character in this project if that helps at all.
Set a conditional branched common event that's parallel to trigger upon character death..
Then remove equipment from actor. Then you can remove all the items (one at a time) from the inventory.
If you have hundreds of items, then this will take a while.. but if you have 30 or so, it's easily accomplished.

Your list would carry so on and so on, for every obtainable item and every equipable slot, but hopefully you catch the drift.
🙂
-MIA
I was getting ready to say that.
A simple common even with change items for all items -x
Would do the trick
you can wipe all items in the inventory by using this scriptcall

$gameParty._items = {};
you can wipe all items in the inventory by using this scriptcall

$gameParty._items = {};
THAT is what I was looking for! Thanks so much!


Edit: Doesn't seem to work, though...
if { } dont work, try [ ], its one of those. but it will clear ALL items, items, equips, keyitems etc
You can also try Hime's multiple inventories, just set a common event that on death switches your inventory to a blank one.
http://himeworks.com/2015/11/multiple-inventories/

I dont remember if gold is removed but thats a simple 2 step process where variable= current gold, then current gold - variable
Neither { } nor [ ] are working. I'll look into Hime's plugin. I just need the inventory bit, the script call to remove gold is working just fine.

Edit: Not really understanding Hime's plugin, a lot is left unexplained in the help section. I posted a question in the plugin thread about it, but considering it was last replied to like 2 years ago I'm not holding out much hope. I guess line by line it is.
Problem solved - took some additional searching, but I came across these two script calls:

$gameActors.actor(1).clearEquipments();
$gameParty.initAllItems();

And those do the job.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/need-to-remove-entire-inventory-on-death.115355/