onfight4.c
progs/examples/onfight4.c · 324 B
From the archive grendel-bin-0.4.4.zip
Download the archive « Back to the archive contents
require "glib.c"
void onFight(external ch, external target)
{
int x;
x = random(6);
if(x == 3)
{
do("cast summon 'orcish daemon'");
}
else
if(x == 2)
{
do("cast 'magic missile' " + target.pname);
}
else
if(x == 4)
{
do("cast 'blindness' " + target.pname);
}
}