I am trying to find a way to detect that I zoomed into the Dragonstar map.
It should be a global name that works across client languages.
I tried "
string.match(GetMapTileTexture(), "%w+/%w+/%w+/(%w+)_%w+_%d.dds")"
but that gives nothing.
All I can get is the "353" for Craglorn using "
GetCurrentMapZoneIndex()". What am I missing?
UPDATE: I have found it's the same problem with the Harborage, at least in Stonefalls.
It looks to me like something like this is the only solution at the moment:
Lua Code:
local subzone = string.match(GetMapTileTexture(), "%w+/%w+/%w+/(%w+)_%w+_%d.dds")
if GetCurrentMapZoneIndex() == 353 and subzone == nil then
subzone = "dragonstar"
end
Please correct me if I am wrong.