Skip to content

roster

A group or raid roster. mq.TLO.Group and mq.TLO.Raid are both this shape.

if mq.TLO.Group.Available() then
  for _, m in ipairs(mq.TLO.Group.Members()) do
    eq2.print(("%d: %s %d%% hp"):format(m.Index(), m.Name(), m.PctHP()))
  end
end

Members

bool Available

Is the group/raid manager resolvable right now?

Check this first. When it's false, every other member returns its fail-soft zero value rather than erroring, so an unchecked loop silently does nothing.

number Count

Number of members. Group tops out at 6, Raid at 24.

rostermember Member[n]

One member by 1-based index. nil for an out-of-range or empty slot.

Note this is bracket indexing, not a call: mq.TLO.Group.Member[2].

array Members

Array of rostermember for the whole roster.

array IDs

Array of member spawn ids. Zero and unresolved slots are skipped, so this is shorter than Count() when someone is out of range.

string Leader

Group leader name. "" when unknown or on a Raid roster.

Group vs Raid

The two share a shape but not a data path. Raid rosters do not carry zone or cure-class data — those members are present and return "" / false / 0 rather than being missing. See rostermember for the column-by-column breakdown.

See also