Adding items to chest?

Post » Thu Jun 21, 2012 8:24 am

Hey everyone,

I made a dungeon, and of course had chests in it. I made it awhile ago, but i've felt that i've been getting really good loot after. Im a little worried that adding "x" to the one chest added it to all chests. Just to confirm, to add a specific item you double click on the chest in the render window, click edit base, then right click on the items and click add item?


Thanks
User avatar
naome duncan
 
Posts: 3459
Joined: Tue Feb 06, 2007 12:36 am

Post » Thu Jun 21, 2012 10:57 pm

If editing the container's base, yeah, each reference to that base will be affected. If you want to change the contents of a particular instance, you can add a script to the reference which adds/removes whatever you want OnLoad or you could copy the base, edit the copy, then reference said copy instead.
User avatar
emily grieve
 
Posts: 3408
Joined: Thu Jun 22, 2006 11:55 pm

Post » Thu Jun 21, 2012 1:53 pm

well, what i did was i went to a different mod and just put in that same chest, id was treasafflictedbosschest. In the one mod i went to the item list and added a certain key, but when i place the same kind of chest in the different one it does not have that key, so idk if i messed it up or not for sure.
User avatar
CArla HOlbert
 
Posts: 3342
Joined: Wed Feb 21, 2007 11:35 pm

Post » Thu Jun 21, 2012 6:14 pm

If the base is edited, all instances will have the key.

Since you want the key to only be in one instance of the container, I'd script it. If your mod has no quest script to manage it, all you have to do is add a script to the reference via its "Scripts" tab and only that instance will get the key.

ScriptName AddKeyScript extends ObjectReferenceBool bKeyAddedKey Property YourKeyEDID AutoEvent OnLoad()	If !bKeyAdded		bKeyAdded = True		AddItem(YourKeyEDID)	EndIfEndEvent
User avatar
James Baldwin
 
Posts: 3366
Joined: Tue Jun 05, 2007 11:11 am

Post » Thu Jun 21, 2012 2:18 pm

Thanks
User avatar
Enny Labinjo
 
Posts: 3480
Joined: Tue Aug 01, 2006 3:04 pm

Post » Fri Jun 22, 2012 12:15 am

No prob. Hope all goes well :)
User avatar
Rachael
 
Posts: 3412
Joined: Sat Feb 17, 2007 2:10 pm


Return to V - Skyrim