Returns information regarding a "section" of the encounter journal. A "section" is a phase, unit or ability of an encounter.

Signature:

name, description, headerType, abilityIcon, displayInfo, siblingID, nextSectionID, fileredByDifficulty, sectionLink, startsOpen, flag1, flag2, flag3, flag4 = EJ_GetSectionInfo(sectionID)

Arguments:

  • sectionID - Unique ID of the section. (number)

Returns:

  • name - Label of the section (string)

  • description - Text of the section (string)

  • headerType - The variant of section this is (number)

    • 0 - Item
    • 1 - Encounter
    • 2 - Creature
    • 3 - Section (Ability or Creature Add)
    • 4 - Instance

  • abilityIcon - The icon used for abilities (string)

  • displayInfo - Creature ID (number)

  • siblingID - The sectionID of the next section on the same level (number)

  • nextSectionID - The sectionID of the first child of this section (number)

  • fileredByDifficulty - True if should not be shown with current difficulty setting (boolean)

  • sectionLink - A clickable link to this section of the encounter journal (string)

  • startsOpen - Expands the section if true (boolean)

  • flag1 - A flag describing the icon displayed next to the section (number)

    • 0 - Tank Alert
    • 1 - Damage Alert
    • 2 - Healer Alert
    • 3 - Heroic only
    • 4 - Deadly
    • 5 - Important
    • 6 - Interruptable
    • 7 - Magic Effect
    • 8 - Curse Effect
    • 9 - Poison Effect
    • 10 - Disease Effect
    • 11 - Enrage

  • flag2 - A flag describing the icon displayed next to the section (number)

  • flag3 - A flag describing the icon displayed next to the section (number)

  • flag4 - A flag describing the icon displayed next to the section (number)

Examples:

-- this displays how to use recursive functions to traverse an encounter
local function traverse(id,off)
  off=off or ""
  while id do
    local nex,ch,_,li=select(6,EJ_GetSectionInfo(id))
    print(off..li)
    if ch then
      traverse(ch,off.."  ")
    end
    id=nex
  end
end
-- 198 is the encounterID for Ragnaros
traverse((select(4,EJ_GetEncounterInfo(198))))