Skip to content

rq.BattleOrderCtx ​

since 2.37.0

What rq.battle.on_order gets before the game builds the turn list.

Fields ​

NameTypeDescription
rebuildbooleanfalse at the fight's start, true when the game builds the list again after a switch, a shuffle (skill 530) or a revive.
unitsrq.OrderUnit []Every unit in the fight: the allies by rank, the enemies by rank, then the familiar.

Functions ​

NameSummary
rq.BattleOrderCtx:speedSets one unit's speed for this build of the turn list only.

rq.BattleOrderCtx:speed ​

lua
rq.BattleOrderCtx:speed(iic, n)

since 2.37.0

Sets one unit's speed for this build of the turn list only.

The game reads it in place of the unit's own; the own speed comes back right after the build, so the status screens and the next build show it. The game counts a speed of 0 as 1.

Raises an error for a unit not in the fight or a speed that is not whole, 0 to 9999.

ParameterTypeDescription
iicintegerThe unit's roster slot, from ctx.units.
nintegerThe speed, 0 to 9999.

Used by ​

rq.battle.on_order