ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Obtaining parent map name for zones (https://www.esoui.com/forums/showthread.php?t=2477)

mattmillus 11/28/14 04:25 PM

Obtaining parent map name for zones
 
Hello,

Anyone know if there is a way to get the parent of a map when you are not in that zone? For example, given "Rawl'kha" I would like to get "Reaper's March" (but my character might be in say Elden Root).

I looked at the game's map code but my initial findings showed that the game's lua simply calls the base function MapZoomOut() (which internally seems to find the map parent, but only for your current map) and then just waits for it to fire an update event.

Anyone have any ideas on a workaround here? Or alternatively, does anyone know of a list/table that links maps to their parent map?

EDIT: A way to iterate all the child maps for a given map would likely be fine as well

Garkin 11/28/14 09:20 PM

As far as I know there is no way to do this unless you make your own map table.

Something like:

Lua Code:
  1. local maps = {
  2.     [zoneIndex] = {
  3.         parent = parentZoneIndex,
  4.         subzones = {
  5.             subzoneIndex1,
  6.             subzoneIndex2,
  7.             ...
  8.         },
  9.     },
  10. }

List of all zones is here:
http://www.esoui.com/forums/showthre...2693#post12693

mattmillus 11/29/14 12:30 AM

thanks Garkin, I did not realize they added that GetZoneNameByIndex function!


All times are GMT -6. The time now is 04:17 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI