benilla-re systems structs docs

Script::GetQuestGreenRange

function · ui · primitive

Address
0x4e17d0 · 137 bytes, up to 0x4e1858
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the gray-range gap for the active player's level, 0 with no player
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/unitlevels#the-gray-range

Finding: The gray range in ui: unit levels and the gray range

GetQuestGreenRange() pushes gap[min(level / 5, 19)] for the active player's level, or 0 with no player. gap is the table 0x8076c0 of 20 dwords: 4, 4, 5, 5, 6, 6, 7, 7, 8, 9, 10, 11, then 12 for the last eight. The index saturates at 19, so a level of 100 and above reads 12.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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