Get Action Status Effects

Signature

getActionStatusEffects(actionId)

Description

Gets an action's status effects.

If Action -> 2. Flags -> Use One Status Effect Only is set to 1, return one randomly selected status effect of the action, unless it has none in which case return 0. Otherwise, return all status effects of the action.

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

Action

The identifier of an action.

Notes

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

Last updated