onFight4.c
grendel-1.0.0a7/progs/examples/onFight4.c · 322 B
From the archive grendel-1.0.0a7.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.name);
}
else
if(x == 4)
{
do("cast 'blindness' " + target.name);
}
}