An Edit of HimeWork's Corpse Retrieval Script to include Items and Gold

As stated in the title, I'd like to request an edit of HimeWork's Corpse Retrieval script here to also include the player's inventory and gold be dropped alongside the equips.

Thanks in advance!
When you say player, are you referring to party?
Or are you using actor inventory script?
When you say player, are you referring to party?
Or are you using actor inventory script?
In this case, I do mean the party inventory. I'm not using the Actor Inventory script, but I am using Hime's Party Manager script where each party has their own inventory. I'd only like for the active party's inventory to be dropped.

As for another thing, I'd also like it if half the gold and items + equipped were deleted as well. The idea is that when you lose a battle, you don't get a game over, you just respawn in the last safe room you were in. So the punishment of losing a battle is losing your equips + items + gold, but still being able to salvage half of it if you return to where to died
Bumping this thread to see if anyone can still help out.

I did some digging and found an edit that implemented dropping gold, but removes the dropping equip feature and wouldn't know how to go about combining the two scripts into one (and as well as adding dropping items as well).

would appreciate any help!!

Original thread: https://forums.rpgmakerweb.com/threads/an-edit-of-himeworks-corpse-retrieval-script-to-include-items-and-gold.145334/