en:rpd:traps
Table of Contents
Traps
Traps are hidden dangers found throughout the dungeon that activate when stepped on or triggered by other means. They can cause various negative effects to the player and monsters.
Types of Traps
- Fire Trap - Creates a patch of fire
- Poison Trap - Releases poison gas
- Paralytic Gas Trap - Creates paralytic gas
- Alarm Trap - Wakes and alerts all mobs on the level
- Summoning Trap - Summons monsters
- Teleportation Trap - Teleports the character randomly
- Pitfall Trap - Creates a pit where a character falls
- Flashing Trap - Blinds and damages character
- Grinding Trap - Deals heavy damage to character
- Warding Trap - Creates magical barriers
- Confusion Gas Trap - Releases confusion gas
- Ice Trap - Creates ice that chills characters
- Rockfall Trap - Causes rocks to fall on the area
- Web Trap - Covers character in webs, reducing movement
- Dart Trap - Shoots a dart at the character
- Dart Sniper Trap - Shoots a dart from a distance
- Gas Trap - General category for gas-based traps
Trap Mechanics
- Most traps activate when a character steps on the tile
- Some traps have special activation conditions
- Traps can be detected using Ring of Detection or similar items
- Some characters have class-specific abilities to detect or avoid traps
- Traps can be disarmed using lockpicking or similar skills
- Newer versions of the game often have more complex trap mechanics
Trap Avoidance
- Use detection items like Ring of Detection
- Use Scroll of Magic Mapping to reveal all traps in the level
- Move carefully and check tiles before stepping
- Use thrown items to trigger distant traps
- Some armor classes provide trap resistance
- Some classes have special trap avoidance abilities
Code References
- Java implementation: Trap.java
- Trap definitions: Trap.java trap classes array - The list of all trap classes available in the game
- Trap activation mechanics: Trap.java activate method - How traps are triggered and affect characters
- Individual trap implementations: levels/traps/ directory - Each specific trap type implementation
- Trap trigger conditions: Trap.java stepOn and bump methods - How different types of entities can trigger traps
- Trap properties: Trap.java fields - Defines properties like kind, uses, targetCell, activatedByItem, activatedByMob, secret, etc.
- Trap configuration: Trap.java setupFromJson method - How traps are initialized from level object configuration
- Trap discovery: Trap.java discover method - How traps are revealed to the player
- Trap script support: Trap.java ScriptTrap implementation - How script-based traps are handled
- String resources: Trap-related strings
- Machine-readable data: mr:traps
See Also
- Mechanics - Other game systems
- Items - Items that interact with traps
- Level Objects - Other objects found on dungeon levels
- Trap Mechanic - Detailed trap mechanics
- Trap Detection - How to detect traps
- Trap Disarming - How to safely disarm traps
- Trap Resistance - Equipment that provides trap resistance
- Ring of Detection - Item for trap detection
- Scroll of Magic Mapping - Reveals all traps on a level
en/rpd/traps.txt · Last modified: by 127.0.0.1

