Quantcast Get Male/Female names of skill lines - ESOUI
Thread Tools Display Modes
01/16/20, 07:12 AM   #1
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 40
Question Get Male/Female names of skill lines

Hello everybody,

I was just wondering that there is no method to query the different skill lines names for male and female characters. In German and French we have a different name for some skill lines per gender.

Heres an example of the Nord class skill line in german:
Female => Tochter der Himmel
Male => Sohn der Himmel

For example the GetAvARankName() method has this implemented to get the gender specific name:
Code:
GetAvARankName(GetUnitGender("player"), rank)
While the GetSkillLineInfo() method always return the name for the current used characters gender:
Code:
local lineName = GetSkillLineInfo(typeIndex, lineIndex)
Did anybody known how to get both names (male/female) without having two characters with one of the genders?

Thanks
Keldor
__________________
ESO-Database.com | Character- and Guild Database [EN/DE] (System Status)
ESO-Skillfactory.com | ESO Build planer [EN/DE/FR]
ESO-LFG.com | The ESO Looking for Group Tool [EN/DE/FR]
  Reply With Quote
01/16/20, 07:38 AM   #2
Baertram
 
Baertram's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 2,623
The only possible way I could think of would be to get the name and then use zo_strformat to format the gender afterwards, via the modificators:
https://wiki.esoui.com/How_to_format...h_zo_strformat

I guess ingame it will always be the character's gender as you said.

I guess you need to test if this works.

Edit:
Or you'll overwrite GetUnitGender with your own function and return the desired gender for your test purposes!
Maybe it is used internally as well and works.

Last edited by Baertram : 01/16/20 at 07:41 AM.
  Reply With Quote
01/16/20, 10:03 AM   #3
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 40
Originally Posted by Baertram View Post
The only possible way I could think of would be to get the name and then use zo_strformat to format the gender afterwards, via the modificators:
https://wiki.esoui.com/How_to_format...h_zo_strformat

I guess ingame it will always be the character's gender as you said.

I guess you need to test if this works.

Edit:
Or you'll overwrite GetUnitGender with your own function and return the desired gender for your test purposes!
Maybe it is used internally as well and works.
Thanks for your ideas but overriding the GetUnitGender() does not affected the GetSkillLineInfo() method. I've also tried to format the line name with zo_strformat but also without luck.

I'm currently trying to get the data from the SKILLS_DATA_MANAGER object.

Keldor
__________________
ESO-Database.com | Character- and Guild Database [EN/DE] (System Status)
ESO-Skillfactory.com | ESO Build planer [EN/DE/FR]
ESO-LFG.com | The ESO Looking for Group Tool [EN/DE/FR]
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Get Male/Female names of skill lines

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