Difference between revisions of "Osiris/API/CharacterGiveQuestReward"
From Divinity Engine Wiki
(Created page with "===== Full Definition(s) ===== * call '''CharacterGiveQuestReward'''(''(CHARACTERGUID)'''''_Player''', ''(STRING)'''''_Quest''', ''(STRING)'''''_RewardState''') ===== Descript...") |
m |
||
Line 2: | Line 2: | ||
* call '''CharacterGiveQuestReward'''(''(CHARACTERGUID)'''''_Player''', ''(STRING)'''''_Quest''', ''(STRING)'''''_RewardState''') | * call '''CharacterGiveQuestReward'''(''(CHARACTERGUID)'''''_Player''', ''(STRING)'''''_Quest''', ''(STRING)'''''_RewardState''') | ||
===== Description ===== | ===== 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 | + | 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 ===== | ===== Notes ===== | ||
* The items are always identified. | * The items are always identified. | ||
− | * The treasure is not affected by the player's level, only | + | * The treasure is not affected by the player's level, only by the one specified in the journal. |
===== See Also ===== | ===== See Also ===== | ||
*[[Osiris/API/CharacterGiveReward|CharacterGiveReward]] | *[[Osiris/API/CharacterGiveReward|CharacterGiveReward]] |
Latest revision as of 14:58, 9 January 2018
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
- CharacterGiveReward
- GenerateTreasure
- Treasure Tables
- Journal editor, where the rewards are defined.