benilla-re systems structs docs

Script::GetRestState

function · ui · orchestration

Address
0x48d350 · 155 bytes, up to 0x48d3ea
Signature
int __fastcall (lua_State *L)
Meaning
Returns the rest state's row id, localized name and factor, or three nils
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/rested#rest-state

Finding: Rest state in ui: rested experience functions

GetRestState() returns three values for the rest state byte of the active player (byte 3 of PLAYER_BYTES_2, at +0x1b of the player block): the row id, the row's name for the client locale and the row's factor. The byte indexes the table directly, as a row id. A byte above the highest id, a byte with no row, or an absent player returns three nils. A null name pointer returns nil in its place.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 5

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