Returns the index of the selected quest in the quest log
See also Quest functions.
Signature:
questIndex = GetQuestLogSelection()
Returns:
questIndex- Index of the selected quest in the quest log (between 1 andGetNumQuestLogEntries()) (number)
Examples:
-- Prints information about the currently selected quest
local index = GetQuestLogSelection()
local name = GetQuestLogTitle(index)
if name then
print("Currently viewing " .. name)
end