Jump to content

Vendor Container Strategies


drakeelvin

Recommended Posts

This is a different take on a question I posted in the modders forum earlier ...

 

What strategies do you use to add items to existing vendor containers?

 

For example if I want to add a new item to Chet's General Store and keep it respawned but not conflict with other mods that are trying to do the same thing?

Link to comment
Share on other sites

I just kind of did something like that for somebody else that had a mod they wanted tweaked. I added another custom container set to respawn with only those items in it and attached them to the vendor just as would any other vendor container. That way the original containers for that vendor are left with their original settings and only my custom container respawns.
Link to comment
Share on other sites

Ok awesome and thank you both! I must have done it wrong when I tried it, it was my first attempt. I'll go back over the GECK article again and see what I missed.
Link to comment
Share on other sites

I do it two different ways, either I will add a new container or just add the weapons to the existing container through script. Both seem to work fine.

 

 

Could you post a script example of how to do this? I would like to learn more about scripting myself.

Link to comment
Share on other sites

Scn STALKERWeaponsPackVendorScripts

 

Begin gameMode

 

;Add items to Vendor.

VendortronRef.additem SWPAK74Folded 5

VendortronRef.additem SWPAK74FoldedMaple 5

VendortronRef.additem SWPAK74FoldedMulticam 5

VendortronRef.additem SWPAK74FoldedSynthetic 5

VendortronRef.additem SWPAK74FoldedUrban 5

VendortronRef.additem SWPAKS74u 5

VendortronRef.additem SWPAKS74uFolded 5

VendortronRef.additem SWPAN94 5

VendortronRef.additem SWPASVAL 5

VendortronRef.additem SWPASVALFolded 5

VendortronRef.additem SWPBaretta92 5

VendortronRef.additem SWPBaretta93 5

VendortronRef.additem SWPBaretta96 5

VendortronRef.additem SWPBM16 5

VendortronRef.additem SWPColt1911 5

VendortronRef.additem SWPDesertEagle 5

VendortronRef.additem SWPDragunov 5

VendortronRef.additem SWPDragunovSVU 5

VendortronRef.additem SWPF1Grenade 20

VendortronRef.additem SWPFNHighPower 5

VendortronRef.additem SWPFORT12 5

VendortronRef.additem SWPHKG36 5

VendortronRef.additem SWPHKMP5 5

VendortronRef.additem SWPMP5Short 5

VendortronRef.additem SWPHKUSP 5

VendortronRef.additem SWPL85 5

VendortronRef.additem SWPLR300 5

VendortronRef.additem SWPMakarovPM 5

VendortronRef.additem SWPPKmg 5

VendortronRef.additem SWPRGD5Grenade 5

VendortronRef.additem SWPRPK 5

VendortronRef.additem SWPRPKMulticam 5

VendortronRef.additem SWPRPKSynthetic 5

VendortronRef.additem SWPRPKUrban 5

VendortronRef.additem SWPSAS12 5

VendortronRef.additem SWPSIG550 5

VendortronRef.additem SWPSigP220 5

VendortronRef.additem SWPStriker 5

VendortronRef.additem SWPTOZ34 5

VendortronRef.additem SWPTOZ34ER 5

VendortronRef.additem SWPVintorezVSS 5

VendortronRef.additem SWPWaltherP99 5

VendortronRef.additem SWPWinchester1300Carbine 5

VendortronRef.additem SWPWinchester1300Full 5

VendortronRef.additem SWPAcogSight 5

VendortronRef.additem SWPAimpointSight 5

VendortronRef.additem SWPEOSight 5

VendortronRef.additem SWPModkit545Suppressor 20

VendortronRef.additem SWPModkit556Suppressor 20

VendortronRef.additem SWPModkit939Suppressor 5

VendortronRef.additem SWPModkit9mmSuppressor 5

 

;Add items to form lists

AddFormToFormList WeaponRiflesLIST SWPAK74

AddFormToFormList WeaponRiflesLIST SWPAK74Folded

AddFormToFormList WeaponRiflesLIST SWPAK74FoldedMaple

AddFormToFormList WeaponRiflesLIST SWPAK74FoldedMulticam

AddFormToFormList WeaponRiflesLIST SWPAK74FoldedSynthetic

AddFormToFormList WeaponRiflesLIST SWPAK74FoldedUrban

AddFormToFormList WeaponRiflesLIST SWPAKS74u

AddFormToFormList WeaponRiflesLIST SWPAKS74uFolded

AddFormToFormList WeaponRiflesLIST SWPAN94

AddFormToFormList WeaponRiflesLIST SWPASVAL

AddFormToFormList WeaponRiflesLIST SWPASVALFolded

AddFormToFormList WeaponRiflesLIST SWPDragunov

AddFormToFormList WeaponRiflesLIST SWPDragunovSVU

AddFormToFormList WeaponRiflesLIST SWPHKG36

AddFormToFormList WeaponRiflesLIST SWPHKMP5

AddFormToFormList WeaponRiflesLIST SWPMP5Short

AddFormToFormList WeaponRiflesLIST SWPL85

AddFormToFormList WeaponRiflesLIST SWPLR300

AddFormToFormList WeaponRiflesLIST SWPPKmg

AddFormToFormList WeaponRiflesLIST SWPRPK

AddFormToFormList WeaponRiflesLIST SWPRPKMulticam

AddFormToFormList WeaponRiflesLIST SWPRPKSynthetic

AddFormToFormList WeaponRiflesLIST SWPRPKUrban

AddFormToFormList WeaponRiflesLIST SWPSIG550

AddFormToFormList WeaponRiflesLIST SWPVintorezVSS

AddFormToFormList ShotgunSurgeonWeaponsList SWPWinchester1300Full

AddFormToFormList ShotgunSurgeonWeaponsList SWPWinchester1300Carbine

AddFormToFormList ShotgunSurgeonWeaponsList SWPWinchester1300Unique

AddFormToFormList ShotgunSurgeonWeaponsList SWPTOZ34

AddFormToFormList ShotgunSurgeonWeaponsList SWPTOZ34ER

AddFormToFormList ShotgunSurgeonWeaponsList SWPStriker

AddFormToFormList ShotgunSurgeonWeaponsList SWPBM16

AddFormToFormList ShotgunSurgeonWeaponsList SWPSAS12

AddFormToFormList WeaponShotgunLIST SWPWinchester1300Full

AddFormToFormList WeaponShotgunLIST SWPWinchester1300Carbine

AddFormToFormList WeaponShotgunLIST SWPWinchester1300Unique

AddFormToFormList WeaponShotgunLIST SWPTOZ34

AddFormToFormList WeaponShotgunLIST SWPTOZ34ER

AddFormToFormList WeaponShotgunLIST SWPStriker

AddFormToFormList WeaponShotgunLIST SWPBM16

AddFormToFormList WeaponShotgunLIST SWPSAS12

 

;End Start Up Quest

stopquest STALKERWeaponsPackVendorScript

 

End

 

 

 

Thats the vendor add script from my stalker weapons pack mod, as you can see there is also some scripts to add the weapons to certain form lists.

Edited by pickinthebanjo
Link to comment
Share on other sites

I have been working on adding my items to standard NV merchants more this weekend and I have got some improvements but it is still not working 100% the way I want it to.

 

I have a respawning container and put my items in it, and I created a linked reference to it from GSChet's Merchant Container tab, but there is one last problem:

 

My items are a gun and a custom ammo and when I tested the mod Chet was selling all of his normal items except for his guns and ammo -- of guns and ammo he only had my stuff plus one or two things of his own. It appears my linking to him nuked his leveled lists, but only for item types added (weapon/ammo). The other thing that really bothered me is that I had to go in and edit the merchant object to add my container to him, and that is something I'd totally rather avoid.

 

To me the obvious solution is to somehow create a linked reference to his container then add items by a script, without having to modify any of the merchants objects. But this solution has eluded me. It refuses to work without actually editing the reference on his actual container. I tried using his reference ID number to no avail, and I also tried creating a linked reference that pointed to both the vendor and the container, both to no avail.

 

Any ideas?

 

p.s. @pickinthebanjo thanks for that script it is a good example of how to do some stuff. I noticed you used VendortronREF ... does that work differently than GSChetREF? I tried using GSChetREF and it added items to his personal inventory but not to his shop inventory.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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