Script::GetParryChance
function · ui · orchestration
- Address
0x516fc0· 82 bytes, up to0x517011- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the parry chance of the player
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/unitverbs#player-numbers
Finding: Player numbers in ui: time, console and the remaining unit functions
GetDodgeChance(), GetBlockChance() and GetParryChance() return the float of the player field block at +0xe5c, +0xe58 and +0xe60, 0 without a
player. UnitXP(unit) and UnitXPMax(unit) return the active player's experience (+0x840) and the experience needed (+0x844); a unit that is not a player, or not
the active one, gives 0. UnitCharacterPoints(unit) returns the two counters at +0xe48 and +0xe4c for the active player and 0, 0 otherwise. GetMoney() returns the coinage (+0xf70)
and UnitOnTaxi(unit) 1 when bit 20 of the unit flags is set. HasFullControl() returns 1 for a player with bit 0 of the dword at +0x1c70 clear and health (the unit field at +0x40) above 0, else nil.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.