Thread Tools Display Modes
02/01/16, 11:15 AM   #1
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
GetRaceName with ids

Like there is the chance to get the strings for alliances and classes from IDs

example
Lua Code:
  1. GetString(SI_ALLIANCE1/2/3)
  2. or
  3. GetClassName(genderId, classId)

i need to know if there is something even for the races like GetRaceName with genderId and RaceId. If not, do you know some alternatives?
  Reply With Quote
02/01/16, 12:54 PM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
There is no explicit way to get the race name, but you could use GetString("SI_ITEMSTYLE", raceId) as it happens to match the order of races.
Or make your own lookup table from the information in this old thread.
  Reply With Quote
02/01/16, 01:44 PM   #3
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Originally Posted by sirinsidiator View Post
There is no explicit way to get the race name, but you could use GetString("SI_ITEMSTYLE", raceId) as it happens to match the order of races.
Or make your own lookup table from the information in this old thread.
That was not exactly what i was looking foor, cause instead of "High Elf", the system would print "Altmer", and it's not a good solution... the alternative as you said is to build a list... but i do not want to do that because i'd like for everyone to have their specific translation (even with unsupported languages)...
I hope that Zenimax does something about like they did for "GetUnitRaceId(unitTag)" when it was requested...
  Reply With Quote
02/01/16, 01:46 PM   #4
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,578
Then you will have to put it on the wishlist and wait until it becomes part of the game.
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » GetRaceName with ids


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