Originally Posted by votan
I use this:
Lua Code:
local function GetZones() local i = 1 local zones = data.Zones -- a table of your choice local zbn = GetZoneNameByIndex local zone while true do zone = zbn(i) if zone == "" then break end zones[zone] = i i = i + 1 end end
Don't forget: These names a raw, including localization data. You should use zo_strformat for display.
|
Thanks votan,
this is very similar to my idea, I will give it a try.
Keldor