Flags
General
Flags can be accessed by both their name and index.
For example, if you want to check if the target has the status effect KO, you can do it via the status effect identifier like this:
formula.target.statusEffects[0] == 1or via the status effect name like this:
formula.target.statusEffects.ko == 1or this:
formula.target.statusEffects["ko"] == 1Notes
All entries in a metatable (list, flags, ...) start with 0, not 1. This is intended as that way the table key (e.g. 0 -> KO) is identical to the identifier used by the game.
Last updated