onFight3.c
grendel-1.0.0a7/progs/examples/onFight3.c · 248 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(100);
if(x =< 75)
{
do("throw " + target.Pname);
if(x =< 60)
{
do("disarm " + target.Pname);
}
}
}