Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:GetZoneTier

From RoR Wiki

UI Lua API · Map functions
Version: WAR 1.4.8

Returns the tier of the zone the player is in.

tier = GetZoneTier()

Arguments

None.

Returns

tier
number – Tier of the player's current zone, as stored in the client's zone data. Nothing is returned if the zone is not in that data or its tier is 0.

Details

  • The function takes no zone argument; it always uses the current zone.
  • The value is not range-checked.
  • The stock UI never calls this function.

Errors

None.

Example

A minimal example built from the signature:

local tier = GetZoneTier()
if tier ~= nil then
    LabelSetText( "MyTierLabel", L"Tier "..tier )
end

See also