Difference between revisions of "Osiris/API/ActivateTrade"

From Divinity Engine Wiki
Jump to: navigation, search
m
m
 
(One intermediate revision by the same user not shown)
Line 5: Line 5:
 
===== Notes =====
 
===== Notes =====
 
* If '''_Player''' is not a player-controlled character, this call does nothing.
 
* If '''_Player''' is not a player-controlled character, this call does nothing.
* As mentioned in the notes of [[Osiris/API/CharacterSetCanTrade|CharacterSetCanTrade]], this call can be used to start trading even if player-initiated trader has been disabled for this '''_Trader'''.
+
* As mentioned in the notes of [[Osiris/API/CharacterSetCanTrade|CharacterSetCanTrade]], this call can be used to start trading even if player-initiated trading has been disabled for this '''_Trader'''.
 
===== See Also =====
 
===== See Also =====
 
* [[Osiris/API/CharacterCanTrade|CharacterCanTrade]]
 
* [[Osiris/API/CharacterCanTrade|CharacterCanTrade]]
Line 14: Line 14:
 
* [[Osiris/API/ExecuteDeal|ExecuteDeal]]
 
* [[Osiris/API/ExecuteDeal|ExecuteDeal]]
 
* [[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|ActivateTrade]]
 
[[Category:Osiris Calls|ActivateTrade]]

Latest revision as of 08:36, 22 February 2019

Full Definition(s)
  • call ActivateTrade((CHARACTERGUID)_Player, (CHARACTERGUID)_Trader, (INTEGER)_CanRepair, (INTEGER)_CanIdentify, (INTEGER)_CanSell)
Description

Starts a trade interface for _Player to trade with _Trader. _CanRepair, _CanIdentify and _CanSell affect the services that _Trader will offer (1 means that they offer it, any other value means that they don't). Additionally, if _CanRepair is 1, all items in _Trader's inventory will be repaired up to his repair skill level by this call. The same goes for _CanIdentify and their LoreMaster skill.

Notes
  • If _Player is not a player-controlled character, this call does nothing.
  • As mentioned in the notes of CharacterSetCanTrade, this call can be used to start trading even if player-initiated trading has been disabled for this _Trader.
See Also