User:Gozolo/Barter System

Formulae

There are 4 parameters that effect the result of the price in the barter system. 2 for the buying prices and 2 for the selling prices.

!!! The skillcheck is based ONLY on the Player's 'barter' skill. Vendor's 'barter' skill has no effect on a price.


Parameters:

fBarterBuyBase (default value = 1.55)

fBarterBuyMult (default value = -0.45)

fBarterSellBase (default value = 0.45)

fBarterSellMult (default value = 0.45)


Buying from a vendor formula:

Price = ( 'Item Value' * fBarterBuyBase ) + ( 'Item Value' * 'Skill' * fBarterBuyMult / 100 )


Selling to a vendor formula:

Price = ( 'Item Value' * fBarterSellBase ) + ( 'Item Value' * 'Skill' * fBarterSellMult / 100 )


Examples:

As an example I'll take 'Ol' Painless' Hunting Rifle, which has a value '250' with default barter parameters considering that Player's 'barter' skill is 50.


Buying from a vendor price will be 331.

Price = ( 250 * 1.55 ) + ( 250 * 50 * (-0.45) / 100 ) = 387.5 - 56.25 = 331.25


Selling to a vendor price will be 169.

Price = ( 250 * 0.45 ) + ( 250 * 50 * 0.45 / 100 ) = 112.5 + 56.25 = 168.75


The buying price can't be lower than the item's 'value' as well as the selling price can't be higher than the item's 'value'.


There are some other parameters, but my only guess is that they remain from the Oblivion and are unused in the Fallout 3 system.


ShowBarterMenu

I was testing ShowBarterMenu for some time.

The result I get differs from the description here ShowBarterMenu (I couldn't 'freely move items back and forth' with sbm 100).


With sbm 0 it was default bartering formula (like above mentioned).


With sbm -100 When buying from a vendor I got the same default bartering formula but multiplied by 2. As for selling to a vendor, well, I got no price '--'.


With sbm 100 I got the default item 'value' when buying (with any barter skill). As for selling, the price equaled default item 'valiue', but with very low barter skill I had a little smaller price (I tested it with 0 barter skill. It was a few caps lower).


Thanks for your attention. I hope it'll help.


--gozolo 22:25, 25 July 2009 (UTC)