Skip to content

rq.CapCtx ​

since 2.46.0

What rq.combat.on_cap gets for one hit.

Fields ​

NameTypeDescription
attackerintegerThe attacker's roster slot.
defenderintegerThe defender's roster slot.
skillintegerThe skill number.
magicbooleantrue for a spell (action kind 2), false for a physical hit.
baseintegerThe skill's own limit (ダメージ上限), in damage points; 0 for none.
damage_maxintegerThe percent Damage Maximum (289) adds to it, by the attacker's rank in it; 0 without it or with no limit.
limitintegerThe limit the hit is held to, in damage points: base raised by damage_max as the game raises it, then what the callback before left. 0 for none.
forecastbooleantrue when the game only works out the battle forecast, not a real hit.

Used by ​

rq.combat.on_cap