Thread Tools Display Modes
11/28/14, 04:25 PM   #1
mattmillus
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 13
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
  Reply With Quote
11/28/14, 09:20 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
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
  Reply With Quote
11/29/14, 12:30 AM   #3
mattmillus
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 13
thanks Garkin, I did not realize they added that GetZoneNameByIndex function!
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » Obtaining parent map name for zones

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off