Osiris/API/SetTagPriceModifier

From Divinity Engine Wiki
Revision as of 08:48, 11 March 2019 by Tinkerer (talk | contribs) (Documented SetTagPriceModifier)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call SetTagPriceModifier((CHARACTERGUID)_Character,(STRING)_Tag,(INTEGER)_Modifier)
Description

Set the price multiplication factor _Modifier on NPC _Character when trading with characters that have the tag _Tag. A higher _Modifier increases the selling price and reduces the buying price of the trader.

Notes
  • If a player character has multiple tags for which a _Modifier has been set, the highest modifier is used.
  • Unlike the modifier parameter of PartySetShopPriceModifier, the _Modifier here is used as a direct multiplication factor rather than as a percentage and cannot be used to reduce the price.
See Also