ResetCreateCharacter
function · glue · orchestration
- Address
0x470900· 330 bytes, up to0x470a49- Signature
void __cdecl (void)- Meaning
- Builds a random create character with class 1 when a frame is set, then finds its race index and teaches names
- Confidence
- verified, proof one
- Finding
- glue/create#reset-and-selection
Finding: Reset and selection in glue: character create
ResetCharCustomize needs a frame: it calls 0x7130a0(0) on the frame's model, draws a random
record, sets class 1, builds, stores the list index of the character's race (−1 if absent), and
the name generator learns the character's race and sex. Race index i off the list or already
selected does nothing; else i is stored, the record drawn for that race with the character's
sex, class index 0 of the old list selected, the character built, and the generator learns race
i with the character's sex. Sex s of 3 or more, or the character's, does nothing; else it
draws and builds for the character's race, and the generator learns the selected race with s.
The derivation is in the doc.
Callers 1
Callees 4
- DrawCreateRaceAndSex glue
- BuildCreateCharacter glue
- LearnNameGenRows glue
- CM2Model::DetachAt models
Calls and jumps by a bare address, from tables/calls.tsv.