Jump to content

Having a vendor sell an item after a quest has been completed


FiveFootTallJawa

Recommended Posts

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

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

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 by FiveFootTallJawa
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...