en:rpd:backstab_spell
Table of Contents
Backstab
Description
Silent hit in the back. Dishonest, but extremely effective, backstab damage will grow with performer skill level.
Successful backstab will completely ignore victim armor or special defense abilities. The spell only works if the target enemy is distracted (PASSIVE, SLEEPING, FLEEING, HORRIFIED, RUNNINGAMOK) or paralyzed. It requires the target to be within 1 tile distance from the caster.
Stats
- Magic Affinity: Rogue
- Targeting: self (automatically targets nearest enemy within 1 tile)
- Level: 2
- Mana Cost: 2
- Cast Time: 1 turn
- Special Effects: deals damage with backstab visual effect
- Damage Formula: sqrt(caster's skill level) * (main weapon damage roll + secondary weapon damage roll)
- Conditions: Only works on distracted enemies (PASSIVE, SLEEPING, FLEEING, HORRIFIED, RUNNINGAMOK) or paralyzed targets
- Range: 1 tile distance from caster
Usage
The Backstab spell can be used for:
- Offensive applications against distracted or paralyzed enemies
- Strategic applications when enemy is not aware of the hero
- High-damage strikes when conditions are favorable
Classes
- Rogue class - Primary user of this spell
Strategy
How to effectively use the Backstab spell:
- Best used when enemy is in a distracted state or paralyzed
- Works with both main hand and off-hand (shield) weapons for damage calculation
- Damage scales with your skill level (specifically sqrt(skill level) multiplier)
- Guaranteed to work only on enemies that cannot respond immediately
- Ignores enemy armor completely when successful
- Requires the target to be within 1 tile distance
- Will fail if the caster has no weapons equipped (nil reference error on damage roll)
Code Implementation
Based on the Lua implementation:
- The spell checks if the nearest enemy is within 1 tile distance
- If the enemy is distracted OR paralyzed, the backstab succeeds
- Damage is calculated using both the main weapon and secondary weapon (shield) damage rolls
- After successful backstab, a visual status effect (“backstab”) is shown to the victim
- A sound effect (Wound) is played after the attack
Source Code
This spell is implemented as a Lua script:
- spell.lua - Spell library implementation
String Resources
Russian String Resources
See Also
- Spells - Other magical abilities
- Game Mechanics - Core game systems
- Rogue Affinity - Rogue class abilities and mechanics
- Melee Weapons - Information about weapons used in backstab
- Ranged Weapons - Alternative weapon options
- Status Effects - Other game status effects
en/rpd/backstab_spell.txt · Last modified: by 127.0.0.1
