Halstrom Posted April 18, 2013 Posted April 18, 2013 How do I add a Levelled list to a container by script? Â VendorContainerDocMitchell.AddItem VendorContainerDocMitchell SexoutSLLDisease50 1 1 AddItemToLeveledList VendorContainerDocMitchell SexoutSLLDisease50 1 1 100 Â don't work
DoctaSax Posted April 18, 2013 Posted April 18, 2013 Dunno, but that second VendorContainerDocMitchell in your first line should probably not be there.
Halstrom Posted April 19, 2013 Author Posted April 19, 2013 Dunno, but that second VendorContainerDocMitchell in your first line should probably not be there. Yep that was silly no dice thought  VendorContainerDocMitchell.AddItem SexoutSLLDisease50 1 1  fails :/
Halstrom Posted April 19, 2013 Author Posted April 19, 2013 Is that container the ref or the base? Good thought, just tried that and although it is inworld it doesn't have a REF, I might have to just add it the GECK way for now, though I wanted to be able to not add them for people not using Diseases/Drugs/Preg, can't see anything in NVSE either to do it.
DoctaSax Posted April 19, 2013 Posted April 19, 2013 I'm not even sure that container is used for Doc M. It does have a ref but it's in a dummy cell, unnamed, no ownership set... In contrast with Cliff Briscoe's chest, for instance. You're probably better off script-adding the leveled list to a new container parked beneath his own cell, with ownership set.
jaam Posted April 19, 2013 Posted April 19, 2013 You need a permanent ref to access the ref from an ESM script. If the reference is not named it should be accessible via it's ID (IF it is part of the ESM at 00) like "00177BEF".AddItem ...
Halstrom Posted April 19, 2013 Author Posted April 19, 2013 Thanks jaam, that certainly looks like the case I did a work around with Levelled lists switched by globals that I think will do the trick, but I'll give it a go again by scripting over the weekend.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.