Difference between revisions of "Osiris/API/CharacterSetCanTrade"

From Divinity Engine Wiki
Jump to: navigation, search
(Documented CharacterSetCanTrade)
 
m
 
(One intermediate revision by the same user not shown)
Line 11: Line 11:
 
* [[Osiris/API/CharacterCanTrade|CharacterCanTrade]]
 
* [[Osiris/API/CharacterCanTrade|CharacterCanTrade]]
 
* [[Osiris/API/CharacterClearTradeGeneratedItems|CharacterClearTradeGeneratedItems]]
 
* [[Osiris/API/CharacterClearTradeGeneratedItems|CharacterClearTradeGeneratedItems]]
* [[Osiris/API/CharacterGiveReward|CharacterGiveReward]]
 
 
* [[Osiris/API/CharacterSetCustomTradeTreasure|CharacterSetCustomTradeTreasure]]
 
* [[Osiris/API/CharacterSetCustomTradeTreasure|CharacterSetCustomTradeTreasure]]
* [[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/TradeGenerationEnded|TradeGenerationEnded]]
 
* [[Osiris/API/TradeGenerationStarted|TradeGenerationStarted]]
 
  
 
[[Category:Osiris Calls|CharacterSetCanTrade]]
 
[[Category:Osiris Calls|CharacterSetCanTrade]]

Latest revision as of 10:26, 19 August 2018

Full Definition(s)
  • call CharacterSetCanTrade((CHARACTERGUID)_Trader, (INTEGER)_Bool)
Description

Enables player-initiated trades during dialogues with _Trader if _Bool is 1, otherwise disables them. Player-initiated trades are started by the player clicking on the trade icon or pressing the appropriate button on the controller.

Notes
  • Regardless of this setting, script can always still open the trading interface (e.g. in response to a certain dialogue choice).
  • Changing this setting for a character while it is already in a dialogue is supported and will adapt its trade setting on-the-fly.
See Also