Skip to content

4.2 ApplyClientProfile 46-Field Declarative Dictionary Reference ​

NpcFullFeatureKit.ApplyClientProfile(StoreClient sc, Dictionary<string, object> profile) maps all 46 supported dictionary keys directly onto StoreClient fields, lists, delegates, and dialogue trees:

#Dictionary Key (Key)Value Type (Type)Underlying StoreClient Field / Method
1"DisplayName"stringsc.displayName = val
2"SpriteName"stringsc.spriteName = NpcTraitHelper.ResolveValidSpriteName(val)
3"PossibleSprites"IEnumerable<string>Appended to sc.possibleSprites
4"Faction"stringsc.clientFaction = val
5"BubbleColor"stringsc.bubbleColor = val (e.g. "dark")
6"ClientIntent"intsc.clientIntent = (StoreClient.ClientIntent)val
7"Budget"intsc.SetBudget(val)
8"UseClientBudget"boolsc.useClientBudget = val
9"BuyPriceModifier"intsc.buyPriceModifier = val
10"SellPriceModifier"intsc.sellPriceModifier = val
11"IsOfferWholesale"boolsc.isOfferWholesale = val
12"WholesaleDiscount"intsc.wholesaleDiscount = val
13"RequireVariety"boolCalls sc.SetVariety() if true
14"NoAcceptingContraband"boolsc.noAcceptingContraband = val
15"AcceptingContrabandOverride"boolsc.AcceptingContrabandOverride = val
16"ChargesContrabandMarkup"boolsc.chargesContrabandMarkup = val
17"AcceptRetailMarkup"boolsc.acceptRetailMarkup = val
18"RefusesHazardousWaterLabel"boolsc.refusesHazardousWaterLabel = val
19"PerfumeInfluence"intsc.perfumeInfluence = val
20"ClientImpatience"intsc.clientImpatience = val
21"AlwaysRejectBadBargain"boolsc.alwaysRejectBadBargain = val
22"IsBargainAvailable"boolsc.isBargainAvailable = val
23"StaysAfterFailedBargain"boolsc.staysAfterFailedBargain = val
24"Dismissable"boolsc.dismissable = val
25"Arrestable"boolsc.arrestable = val
26"NonShootable"boolsc.nonShootable = val
27"IsSecurity"boolsc.isSecurity = val
28"IsLazyInspector"boolsc.isLazyInspector = val
29"IsNoContributeToEvidence"boolsc.isNoContributeToEvidence = val
30"IsAug"boolsc.isAug = val (Warning: only set true for hostile disguised monsters)
31"AugTier"intsc.augTier = val
32"AugIdleTell"intsc.augIdleTell = (StoreClient.AugIdleTell)val
33"MakeDisguisedAugTier"intCalls AugHelper.MakeDisguisedAug(sc, val)
34"CanExposeChem"boolsc.CanExposeChem = val
35"AcceptedChemicalGrade"intsc.acceptedChemicalProductGrade = val
36"ExposePreset"intCalls NpcTraitHelper.ApplyExposePreset(...)
37"CanReturn" / "CanReturnAsBuyer"boolsc.CanReturn = val / sc.CanReturnAsBuyer = val
38"AlwaysFeedback"boolsc.alwaysFeedback = val
39"IsClientAddict"boolsc.IsClientAddict = val
40"TradeReputationMultiplier"doublesc.tradeReputationMultiplier = val
41"BuyingTags" / "BuyingIds"IEnumerable<string>Added to clientBuyingTagList / clientBuyingIdList
42"BlackTags" / "BlackIds"IEnumerable<string>Added to clientBlackTagList / clientBlackIdList
43"InspectionChecks"IEnumerable<string>Calls sc.AddCheck(c) for each entry
44"OnArrival" / "OnDismiss" / "OnDealAccepted"ActionBinds arrival, dismissal, and deal-accepted callbacks
45"OnItemAddedToWeighted" / "OnItemSold" / "OnItemBought"Action<...>Binds realtime scale and trade item callbacks
46"InterrogationDialogue" / "GlassesDialogue" / "CustomOnArrestDialogue" / "RepeatDialogue"DialogueBinds interrogation, optics scan, arrest, and repeat dialogues

Custom NPC Framework Documentation