Returns a hyperlink for an item 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 nil
or a value from the most recently displayed quest.
See also Quest functions, Hyperlink functions.
Signature:
link
=
GetQuestItemLink("itemType",
index)
Arguments:
itemType
- Token identifying one of the possible sets of items (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
- Index of an item in the set (between 1 andGetNumQuestChoices()
,GetNumQuestItems()
, orGetNumQuestRewards()
, according toitemType
) (number
)
Returns:
link
- A hyperlink for the item (string
)