Osiris/API/CharacterGiveQuestReward

From Divinity Engine Wiki
Revision as of 15:41, 8 January 2018 by LarIlya (talk | contribs) (Created page with "===== Full Definition(s) ===== * call '''CharacterGiveQuestReward'''(''(CHARACTERGUID)'''''_Player''', ''(STRING)'''''_Quest''', ''(STRING)'''''_RewardState''') ===== Descript...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Full Definition(s)
  • call CharacterGiveQuestReward((CHARACTERGUID)_Player, (STRING)_Quest, (STRING)_RewardState)
Description

Gives the _Player character (if they are a player) the reward under the _RewardState state of the _Quest supplied. The RewardTreasureTables field is used for the static part of the treasure (i.e. what the player always gets). The player can also select an amount of items given RewardTreasureOptionalCount from those generated by the treasure table under RewardOptionalTreasureTables. The level used for the generation of both table is given by RewardTreasureLevel.

Notes
  • The items are always identified.
  • The treasure is not affected by the player's level, only that specified in the journal.
See Also