Osiris/API/CharacterGiveQuestReward

From Divinity Engine Wiki
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 a number of items (as specified by RewardTreasureOptionalCount) from those generated by the treasure table under RewardOptionalTreasureTables. The level used for the generation of both tables is given by RewardTreasureLevel.

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