Script::GetSelectedRace
function · glue · primitive
- Address
0x471680· 45 bytes, up to0x4716ac- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the selected race list index plus 1
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- glue/create#query-functions
Finding: Query functions in glue: character create
These read no argument. Strings are the locale's column; a null string pushes nil.
| function | address | returns |
|---|---|---|
GetNameForRace | 0x4713f0 | character's race: name, +0x3c; nil, nil |
GetFactionForRace | 0x471450 | first matching group: name, InternalName; nil, nil |
GetAvailableRaces | 0x471520 | name, +0x3c per listed race |
GetClassesForRace | 0x471560 | name, +0x38 per listed class |
GetHairCustomization | 0x4715d0 | selected race's +0x70, else NORMAL |
GetFacialHairCustomization | 0x471620 | selected race's +0x68 + 4·sex, else NORMAL |
GetSelectedRace | 0x471680 | selected index + 1 |
GetSelectedSex | 0x4716b0 | character's sex + 1 |
GetSelectedClass | 0x4716e0 | class name, +0x38; nil, nil |
GetCharacterCreateFacing | 0x471910 | facing in degrees |
GetRandomName | 0x471980 | a name |
HasCharCustomization | 0x471820 | 1 or nil |
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 1
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.