Skip to content

rq.ElementCtx ​

since 2.46.0

What rq.combat.on_element gets for one physical hit.

Fields ​

NameTypeDescription
attackerintegerThe attacker's roster slot.
defenderintegerThe defender's roster slot.
skillintegerThe skill number.
elementintegerThe hit's element (rq.ids.element: 0 none, 1 light, 2 darkness, 3 electric, 4 ice, 5 fire): the game's, then what the callback before left.
weaponintegerThe element of the attacker's weapon; 0 for none.
weaknessintegerThe defender's weak element; 0 for none.
knownbooleanThe player knows the defender's weakness (weakness_known).
guardedbooleanA guard took the hit (FA[77]); the game's arrows then do not take the weakness.
basicbooleanThe skill is a basic attack (基本技 1), as Ranged Attack and Melee Attack are.
forecastbooleantrue when the game only works out the battle forecast, not a real hit.

Used by ​

rq.combat.on_element