Jump to content

Some vendor's Containers Won't Respawn


KazFoxsen

Recommended Posts

I'm almost done with my eye patch fashion mod and in order to streamline my custom vendor's list, I give the player the option to choose left or right patches when talking to her (if you want to pick the other side, you can by talking to her again). To accommodate this switch, I've buried three containers. One is Manda's assigned vendor container, which only contains caps. The other two contain left and right patches, with an ownership of NONE. All are permanent references and marked to respawn. When the player selects, for instance, "Right," my begin script in the MandasPatches quest is as follows:

 

MandasShopRef.removeAllTypedItems MandasLeftRef 1 0 24 RightPatch

;MandasShop is main container. MandasLeft holds left patches. RightPatch is a form list of all right patches.

MandasRightRef.removeAllitems MandasShopRef

SHOWBARTERMENU

 

Same thing for left, with directions switched. For all the goodbye dialog options, I use this begin script to move the patches out of the main shop to their respective containers:

 

MandasShopRef.removeAllTypedItems MandasRightRef 1 0 24 LeftPatch

MandasShopRef.removeAllTypedItems MandasLeftRef 1 0 24 RightPatch

 

As a respawn test, I bought a left and a right patch, and sold her a gun. After 3 days, the gun was gone from the shop, however, the patches I bought were not replenished, leading me to believe that the left and right containers never respawned.

 

Does anyone know what's going on?

Link to comment
Share on other sites

you could make a script that says:

 

if MandasLeftRef.GetItemCount LeftPatch == 0

MandasLeftRef.AddItem LeftPatch 1

endif

Link to comment
Share on other sites

you could make a script that says:

 

if MandasLeftRef.GetItemCount LeftPatch == 0

MandasLeftRef.AddItem LeftPatch 1

endif

 

I actually tried that, but it doesn't work when I buy something like one red patch. Once the container respawns, the red one I bought is still missing. :( I don't know why it just won't work like it's supposed to.

 

EDIT: I found a workaround. It's not realistic since it replenishes her stock every time you talk to her, but it gets the job done. For each greeting line I attached the following script:

 

MandasRightRef.removeItem RightPatch 1

MandasRightRef.additem RightPatch 1

MandasLeftRef.removeItem LeftPatch 1

MandasLeftRef.additem LeftPatch 1

Edited by KazFoxsen
Link to comment
Share on other sites

try making leveled right/left lists and click on "use all" see if that works. if it doesnt then you only have to do a single additem statement
Link to comment
Share on other sites

  • Recently Browsing   0 members

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