GetJournalQuestStepInfo

From ESOUI Wiki

Jump to: navigation, search

This function information on a quest step.

Contents

Arguments

journalIndex
The index of the quest to retrieve; it must be a number between 1 and GetNumJournalQuests(), inclusive.
stepIndex
The index of the step to retrieve; it must be a number between 1 and GetJournalQuestNumSteps(journalIndex), inclusive.

Return values

stepText
The step's journal text.
visibility
This value can be a number or nil.
stepType
A number representing the step type.
trackerOverrideText
The step's objective text, shown in the HUD. This can be an empty string.
numConditions
The number of conditions in this step.

Example

local desiredQuest = "The Covetous Countess" -- quest name that we care about
 
local count = GetNumJournalQuests()
for i = 1, count do
   local name = GetJournalQuestName(i)
   if name == desiredQuest then
      --
      -- We found the quest we're interested in. Let's get information on it.
      --
      local count = GetJournalNumQuestSteps(i)
      for j = 1, count do
         local journalText, _, _, hudText, _ = GetJournalQuestStepInfo(i, j)
         d("Step " .. j .. ": " .. (hudText or journalText))
      end
   end
end

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox