Skip to content

rq.CounterCtx ​

since 2.37.0

What rq.combat.on_counter gets after a hit.

Fields ​

NameTypeDescription
attackerintegerThe attacker's roster slot: who the counter would hit.
defenderintegerThe roster slot of the character that was hit: who would counter.
skillintegerThe skill of the hit.
rateintegerThe counter chance about to be rolled, 0 to 100: the game's, then what the callback before left. 0 without the Counter skill, or when blocked.
baseintegerThe chance of the Counter skill (259) the defender learned, before the game's blocks; 0 without it.
damageintegerThe damage of the hit.
guardedbooleanAlly Guard took the hit for the one it was aimed at (FA[77]).
blocked (optional)"familiar"|"area"|"stunned"|"guard"Why the game does not counter: the familiar's attack, a skill on more than one target, a stunned defender, a hit Ally Guard took (unless rq.counter.on_guard_counter lets it through). nil otherwise.
counterbooleanThe hit is itself a counter.

Used by ​

rq.combat.on_counter