Osiris/API/RequestTrade

From Divinity Engine Wiki
Revision as of 11:31, 19 August 2018 by Tinkerer (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • event RequestTrade((CHARACTERGUID)_Character, (CHARACTERGUID)_Trader)
Description

Thrown when a player performs the user interface action to start trading with an NPC from a dialogue.

Parameters
  • _Character: the player character that wants to trade.
  • _Trader: the NPC with whom the player wants to trade.
Notes
  • You have to call ActivateTrade in response to this event for trading to actually start. This works by default in all mods as the Shared mod (which all mods depend) contains code to do this.
See Also