Difference between revisions of "Osiris/API/ExecuteDeal"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented ExecuteDeal)
 
m
Line 8: Line 8:
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/ActivateTrade|ActivateTrade]]
 
* [[Osiris/API/ActivateTrade|ActivateTrade]]
* [[Osiris/API/CharacterCanTrade|CharacterCanTrade]]
+
* [[Osiris/API/CharacterAddAttitudeTowardsPlayer|CharacterAddAttitudeTowardsPlayer]]
* [[Osiris/API/CharacterClearTradeGeneratedItems|CharacterClearTradeGeneratedItems]]
 
 
* [[Osiris/API/CharacterGiveReward|CharacterGiveReward]]
 
* [[Osiris/API/CharacterGiveReward|CharacterGiveReward]]
* [[Osiris/API/CharacterSetCanTrade|CharacterSetCanTrade]]
 
* [[Osiris/API/CharacterSetCustomTradeTreasure|CharacterSetCustomTradeTreasure]]
 
 
* [[Osiris/API/GenerateItems|GenerateItems]]
 
* [[Osiris/API/GenerateItems|GenerateItems]]
* [[Osiris/API/GenerateTreasure|GenerateTreasure]]
 
 
* [[Osiris/API/HappyWithDeal|HappyWithDeal]]
 
* [[Osiris/API/HappyWithDeal|HappyWithDeal]]
* [[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 Calls|ExecuteDeal]]
 
[[Category:Osiris Calls|ExecuteDeal]]

Revision as of 11:33, 19 August 2018

Full Definition(s)
  • call ExecuteDeal((CHARACTERGUID)_Character, (INTEGER)_Deal, (INTEGER)_AttitudeDiff)
Description

This API must only be called in response to a HappyWithDeal event, with the _Character parameter from that event as _Character parameter here. If _Deal is 1, the proposed trade goes through, otherwise it is rejected. _AttitudeDiff is used for showing how the trade offer affected the NPCs attitude in the interface; it does not update the attitude of the NPC (use CharacterAddAttitudeTowardsPlayer for that).

Notes
  • If _Character is not a player-controlled character or not currently involved in a trade, this call will do nothing.
  • See also HappyWithDeal.
See Also