Jump to content

Help with Vendor Addscripts


Recommended Posts

I have been adding my weapons mods directly to vendor containers which does add them to the vendors lists but any other mod that does the same will be broken if placed before mine. I am trying to accommodate as many as I can by making my mod as compatible with others as I can but I am stuck on this script. I have no experience in scripting (less than 10 min) and thats the problem.

 

I made this script but it does not work and I have no idea why. Could a more experianced scripter help me with adding my weapons to vendors and hopefully Enemy/friendly NPC's?

 

Here is the script I made -

 

 

Scn SWPAN94ABAKANVendorScripts

 

Begin gameMode

 

;Add items to Vendor.

VendortronRef.additem SWPAN94ABAKAN 5

VendortronRef.additem SWPAimpoint 5

 

;Add items to form lists

AddFormToFormList WeaponRiflesLIST SWPAN94ABAKAN

 

;End Start Up Quest

stopquest SWPAN94ABAKANVendorScripts

 

End

Link to comment
Share on other sites

I prefer to just create a new container owned by that merchant. Anything in it will show up in their inventory and not conflict with anything.

 

Other than that, you script looks like it should work. Make sure it is a quest script, it is added to your quest, and your quest has 'start game enabled' ticked.

Link to comment
Share on other sites

Hmm, I am confused now. I did set it as a quest, also I set start game enabled and a priority of 60 with the default script delay checked. ( am going off memory but I am fairly sure that what the checkbox was called)

 

I was surprised to see that they did not show up, I even waited 3 days + 1 hour just to make sure but there was nothing.

 

Maybe I will try it your way, could you give me some help in figuring out how to add a container to a vendor?

Link to comment
Share on other sites

Looks alright though I have looked through the geck wiki before and that sight is pretty bad for not going into any particular detail. A good example of this is looking up geck functions, some entries are empty others say unknown.

 

It was a while ago that I used that particular tutorial so maybe I will have better luck now. I will post any further problems related to this.

Link to comment
Share on other sites

  • 2 weeks later...
Alright that script does actually work fine and it seems to be quite compatible with other mods but my question now is about other NPC's. which forms would I need to add to in order to get NPC's carrying my weapons. NCR, Legion, Vipers, ect Edited by pickinthebanjo
Link to comment
Share on other sites

most generic NPCs have a template that supplies their equipment. so you could run either an additem to the base (since anyone spawned would have the item) or run a equip script (which would run on any that already have spawned i think)
Link to comment
Share on other sites

  On 5/11/2011 at 3:03 PM, majinshinsa said:

most generic NPCs have a template that supplies their equipment. so you could run either an additem to the base (since anyone spawned would have the item) or run a equip script (which would run on any that already have spawned i think)

 

Run the additem to the NPC's reference ID correct?

Link to comment
Share on other sites

sorry just tested out what i said and it doesnt work. tried with LegionaryRecruitAAMTemplate (base of most legion recruits) You could add this "NPC" to the game and use its new ref id. i think that could work (course i could be going about this the totally wrong way (also adding to leveled lists with additem doesnt work either.)
Link to comment
Share on other sites

  • Recently Browsing   0 members

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