Skip to content

05. Bargaining, Impatience & Perfume ​

This subsystem controls how a customer behaves during price negotiation, how quickly their patience drains, whether they storm out after a rejected offer, and how much faction reputation a completed deal awards.


Core Fields Reference ​

StoreClient FieldApplyClientProfile KeyTypeDescription
buyPriceModifier"BuyPriceModifier"intPercentage markup the buyer is willing to pay above base value (e.g. 40 = +40%).
sellPriceModifier"SellPriceModifier"intPercentage modifier on a seller's asking price.
clientImpatience"ClientImpatience"intControls how fast patience depletes during repeated counter-offers.
alwaysRejectBadBargain"AlwaysRejectBadBargain"boolImmediately rejects any offer beyond the threshold.
isBargainAvailable"IsBargainAvailable"boolSet to false to enforce a non-negotiable fixed price.
staysAfterFailedBargain"StaysAfterFailedBargain"boolIf true, the client remains at the counter after a failed haggle instead of leaving.
perfumeInfluence"PerfumeInfluence"intMultiplier for how strongly store perfume boosts this client's price tolerance.
tradeReputationMultiplier"TradeReputationMultiplier"doubleMultiplier applied to faction reputation gained from trading (default 1.0).

Code Example ​

csharp
NpcFrameworkSdk.ApplyClientProfile(sc, new Dictionary<string, object>
{
    ["BuyPriceModifier"] = 40,
    ["ClientImpatience"] = 1,
    ["StaysAfterFailedBargain"] = true,
    ["PerfumeInfluence"] = 2,
    ["TradeReputationMultiplier"] = 1.5
});

Custom NPC Framework Documentation