Difference between revisions of "Osiris/API/RequestTrade"
From Divinity Engine Wiki
m |
m |
||
Line 15: | Line 15: | ||
* [[Osiris/API/CharacterSetCanTrade|CharacterSetCanTrade]] | * [[Osiris/API/CharacterSetCanTrade|CharacterSetCanTrade]] | ||
* [[Osiris/API/CharacterSetCustomTradeTreasure|CharacterSetCustomTradeTreasure]] | * [[Osiris/API/CharacterSetCustomTradeTreasure|CharacterSetCustomTradeTreasure]] | ||
+ | * [[Osiris/API/ExecuteDeal|ExecuteDeal]] | ||
* [[Osiris/API/GenerateItems|GenerateItems]] | * [[Osiris/API/GenerateItems|GenerateItems]] | ||
* [[Osiris/API/GenerateTreasure|GenerateTreasure]] | * [[Osiris/API/GenerateTreasure|GenerateTreasure]] |
Revision as of 22:32, 18 August 2018
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.