Osiris/API/RequestTrade

From Divinity Engine Wiki
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