Multiple containers share the same inventory

Post » Sat Jan 04, 2014 7:08 am

Hello! I'd like to have multiple chests/containers in the same cell link to a master container. So if i put something in Chest A, i can take that same thing out of Chest B. (while infact it was Chest C both times)

I could'nt find anything on it while searching, but my searchterms might have been bad.

How can i achive this?

User avatar
rheanna bruining
 
Posts: 3415
Joined: Fri Dec 22, 2006 11:00 am

Post » Sat Jan 04, 2014 12:11 am

You need to redirect the activations of the dummy chests to a shared chest, which can be done via a script that you attach to the dummy chests:

ObjectReference Property kMasterChest Auto ;Fill this with the shared chest that is placed in the cellEvent OnInit()	BlockActivation() ;Stops the chest, which this script is attached to, from opening its own inventoryEndEventEvent OnActivate(ObjectReference akActionRef)	If(akActionRef == Game.GetPlayer()) ;Checks if the player is the one activating this chest		kMasterChest.Activate(akActionRef) ;Opens the inventory of the shared chest	EndIfEndEvent

It might be possible to do this without scripts, but I'm not entirely sure.

User avatar
Rhiannon Jones
 
Posts: 3423
Joined: Thu Sep 21, 2006 3:18 pm


Return to V - Skyrim