Rumblefish3d Posted September 11, 2010 Share Posted September 11, 2010 If this has already been done/discussed I can't find it. I've been googling for over an hour and also working in CS for several hours trying to get this to work. I have an NPC with a gold nugget in his inventory and I have a chest that he walks up to at 8am.I need to get him to put the nugget in the chest then that nugget would be available for pickup. It's not working... he gets to the chest but never puts anything in it. Is it even possible to get an NPC to place an item in-to a container? Please help, and thanks in advance. Again I apologize if this has already been discussed, a link to that discussion would be great. Link to comment Share on other sites More sharing options...
Deleted1848331User Posted September 11, 2010 Share Posted September 11, 2010 It is, and here's the way I use: 1. Make a quest script2. Put scn NAMEOFYOURSCRIPT3. Put short [VARIABLE] on a line below4. Make sure it says QUEST not Object or Magic Effect in the drop down box on the top right corner5. Save6. Attach script to quest7. Go to AI package8. Click Conditions9. Right click and hit new10. Find and select "GetQuestVariable"11. In the drop down that appears for the condition find your quest and then the variable12. Make it == 1 on the other side when your done selecting13. Make a script on the NPC I can't really think of a script off the bat, as I can't remember the AI package commands right now. It involves when the actor is at the AI target, then utilizing the RemoveItem and AddItem commands. Link to comment Share on other sites More sharing options...
alonsomartinez Posted September 11, 2010 Share Posted September 11, 2010 I dont understand what LF was saying but you can write a script on the chest that goes something like this Begin onactivate yourrefid if yourrefid.getitemcount goldnugget >=1 yourrefid.removeitem goldnugget1 yourchest .additem goldnugget1 endif end Link to comment Share on other sites More sharing options...
Rumblefish3d Posted September 11, 2010 Author Share Posted September 11, 2010 ok the non quest related answer looks better and I can set it to run every 15 even if player is not present but... Does this go on the NPC or on the container? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts