Difference between revisions of "Osiris/API/HappyWithDeal"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented HappyWithDeal)
 
m
 
Line 12: Line 12:
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/ActivateTrade|ActivateTrade]]
 
* [[Osiris/API/ActivateTrade|ActivateTrade]]
* [[Osiris/API/CharacterCanTrade|CharacterCanTrade]]
 
* [[Osiris/API/CharacterClearTradeGeneratedItems|CharacterClearTradeGeneratedItems]]
 
* [[Osiris/API/CharacterGiveReward|CharacterGiveReward]]
 
* [[Osiris/API/CharacterSetCanTrade|CharacterSetCanTrade]]
 
* [[Osiris/API/CharacterSetCustomTradeTreasure|CharacterSetCustomTradeTreasure]]
 
 
* [[Osiris/API/ExecuteDeal|ExecuteDeal]]
 
* [[Osiris/API/ExecuteDeal|ExecuteDeal]]
 
* [[Osiris/API/GenerateItems|GenerateItems]]
 
* [[Osiris/API/GenerateItems|GenerateItems]]
* [[Osiris/API/GenerateTreasure|GenerateTreasure]]
 
* [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]]
 
* [[Osiris/API/ItemTemplateAddedToCharacter|ItemTemplateAddedToCharacter]]
 
 
* [[Osiris/API/RequestTrade|RequestTrade]]
 
* [[Osiris/API/RequestTrade|RequestTrade]]
 
* [[Osiris/API/TradeEnds|TradeEnds]]
 
* [[Osiris/API/TradeEnds|TradeEnds]]
* [[Osiris/API/TradeGenerationEnded|TradeGenerationEnded]]
 
* [[Osiris/API/TradeGenerationStarted|TradeGenerationStarted]]
 
  
 
[[Category:Osiris Events|HappyWithDeal]]
 
[[Category:Osiris Events|HappyWithDeal]]

Latest revision as of 10:32, 19 August 2018

Full Definition(s)
  • event HappyWithDeal((CHARACTERGUID)_Character, (CHARACTERGUID)_Trader, (INTEGER)_CharacterValue, (INTEGER)_TraderValue)
Description

Thrown when a player tries to perform a trade.

Parameters
  • _Character: the player character that wants to trade.
  • _Trader: the NPC with whom the player wants to trade.
  • _CharacterValue: the total value of the gold and goods offered by the player.
  • _TraderValue: the total value of the gold and goods wanted by the player from the trader.
Notes
  • You have to call ExecuteDeal in response to this event to indicate whether the deal should succeed or not. This works by default in all mods as the Shared mod (which all mods depend) contains code to do this.
See Also