Difference between revisions of "Osiris/API/RequestTrade"
From Divinity Engine Wiki
(Documented RequestTrade) |
m |
||
Line 17: | Line 17: | ||
* [[Osiris/API/GenerateItems|GenerateItems]] | * [[Osiris/API/GenerateItems|GenerateItems]] | ||
* [[Osiris/API/GenerateTreasure|GenerateTreasure]] | * [[Osiris/API/GenerateTreasure|GenerateTreasure]] | ||
+ | * [[Osiris/API/HappyWithDeal|HappyWithDeal]] | ||
* [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]] | * [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]] | ||
* [[Osiris/API/ItemTemplateAddedToCharacter|ItemTemplateAddedToCharacter]] | * [[Osiris/API/ItemTemplateAddedToCharacter|ItemTemplateAddedToCharacter]] |
Revision as of 22:22, 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.