I am currently working on getting an event working where the player is kidnapped and stripped of all their items, and must retrieve them after going through an enemy's base. I have tried a couple of scripts now but they were for different versions of RPG Maker. I imagine they are all structured differently, and I sadly lack the knowledge to simply make up a code and figure out how to troubleshoot it correctly. Here is a couple examples of scripts I attempted to use, one which was meant to set the inventory as a variable to be saved elsewhere, then recalled when the player gets to their gear.
(Roninator2)
$game_actors[1].setup(1)
$game_party.init_all_items
(Aloe Guvner)
$gameVariables.setValue(7, $gameParty._items);
$gameParty._items = {};
// to restore the items
$gameParty._items = $gameVariables.value(7);
(Roninator2)
$game_actors[1].setup(1)
$game_party.init_all_items
(Aloe Guvner)
$gameVariables.setValue(7, $gameParty._items);
$gameParty._items = {};
// to restore the items
$gameParty._items = $gameVariables.value(7);