Help Defend System
From FiranMUX
DEFEND SYSTEM (COMBAT)
The Defense system lets one character protect another from getting engaged and attacked. Any attempt to meet a defended character in melee will likely result in you being engaged in combat with their defender (or the defender's defender, till the head is reached) instead.
Commands:
- defend <person> defends them from melee attacks
- undefend <person> stops defending them
The system allows armies to set up 'lines' with swordsmen up front, spearmen behind them (defended by the swordsmen), followed by reserves and archers and generals in the back. Anyone attempting to kill a well-defended archer or general will end up engaged in combat with a swordsman instead.
Of course, once someone is unable to fight (dead, unconscious, OOC, disconnected, asleep), they can no longer defend.
For now, defense will be absolute. If you want to fight the guy I am defending (or anyone they're defending), you must fight me first.
Ideas for Future Enhancements:
- You can defend more than one person, but the code rolls to see who you are
- defending when someone tries to attack any of your defended people. For
- example, you type 'defend Bob Charlie Deb'. I try to kill Bob. The game
- picks one of your defended at random (equal chance for each). If it picks
- Bob then I end up engaged to you. If it picks Charlie or Deb, then I end up
- engaged to Bob (I failed to defend him).
- Defense isn't automatic. When you try to kill someone who is defended, the
- game makes a quick roll to see if you can get past the defender. If
- successful, then you fight who you wanted to fight; if not, you fight the
- defender.
