ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Lua/XML Help (https://www.esoui.com/forums/forumdisplay.php?f=175)
-   -   Get Male/Female names of skill lines (https://www.esoui.com/forums/showthread.php?t=8913)

Keldor 01/16/20 07:12 AM

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:
Quote:

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

Baertram 01/16/20 07:38 AM

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.

Keldor 01/16/20 10:03 AM

Quote:

Originally Posted by Baertram (Post 40032)
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


All times are GMT -6. The time now is 04:31 PM.

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