benilla-re systems structs docs

Script::IsUnitOnQuest

function · ui · primitive

Address
0x4dfe10 · 267 bytes, up to 0x4dff1a
Signature
int __fastcall (lua_State *L)
Meaning
Pushes 1 when the player or a party member holds the quest at a list row, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/questshare#isunitonquest

Finding: IsUnitOnQuest in ui: sharing a quest with the party

IsUnitOnQuest(index, unit) takes a 1-based quest list row (a number) and a unit token (a string or number; either type failing raises Usage: IsUnitOnQuest(index, "unit")) and returns the number 1 or nil. It is 1 only when the row is a quest, the unit is the player or one of the four party members, the unit's object is present as a player and not released, and the quest id is in one of the unit's 20 quest slots. Otherwise nil.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 13

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