hornet.c
final_realms_fluffos_v1/lib/d/newbie/human/monsters/hornet.c · 2.3 KB
From the archive final_realms_fluffos_v1.zip
Download the archive « Back to the archive contents
#include "path.h"
inherit "/obj/monster";
void setup()
{
set_name("hornet");
set_short("Mean Hornet");
add_alias("insect");
set_main_plural("hornets");
set_long(" This black and orange insect is as big as your hand "
"it already looks annoyed, and looks quite capable of getting "
"VERY annoyed with the slightest provocation.\n");
set_random_stats(2,5);
set_dex(20);
load_chat(100,
({
1,":Buzzes angrilly.",
1,":Humms.",
}));
load_a_chat(100,
({
1,":Zigs , zags, and attacks!",
}));
set_level(1+random(3));
}
//This is supposed to be code for modifying the unarmed combat
//of various creatures. I am Talon; however, so not even the gods
//know how this will turn out...
#define AN attacker->query_cap_name()
#define DN defender->query_cap_name()
mapping valid_attack () {
int two,three,four,five;
two=random(2);
three=random(3);
four=random(4);
five=random(5);
return ([
"punch" :({ AN+" "+({"bites","stings","scratches",})[three]+" "+DN+" on the "+({"arm","hand","leg","neck","thigh",})[five]+".\n",
"You hit "+DN+".\n",
AN+" "+({"bites","stings","scratches",})[three]+" you on the "+({"arm","hand","leg","neck","thigh",})[five]+".\n"}),
"kick" :({ AN+" "+({"bites","stings","scratches",})[three]+" "+DN+" on the "+({"arm","hand","leg","neck","thigh",})[five]+".\n",
"You hit "+DN+".\n",
AN+" "+({"bites","stings","scratches",})[three]+" you on the "+({"arm","hand","leg","neck","thigh",})[five]+".\n"}),
"knee" :({ AN+" "+({"bites","stings","scratches",})[three]+" "+DN+" on the "+({"arm","hand","leg","neck","thigh",})[five]+".\n",
"You hit "+DN+".\n",
AN+" "+({"bites","stings","scratches",})[three]+" you on the "+({"arm","hand","leg","neck","thigh",})[five]+".\n"}),
"headbutt":({ AN+" "+({"bites","stings","scratches",})[three]+" "+DN+" on the "+({"arm","hand","leg","neck","thigh",})[five]+".\n",
"You hit "+DN+".\n",
AN+" "+({"bites","stings","scratches",})[three]+" you on the "+({"arm","hand","leg","neck","thigh",})[five]+".\n"}),
]);}
//For more information on this code see /w/sojan/combat/unarmed_combat.c