Osiris/API/GenerateTreasure: Difference between revisions

From Divinity Engine Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
===== See Also =====
===== See Also =====
*[[Osiris/API/CharacterGiveReward|CharacterGiveReward]]
*[[Osiris/API/CharacterGiveReward|CharacterGiveReward]]
*[[Osiris/API/CharacterGiveQuestReward|CharacterGiveQuestReward]]
*[[Treasure_Tables|Treasure Table]]
*[[Treasure_Tables|Treasure Table]]


[[Category:Osiris Calls|GenerateTreasure]]
[[Category:Osiris Calls|GenerateTreasure]]

Revision as of 14:42, 8 January 2018

Full Definition(s)
  • call GenerateTreasure((ITEMGUID)_Item, (STRING)_TreasureID, (INTEGER)_Level, (CHARACTERGUID)_Character)
Description

Generates treasure from the _TreasureID treasure table and puts the item(s) generated in the _Item's inventory.

  • If the _Level is greater than or equal to 0, it will be used to generate treasure.
  • If the _Level is less than 0, if the item is set (in the sidebar) to Use Party Level For Treasure, the highest level in the _Character 's party is used.
  • If the _Level is less than 0, and Use Party Level For Treasure is false, the item's Treasure Level setting is used.
  • If the Treasure Level setting is also less than 0, the level of the nearest character is used.
Notes
  • /
See Also