From Divinity Engine Wiki
- event TradeGenerationStarted((CHARACTERGUID)_Trader)
Thrown when the generation of trade treasure for _Trader starts.
- _Trader: the character for which the trade treasure is being generated.
- Since all generated trade treasure items result in an ItemAddedToCharacter event, this can be used to perform a particular operation on trade treasure items generated for a particular trader (e.g. add a custom tag to such items).
- After the last trade treasure item has been generated for _Trader, a TradeGenerationEnded event gets thrown.