From the NannyMUD documentation
2001-08-12
NAME
attack_hook -AVAILABILITY
/obj/living_functionsDESCRIPTION
This function attack_hook is called whenever a normal attack in the monster is performed. With block_attack_hook you have the option to block the attack that the monster tries to do, making it wait to next round to try again. To block an attack, block_attack_hook should return 1. value_attack_hook should return an integer that is added to the wc of the attack. ARGUMENTS For attack_hook: For block_attack_hook: ({ The monster/player you try to attack. The damage type of the attack. }) The monster doing the attack. For value_attack_hook: ({ The weapon class. The extra 'hit' if any, otherwise 0. The weapon if any, otherwise 0. The damage type of the attack. }) The monster doing the attack.SEE ALSO
block_attack_hook in hooks/block_attack_hookSEE ALSO
value_attack_hook in hooks/value_attack_hookSEE ALSO
hit_player_hook in hooks/hit_player_hookSEE ALSO
die_hook in hooks/die_hook die_hook in std/line/line_control die_hook in std/misc/kill_logger die_hook in std/misc/loggerSEE ALSO
kill_hook in hooks/kill_hook kill_hook in std/line/line_control kill_hook in std/misc/loggerSEE ALSO
value_choose_target_hook in hooks/value_choose_target_hook