Hi all. I am working on a mod that allows the player to load certain items up into a custom container. I have it to where it will kick back any items without the necessary keyword so the container itself is fine.
However, the next issue I have is setting up a script to actually "sell" those items within the container.
The Method I want to use:
Essentially, you walk up to a ledger and use it as an activator. When you hit the correct menu button, I want it to check the contents of the chest, determine the value (in gold) of the the items in said chest, then remove them. Then it will disable the wagon (not the container itself, but the wagon to simulate something is being shipped off) and after 3 days, I want the wagon to re-appear and have the total value of gold determined from that shipment be placed into a separate container (a lockbox in the office).
I know how to set up menus, messageboxes, how to register the game for a single gametime update, and how to enable and re-enable something afterwards. However, I cannot for the life of me determine how to get the script to determine the value of all goods in a container then place the determined total amount into a separate chest.
Is anyone willing to help? I'm not sure if it is best to assign this as a script directly to the ledger you will be activating or if I should make a quest run to handle it and use the fragments section to enable/disable things or remove/add contents to containers.
I am not using SKSE and would like to avoid doing so if possible so those on xbox could also download the mod.
Thanks and any help would be greatly appreciated.