From Divinity Engine Wiki
- query CharacterCanTrade([in](CHARACTERGUID)_Trader, [out](INTEGER)_Bool)
Returns whether players can initiate trading with the NPC _Trader during dialogues.
- Success/Failure: Fails if _Trader does not exist.
- _Bool: 1 or 0 depending on whether players currently can or cannot initiate trades with _Trader.
- See CharacterSetCanTrade.