Daggerfall Mod:Daggerfall Unity/Bible/Mercantile

The UESPWiki – Your source for The Elder Scrolls since 1995
Jump to: navigation, search

Daggerfall Unity: Mercantile[edit]

When buying or selling any object, your Mercantile skill is pitted against the opposing merchant's, as defined in the following formula:

int merchant_mercantile_level = 5 * (shopQuality - 10) + 50

The shop quality is an inherent trait in the shop building, ranging from 1 to 20. This determines what message is shown when you click the shop's entrance (from "rusty relics" to "fine incense").

Your Personality is also used in the formula, and is pitted against the merchant's Personality, defined as follows:

int merchant_personality_level = 5 * (shopQuality - 10) + 50

Selling to Merchant[edit]

When selling, your Mercantile and Personality work against the Merchant's as follows:

delta_mercantile = (((100 - merchant_mercantile_level) * 2^8) / 200 + 128) * (((player.Skills.GetLiveSkillValue(DFCareer.Skills.Mercantile)) * 2^8) / 200 + 128) / 2^8;

delta_personality = (((100 - merchant_personality_level) * 2^8) / 200 + 128) * ((player.Stats.LivePersonality * 2^8) / 200 + 128) / 2^8;

When you sell any object, the amount of money you receive is governed by the following formula:

amount = ((((179 * delta_mercantile) / 2^8) + ((51 * delta_personality) / 2^8)) * cost) / 2^8;

Buying from Merchant[edit]

When buying, your Mercantile and Personality work against the Merchant's as follows:

delta_mercantile = ((merchant_mercantile_level * 2^8) / 200 + 128) * (((100 - (player.Skills.GetLiveSkillValue(DFCareer.Skills.Mercantile))) * 2^8) / 200 + 128) / 2^8;

delta_personality = ((merchant_personality_level * 2^8) / 200 + 128) * (((100 - player.Stats.LivePersonality) * 2^8) / 200 + 128) / 2^8 * 2^6;

When you buy any object, the amount of money you spend is governed by the following formula:

amount = ((((192 * delta_mercantile) / 2^8) + (delta_personality / 2^8)) * cost) / 2^8;