Thanks and scripting
Thanks again guys for your scripting help, now here's the twist,I have these guards who stand there watching a Dink player beat & kill townsfolk. So i'm trying to get them to attack. this is added to townsfolk script:
void hit (void)
{
&evil += 1;//&evil int.ed in start
int &bad = 1;//the guards will read &bad and atak
say_stop("'4Help! somebody help!",¤t_sprite);
}//the rest work ok.
now this is added to the guards script;
void hit (void)
{
int &bad = 1;
say_stop("'4Thug! suffer our justice!",¤t_sprite);
}
if (&evil > 10) &bad = 1;
if (&bad == 1)
sp_target(¤t_sprite,1);
}//then the rest works ok,
when hit the guard calls me a thug ok, but doesn't attack. He still ignores me when i attack
townsfolk.I'm guessing that part of the guards script doesn't get reviewed, has anyone out there
done this?,thanks......................Ric
void hit (void)
{
&evil += 1;//&evil int.ed in start
int &bad = 1;//the guards will read &bad and atak
say_stop("'4Help! somebody help!",¤t_sprite);
}//the rest work ok.
now this is added to the guards script;
void hit (void)
{
int &bad = 1;
say_stop("'4Thug! suffer our justice!",¤t_sprite);
}
if (&evil > 10) &bad = 1;
if (&bad == 1)
sp_target(¤t_sprite,1);
}//then the rest works ok,
when hit the guard calls me a thug ok, but doesn't attack. He still ignores me when i attack
townsfolk.I'm guessing that part of the guards script doesn't get reviewed, has anyone out there
done this?,thanks......................Ric