Returns information about items in a questgiver dialog. Only valid when the questgiver UI is showing the accept/decline, progress, or completion stages of a quest dialog (between the QUEST_DETAIL
and QUEST_FINISHED
, QUEST_PROGRESS
and QUEST_FINISHED
, or QUEST_COMPLETE
and QUEST_FINISHED
events); otherwise may return empty values or those from the most recently displayed quest.
See also Quest functions.
Signature:
name,
texture,
numItems,
quality,
isUsable
=
GetQuestItemInfo("type",
index)
Arguments:
type
- Which of the possible sets of items to query (string
)choice
- Items from which the player may choose a rewardrequired
- Items required to complete the questreward
- Items given as reward for the quest
index
- Which item to query (from 1 to GetNumQuestChoices(), GetNumQuestItems(), or GetNumQuestRewards(), depending on the value of the itemType argument) (number
)
Returns:
name
- The name of the item (string
)texture
- Path to a texture for the item's icon (string
)numItems
- Number of the item required or rewarded (number
)quality
- The quality of the item (number
)0
- Poor1
- Common2
- Uncommon3
- Rare4
- Epic5
- Legendary6
- Artifact
isUsable
- 1 if the player can currently use/equip the item; otherwise nil (1nil
)