Anyway, I have an idea for a simple mod I want to try, but there are some aspects of how containers and RemoveItem / AddItem work that I'm still trying to understand.
Could someone explain how I might write a script to accomplish this:
* Move all equipped items (and ONLY equipped items) from player to a container
I'm assuming this involves RemoveItem - which deletes the item, but I don't understand how to create duplicate items inside the container if I can't use a specific object_ID. After all, the items currently equipped on player can change. I don't know beforehand exactly what the player has equipped. So, I'd need some way of detecting exactly which items are equipped and then store the object_ID in a variable... right?
* Move all items from a container to player's inventory and then force equip them.
(I'm assuming that all objects in container are equipable.) I know that as long as the script is run with Tribunal, the "equip" function should work properly. But I have the same problem as above where the equipable contents of the container are not static. Therefore, I won't have the specific object_ID without detecting it first, right?
Any help is appreciated. And if this ever turns into a finished mod, I'll be sure to mention your name in the credits.