Zone¶
The zone you are currently in.
Forms¶
zone Zone¶
- Returns the current
zone.
Usage¶
eq2.print("in " .. mq.TLO.Zone.Name())
Members¶
mq.TLO.Zone.Name() -- string, "" before you are in the world
mq.TLO.Zone.ShortName() -- internal zone identity key (same value today)
The same value is on every actor as
Zone(). It is world-global, so
mq.TLO.Target.Zone() and mq.TLO.Zone.Name() are the same string — the actor
form is a convenience, not a per-actor read.
Waiting to be in-world¶
Name() is "" at character select and mid-zone, which makes it a reasonable
"am I in the world yet" gate for a script that starts before you are:
while mq.TLO.Zone.Name() == "" do eq2.delay(500) end
eq2.print("ready in " .. mq.TLO.Zone.Name())
See also¶
zone— including a zone-change poll loop./maptravel— fast-travel between zones.