Zuzaski Posted August 8, 2009 Share Posted August 8, 2009 In a mod I'm working on, I want to make what's in a container control what is in a leveled list so I can change easily, ingame, what outfit and gun a certain NPC will use without having direct access to said NPCie;I put stuff in boxNPC wears stuff in box but NPC has no reference; it's spawned, so leveled list is the only way? RemoveAllItems unfortunately cannot edit a list what script command would I use on an activator that does the job?vanilla or script extender; doesn't matter as long as it works Thank you in advance kind soul who replies with answer! Link to comment Share on other sites More sharing options...
Vagrant0 Posted August 9, 2009 Share Posted August 9, 2009 Zuzaski said: In a mod I'm working on, I want to make what's in a container control what is in a leveled list so I can change easily, ingame, what outfit and gun a certain NPC will use without having direct access to said NPCie;I put stuff in boxNPC wears stuff in box but NPC has no reference; it's spawned, so leveled list is the only way? RemoveAllItems unfortunately cannot edit a list what script command would I use on an activator that does the job?vanilla or script extender; doesn't matter as long as it works Thank you in advance kind soul who replies with answer!You can't do this without either adding a token to all those NPCs, or scripting them directly. Basically, what you would need to do is make use of DuplicateAllitems with the container being the called reference, and the NPC being the target. Then force the NPC to re-evaluate their equipment (add a package, travel, current location, must complete, armor/weapons unequiped). The downside, in addition to either adding a script or a token to all the NPCs you want this to apply to, is that the NPC will have everything that was placed in that container, regardless what it might be, and the container cannot make use of leveled lists to randomize its contents. Link to comment Share on other sites More sharing options...
Zuzaski Posted August 9, 2009 Author Share Posted August 9, 2009 editnevermindfound a way:script on npc ref self getself Begin OnLoadself.removeallitems boxREF.duplicateallitems self 1 end Link to comment Share on other sites More sharing options...
Recommended Posts