Skip to content

rq.OrderUnit ​

since 2.37.0

One unit of a fight, as rq.battle.on_order lists it.

Fields ​

NameTypeDescription
iicintegerThe unit's roster slot: an ally's, 1 to 5 for an enemy, 10 for the familiar.
side"ally"|"enemy"|"familiar"Its side.
rankintegerIts rank, 1 to 5; 0 for the familiar.
spdintegerThe speed the game reads for the turn list (in on_order, after the earlier callbacks' ctx:speed).
outbooleantrue when the game gives it no turns now: down, or an ally with no skill use left.
owner (optional)integerThe familiar's owner, an ally's roster slot.
item (optional)integerThe familiar's item instance; nil when it cannot be found.
own_spd (optional)integerThe familiar's speed as built, before the game holds it to the party's top speed.

Used by ​

rq.BattleOrderAfterCtx, rq.BattleOrderCtx