Get Equipment Status Effects

Signature

getEquipmentStatusEffects(character)

Description

Gets status effects of a character's weapon or off-hand if its an arrow, bolt, shot or bomb, unless any of them is invalid in which case return 0.

The returned value is a 32 bit field where as each bit represents a status effect identifier.

For example, if the status effects Sleep (4), Blind (7), and Berserk (27) were selected, the returned value would be 2^4 + 2^7 + 2^27 = 134217872.

Arguments

Character

A metatable of the battle unit keep structure of a character.

Notes

For a list of status effect identifiers, you can view the battlepack spreadsheet in Resources.

Last updated