Originally Posted by Xrystal
You could try
index = GetCurrentMapIndex() - but there is a chance it will return a nil value for some reason
And then it looks like this will get you more info
name, mapType, mapContentType = GetMapInfo(luaindex index)
These are listed in the WIKI for more information.
|
But how would you resolve the player position in the world with that?
And that returns the same information.
If I change the map to Tamriel I get that index because the Map was last set on Tamriel (zoomed out).
If I select Oblivion, etc... it is the same problem. The functions are tied to the in-game map's last state, not the literal world position, or even zone.
You get conflicting results using the playerzone calls or the mapname calls. One can give you discrete sub-zone names, the other the "country".
Like Daggerfall versus Daggerfall Marketplace.
In either case, neither of those translate to any X,Z coordinates, nor can I find anything that can do so.
I had toyed with adding pins to the compass, but a perfect example is Quests. They already have pins, and you can already get their normalized X,Z coords.
But if you try to make a distance to quest function, depending on what map the player had open in the global map, the distances are completely wrong.