GetRaceName

From ESOUI Wiki

(Difference between revisions)
Jump to: navigation, search
(Created page with "Given a Gender constant and a race ID, this function returns the name of the race. The gender is needed because some languages have [https://en.wikipedia.org/w...")
m
 
Line 8: Line 8:
== Example ==
== Example ==
 +
<source lang="lua">
d(GetRaceName(GENDER_MALE, 3)) -- "Orc"
d(GetRaceName(GENDER_MALE, 3)) -- "Orc"
</source>
</source>

Latest revision as of 14:59, 4 November 2019

Given a Gender constant and a race ID, this function returns the name of the race. The gender is needed because some languages have grammatical gender.

Arguments

gender
A Gender constant.
race
A number.

Example

d(GetRaceName(GENDER_MALE, 3)) -- "Orc"

External links

Personal tools
Namespaces
Variants
Actions
Menu
Wiki
Toolbox