SetBarterPriceMult
From GECK
A function added by the JIP NVSE Plugin.
Contents
Description
Sets the item price modifier (a multiplier applied to the base price) in the current Barter Menu transaction.
The buyOrSell argument determines which modifier is set:
- 0 - Bought items (must be >= 1.0)
- 1 - Sold items (must be <= 1.0)
Syntax
SetBarterPriceMult buyOrSell:0/1 priceMult:float
Example
SetBarterPriceMult 0 1
Makes bought item prices go to their base value.
float fMult let fMult := (GetBarterPriceMult 1) * 1.25 SetBarterPriceMult 1 fMult
Makes sold item prices 25% greater.
float fMult let fMult := (GetBarterPriceMult 0) * 0.75 SetBarterPriceMult 0 fMult
Makes sold item prices 25% lesser (discount).
Notes
- No matter how high/low the PriceMult, an item cannot be sold for higher than its base value, and it cannot be bought for lower than its base value.