Less items in shops question

Users who are viewing this thread

mbjp10

Recruit
Can someone direct me to the code that would allow less item slots in shops?  I would like to make Arms/Armour shops less stocked and make after battle looting more important.

  Thank you
 
Funny, it is not that long ago that someone in the German board wanted exactly the opposite.
Do you use Native or a mod? Some mods change these triggers or even move them to scripts.

In Native the traders are handled in the file triggers.txt.
All traders have about 30 items in their inventory, for example the weapon smith:
triggers.txt said:
0.000000 0.000000 24.000000  0  19 1492 1 100 1490 1 150 6 3 72057594037927938 360287970189640086 360287970189640104 1512 3 72057594037927938 2 5 1512 3 72057594037927938 3 5 1512 3 72057594037927938 4 5 1512 3 72057594037927938 7 6 1512 3 72057594037927938 8 4 1512 3 72057594037927938 9 3 1512 3 72057594037927938 10 5 1512 3 72057594037927938 5 2 1512 3 72057594037927938 6 2 1510 2 72057594037927938 30 1511 1 72057594037927938 2149 2 72057594037927942 72057594037927938 2147483678 2 72057594037927942 900 2136 3 1224979098644774912 200 400 1 3 936748722493063468 72057594037927938 1224979098644774912 3 1 0
The blue 30 is the number you have to change. If you search for the numbers "1510 2 72057594037927938 30" you should find it four times (the four traders).
The numbers I marked in red are the types of items the trader refreshes (I think). If you don't see all types of items after you change the triggers with the traders you will have to reduce these too.
 
Thank you very much for your help, Berpol.
  I use Native Expansion 0.550 for 1.011.  It must change this code because I only have the line '1510 2 72057594037927938 30'  twice in my triggers.txt  and not at all in scripts.tex
  I did change the '30' in triggers.txt to '10' and tested it but I saw no difference in any of the shops.
  I would appreciate if you have any other suggestions but if not, I thank you again for for your help.
 
Given that the line still appears twice I expect these belong to the general trader and the horse merchant (those get changed less) and they modified the code for weapons and armor traders.

Without analyzing the module system files I can't help you further.
Sorry.
 
Back
Top Bottom