So I want to be able to store my entire inventory / equipment into memory so that when the player dies, he loses all his equipment. This will drop a body and when returned to, interacting with the body will return all the items to the player's inventory.
So far I've figured out the script $gameActors.actor(1).equips(); used when assigning a variable. But don't know how to store items in the inventory into a variable.
I've discovered $gameActors.actor(1).clearEquipments(); will remove all equipment but not items.
And in the end I don't know how to return the equipment, or the items (if I figured out how to remove them).
So yeah, basically just need to figure out a way to save all items and equipment into memory, so that when I click on my body it restores them all to my inventory.
I've got it down so that when you die the body drops where you died etc, just need to figure out the inventory situation!
Sorry if this sounds convoluted! Thanks!!
So far I've figured out the script $gameActors.actor(1).equips(); used when assigning a variable. But don't know how to store items in the inventory into a variable.
I've discovered $gameActors.actor(1).clearEquipments(); will remove all equipment but not items.
And in the end I don't know how to return the equipment, or the items (if I figured out how to remove them).
So yeah, basically just need to figure out a way to save all items and equipment into memory, so that when I click on my body it restores them all to my inventory.
I've got it down so that when you die the body drops where you died etc, just need to figure out the inventory situation!
Sorry if this sounds convoluted! Thanks!!