FiveFootTallJawa Posted October 7, 2016 Share Posted October 7, 2016 Is there a script or something that will let a vendor sell something after a quest has been completed? In the mod I'm making, you're supposed to either pass a barter check or do a quest for a trader before he'll sell the item you're promoting. Would I make a script and attach it to the item in the vendor chest? Any help would be appreciated. Link to comment Share on other sites More sharing options...
PushTheWinButton Posted October 7, 2016 Share Posted October 7, 2016 Add a separate container for the item and only give ownership of it to the merchant after the quest is completed. Link to comment Share on other sites More sharing options...
FiveFootTallJawa Posted October 7, 2016 Author Share Posted October 7, 2016 How would I do that? Link to comment Share on other sites More sharing options...
RoyBatterian Posted October 7, 2016 Share Posted October 7, 2016 containerref.setownership npcbaserecord Link to comment Share on other sites More sharing options...
FiveFootTallJawa Posted October 8, 2016 Author Share Posted October 8, 2016 I'm still new to modding, so if I could get a demonstration, that would be nice. I'm sorry for the inconvenience. Link to comment Share on other sites More sharing options...
RoyBatterian Posted October 8, 2016 Share Posted October 8, 2016 Hmm I just did. Your container needs a reference name, like ContainerREF. That's the one placed in the cell. In your quest stage scriptlet you put containerref.setownership npcbaserecord , where npcbaserecord is the base NPC record for the NPC you want to own it (not the NPC ref). Link to comment Share on other sites More sharing options...
FiveFootTallJawa Posted October 8, 2016 Author Share Posted October 8, 2016 (edited) Ah, ok, thanks. Edit: I have put RubChest1.setownership 020072C6, with that number as the base ID for the NPC, into the result script section of my quest stage. It saves, but doesn't do anything. I put the chest into the vendor chest cell with the rest, and added my item I want to sell, and set it as a reference. Is there something I'm missing? Edited October 9, 2016 by FiveFootTallJawa Link to comment Share on other sites More sharing options...
RoyBatterian Posted October 9, 2016 Share Posted October 9, 2016 Don't use formid's, use editor id's. To do that you need to put the chest in the same cell as the vendor, under the floor or somewhere the player cannot reach. Link to comment Share on other sites More sharing options...
FiveFootTallJawa Posted October 9, 2016 Author Share Posted October 9, 2016 I got it to work, thanks for the help. :happy: Link to comment Share on other sites More sharing options...
RoyBatterian Posted October 9, 2016 Share Posted October 9, 2016 yw :) Link to comment Share on other sites More sharing options...
Recommended Posts