Difference between revisions of "Category:Barter"
imported>Halo112358 m |
imported>ShadowDancer m (formatting) |
||
Line 1: | Line 1: | ||
{{:Barter Overview}} | {{:Barter Overview}} | ||
<div><span style="font-size: 142%; font-weight: bold;">Articles in category "Deprecated Settings"</span></div> | |||
----<div> | |||
There are 10 articles in this category. | |||
{| border="0" cellpadding="0" cellspacing="0" | |||
|width="5"| | |||
|width="230"|<span style="font-size: 132%; font-weight: bold;">F</span> | |||
|width="5"| | |||
|width="230"|<span style="font-size: 132%; font-weight: bold;">F cont.</span> | |||
|width="5"| | |||
|width="225"|<span style="font-size: 132%; font-weight: bold;">F cont.</span> | |||
|- | |||
| | |||
|<li type="square">[[FBarterBuyBase]] | |||
| | |||
|<li type="square">[[FBarterDispositionMod]] | |||
| | |||
|<li type="square">[[FBarterHaggleMax]] | |||
|- | |||
| | |||
|<li type="square">[[FBarterBuyMult]] | |||
| | |||
|<li type="square">[[FBarterHaggleBase]] | |||
| | |||
|<li type="square">[[FBarterSellBase]] | |||
|- | |||
| | |||
|<li type="square">[[FBarterDispBase]] | |||
| | |||
|<li type="square">[[FBarterHaggleCurve]] | |||
| | |||
|<li type="square">[[FBarterSellMult]] | |||
|- | |||
| | |||
| | |||
| | |||
|<li type="square">[[FBarterHaggleDispMult]] | |||
| | |||
| | |||
|- | |||
|} | |||
[[Category:Gameplay]] | [[Category:Gameplay]] | ||
[[Category:Settings By Concept]] | [[Category:Settings By Concept]] |
Revision as of 09:21, 1 October 2007
Barter is not generally accessible to the construction set. There is precious little that can be done to affect it because the functionality is in the game code. Barter is a function of the relative mercantile skills, the merchant's current disposition, and the haggle percentage.
The dialogue presented during barter is set on the service tab of a quest. Below are the game settings that control the formulas for bartering prices.
- fBarterBuyBase
- fBarterBuyMult
- fBarterDispBase
- fBarterDispositionMod
- fBarterHaggleBase
- fBarterHaggleCurve
- fBarterHaggleDispMult
- fBarterHaggleMax
- fBarterSellBase
- fBarterSellMult
Barter Formulas.
The formula used to check if a trade will be accepted by the merchant depending on the position of the slider is:
Value = fBarterHaggleDispMult * floor(fActorLuckSkillMult * (Disposition - 10) / 4) + (100 + min(PlayerSkill + fActorLuckSkillMult * (PlayerLuck - 50), 100) - min(MerchantSkill + fActorLuckSkillMult * (MerchantLuck - 50), 100)) / (10 - (SliderPosition * fBarterHaggleBase))
- SliderPosition is a value between 0 and 40 (fBarterHaggleMax) and represents the position in which the slider is located.
- If the value returned by the formula is greater than or equal to 0, the trade will be accepted by the merchant.
- Note that sometimes the result of the formula may give 0 (arithmetically) and therefore the trade should be accepted, but it is not. This is because of floating-point errors. The handling of these errors can be done, but that would over complicate the representation of the formula on this page.
- Editor's note: it has yet to be found if and where fBarterHaggleCurve fits into the above formula.
Alternatively, if you wish to know the best slider position you can use:
BestSliderPosition = floor(((fBarterHaggleDispMult * floor(fActorLuckSkillMult * (Disposition - 10) / 4) + (100 + min(PlayerSkill + fActorLuckSkillMult * (PlayerLuck - 50),100) - min(MerchantSkill + fActorLuckSkillMult * (MerchantLuck - 50),100)) /10) ^fBarterHaggleCurve) / fBarterHaggleBase)
To change the slider position through script, use SetMenuFloatValue with the default path for the slider value being; "Negotiate_Background\Negotiate_Scroll\Horizontal_Scroll_Marker\_Value_Scrolled_To".
Example: SetMenuFloatValue "Negotiate_Background\Negotiate_Scroll\Horizontal_Scroll_Marker\_Value_Scrolled_To" 1025 SliderPositionVar
There are 10 articles in this category.
F | F cont. | F cont. | |||
This category currently contains no pages or media.