benilla-re systems structs docs

ReevaluateTrainerStates

function · ui · primitive

Address
0x4d7d40 · 1733 bytes, up to 0x4d8404
Signature
void __cdecl ()
Meaning
Works every service row's state out again from the player, then recounts the groups and finalizes
Confidence
verified, proof one
Finding
ui/trainerlist#state

Finding: State in ui: trainer states, filters and order

When the window is open 0x4d7d40 works each row's state out again, replacing the server's. A row whose spell id is -1, negative, above the highest or without a record keeps the sent state. Otherwise the state starts at 0 and each effect of the sent spell, in order, may overwrite it. A learn effect (0x24) counts the taught spell and whether it or a higher rank is known. A skill-step effect (0x2c) gives 2 when the player's step in that line reaches the effect's value. A pet-learn effect (0x39) gives 1, and stops, with no pet or a pet below the row's level. When every learn effect is known the state is 2.

The derivation is in the doc.

Callers 11

Callees 8

Calls and jumps by a bare address, from tables/calls.tsv.