Jump to content

Additem Script Adds too many Items?


surg23

Recommended Posts

Firstly, I am a giant nooblord when it comes to modding.

 

Some time ago I managed to make a script that adds items to Tulip's vendor chest, and although this was a success, the amount of said items added to her inventory number in the thousands. I adjusted the price in FO3-Edit and that is working, but she has 15,000 odd of each item which I think might be causing problems.

 

Here is my script as it exists today:

 

Scn armorquestAddItemsScr
Begin gameMode
VendorContainerTulipRef.additem 3EFdrgplateAdd001 3
VendorContainerTulipRef.additem 3EFdrgplateAdd003 1
VendorContainerTulipRef.additem 3EFdrgplateAdd003a 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001glad 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001gladns 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001imp 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001impns 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001jian 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001jianns 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001light 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001lightns 1
VendorContainerTulipRef.additem 3EFdrgplateArmor001ns 1
VendorContainerTulipRef.additem 3EFdrgplateArmor002 1
End
-----
I just don't know why it adds so many of these items. I assumed that the value at the end was the actual amount added. Any idea what I did wrong?
Link to comment
Share on other sites

Far from an expert myself but if I read from wiki:
"Code placed inside (GameMode) will be executed every frame during normal gameplay, i.e. whenever the player is not in any sort of menu."

 

Which means you're adding these items every frame!

 

Could this be helpful to you ?

 

http://www.cipscis.com/fallout/tutorials/beginners.aspx

Edited by ExhalePit
Link to comment
Share on other sites

  • Recently Browsing   0 members

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