MOB_DAMAGE
Keywords:
MOB_DAMAGE
Syntax:
MOB DAMAGE [victim|'all'] [min] [max] ethal}
This command causes unconditional damage to the victim. Specifying
"all" as victim causes damage to all characters in the room except the mobile. Min and max parameters define the minimum and maximum amounts of damage caused, remember that this damage is like a damage of a weapon, all ACs and affects of the victim will be taken in account and the damage that the victim will sufer will be lower than that used on the mob damage
command. By default, the damage is non-lethal, but by supplying the optional
'lethal' parameter, the damage can kill the victim.
This command is silent, you must echo all messages yourself in the
program. Useful for implementing special attacks for mobiles.
Examples:
MOB DAMAGE $n 10 100 lethal
The mobile will causes from 10 to 100 damage to the player who has activated the program, remember that the player will be protected with armor and magic, so the damage he will sufer will be lower, but this damage will be able to kill him.
MOB DAMAGE all 100 1000
The mobile will causes from 100 to 1000 damage to all the players inside the room, remember that the player will be protected with armor and magic, so the damage they will sufer will be lower, and the damage will not be able to kill them, once their hp reaches 3, they will not sufer further damage.
See Also
Mobhelp
Ifhelp
If Checks
Variables
Mob Asound
Mob Echo
Mob Oload
Mob Kill
Mob Flee
Mob Remove
Mob Junk
Mob Purge
Mob At
Mob Goto
Mob Transfer
Mob Force
Mob Cast
Mob Damage
Mob Delay
Mob Cancel
Mob Remember
Mob Forget
Mob Call
Mob Tgive
Mobprogram List
Mobile Programs
Triggers
Operators
Mpsyntax
Mp Building
Mpexamples
Mprog Character Variables
Mpcommands
Checkmoblog
Medit
Vnum
Trigger Hpcnt
Wimpy
Spells