Modifying buy prices.

Post » Tue Sep 22, 2015 4:45 am

I recently looked at another way to modifying buy prices, in addition to setGoldValue(). I found the entry point " Modify Buy Prices" and it works fine, for the most part. I have found however there is a limit to how low the buying prices will go.

Looking at the game settings page on the wiki, I came across these settings: fBarterMax, fBarterMin, and the far more interesting: fBarterBuyMin. This last one should control the absolute minimum price of an item. This doesn't seem to be the case according to my tests. In fact, modifying this setting, more specifically lowering it, does not seem to do anything.

A look at the mod Trade and Barter revealed the author uses a similar method to changing buying/selling prices: the Modify Buy Prices Entry Point. The mod, however, suffers from the same "bug"; prices will not go lower than a certain percent, which is much much higher than the 10% minimum the mod allows you to set. Which leads me to believe the author isn't aware of it.

Can anyone offer some insight into this issue. Are there additional settings that may be affecting this. Anyone know a different way of controlling the buy prices?

Thanks.

User avatar
Kit Marsden
 
Posts: 3467
Joined: Thu Jul 19, 2007 2:19 pm

Post » Tue Sep 22, 2015 7:27 am

I had a look at this a while ago, and got some very bizarre results; cannot remember exactly what they were now, but at the time I was trying to get exact value prices for buying and selling, and found I had to set the associated GameSettings to 1 (if I recall) and then some non-intuitive values for the ModifyBuy/Sell Entry Point (I think it was like -10 or something stupid-- something that should not have worked). I mentioned it back in the QQ/QA thread, and someone else pointed out that they seemed odd results, so... :shrug: It seems like these functions are a bit 'weird'? :/

User avatar
Ashley Clifft
 
Posts: 3468
Joined: Thu Jul 26, 2007 5:56 am

Post » Tue Sep 22, 2015 5:21 pm

Too bad the forum search isn't working correctly, It'd be nice to read your findings. Ayway, I did some more testing on my own; apparently there is a hard-coded limit to how low prices will go. This limit seems to be 1.05 or 105% percent of the cost value. Which coincidentally, is the default value of fBarterBuyMin. To reach this minimum value, is not necessary to use a ModifyBuy Entry Point perk. It is enough to set fBarterMin and fBarterMax to 1.

Curiously, increasing fBarterBuyMin works fine. Lowering below 1.05 is impossible. You can actually lower it, and the game will report your new value when you query the setting, but it will have no effect on the prices. They will remain 1.05 times their base cost.

Playing with the ModifyBuy/Sell Entry Point will work fine if you are modding the prices above that limit of 1.05. Anything below that will have no result. However, I wonder if these odd, non intuitive values you used somehow broke this hardcoded limit. I was thinking perhaps integer wrapping, but the values would have had to be much much higher... I don't know, I'll keep trying.

User avatar
Add Meeh
 
Posts: 3326
Joined: Sat Jan 06, 2007 8:09 am


Return to V - Skyrim