Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TomeGetWarJournalGlyphEntryForZone

From RoR Wiki

UI Lua API · Tome functions
Version: WAR 1.4.8

Returns the War Journal entry that holds the glyphs of a zone, for the player's realm.

entryId = TomeGetWarJournalGlyphEntryForZone(zoneId)

Arguments

zoneId
number – Zone id. Only the low 16 bits are used.

Returns

entryId
number – War Journal entry id for the player's realm. Nothing is returned if the zone has no glyph entry for that realm, or the player's realm is not Order or Destruction.

Details

  • Each zone can have one entry for Order and one for Destruction; the player's realm picks which one is returned.
  • If there is no player object, nothing is returned.
  • Exactly one argument must be passed.

Errors

None besides the generic Invalid Parameters message when the argument is missing or not a number.

Example

From default/ea_worldmapwindow/source/zoneview.lua:

local entryId = TomeGetWarJournalGlyphEntryForZone( zoneId )
if entryId ~= nil
then
    -- show locked/unlocked glyphs tracker for this zone where the zone control bar was
    GlyphDisplay.SetEntryID( EA_Window_WorldMap.GlyphData.instanceId, entryId )

See also