Difference between revisions of "Osiris/API/TradeGenerationStarted"
From Divinity Engine Wiki
(Created page with "===== Full Definition(s) ===== * event '''TradeGenerationStarted'''(''(CHARACTERGUID)'''''_Trader''') ===== Description ===== Thrown when Osiris/API/GenerateItems|the genera...") |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
===== Notes ===== | ===== Notes ===== | ||
* Since all generated trade treasure items result in an [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]] event, this can be used to perform a particular operation on trade treasure items generated for a particular trader (e.g. add a [[Osiris/API/SetTag|custom tag]] to such items). | * Since all generated trade treasure items result in an [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]] event, this can be used to perform a particular operation on trade treasure items generated for a particular trader (e.g. add a [[Osiris/API/SetTag|custom tag]] to such items). | ||
− | * After the last trade treasure item has been generated for '''_Trader''', a [[Osiris/API/TradeGenerationEnded|TradeGenerationEnded]] gets thrown. | + | * After the last trade treasure item has been generated for '''_Trader''', a [[Osiris/API/TradeGenerationEnded|TradeGenerationEnded]] event gets thrown. |
===== See Also ===== | ===== See Also ===== | ||
− | |||
− | |||
* [[Osiris/API/CharacterClearTradeGeneratedItems|CharacterClearTradeGeneratedItems]] | * [[Osiris/API/CharacterClearTradeGeneratedItems|CharacterClearTradeGeneratedItems]] | ||
− | |||
− | |||
* [[Osiris/API/CharacterSetCustomTradeTreasure|CharacterSetCustomTradeTreasure]] | * [[Osiris/API/CharacterSetCustomTradeTreasure|CharacterSetCustomTradeTreasure]] | ||
* [[Osiris/API/GenerateItems|GenerateItems]] | * [[Osiris/API/GenerateItems|GenerateItems]] | ||
− | |||
− | |||
* [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]] | * [[Osiris/API/ItemAddedToCharacter|ItemAddedToCharacter]] | ||
* [[Osiris/API/ItemTemplateAddedToCharacter|ItemTemplateAddedToCharacter]] | * [[Osiris/API/ItemTemplateAddedToCharacter|ItemTemplateAddedToCharacter]] | ||
− | |||
* [[Osiris/API/TradeGenerationEnded|TradeGenerationEnded]] | * [[Osiris/API/TradeGenerationEnded|TradeGenerationEnded]] | ||
− | |||
− | [[Category:Osiris Events| | + | [[Category:Osiris Events|TradeGenerationStarted]] |
Latest revision as of 10:35, 19 August 2018
Full Definition(s)
- event TradeGenerationStarted((CHARACTERGUID)_Trader)
Description
Thrown when the generation of trade treasure for _Trader starts.
Parameters
- _Trader: the character for which the trade treasure is being generated.
Notes
- 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.