Skip to content

rq.TrapCtx ​

What an rq.dungeon.on_trap callback gets.

Fields ​

NameTypeDescription
xintegerThe trap's cell, east.
zintegerThe trap's cell, north.
kind"shroom"|"shock"|"alarm"|"pit"Writable. The kind the game drew.
chanceintegerWritable. The chance to avoid it, 0 to 100: the game's 20, 50 with a ranger (class 6) in the party, 100 while a member's Trap Evasion (skill 266) rank is above the traps they disarmed, 0 on quest 190.
who (optional)integerThe roster slot (iic) of the member who tries; nil for none.
cancelbooleanWritable. true removes the trap with no scene.

Used by ​

rq.dungeon.on_trap