HiddenTradition_PRC8/_module/nss/ayla_village_ohb.nss
2024-06-20 15:47:42 -04:00

20 lines
665 B
Plaintext

//If pc has told one
//of the villagers that they can attack, then this script will cause all of
//the villagers convinced to run to a point where they will be spotted by the reavers.
void main()
{
object o_ayla = GetObjectByTag("Ayla");
int i_convinced = GetLocalInt(OBJECT_SELF, "convinced");
int i_attack = GetLocalInt(o_ayla, "attacktime");
int i_deathtime = GetLocalInt(o_ayla, "resetcountdown");
object o_attackpoint = GetObjectByTag("wpayla_attackpoint");
if(i_convinced == 1 && i_attack == 1)
{
AssignCommand(OBJECT_SELF, ActionForceMoveToObject(o_attackpoint, TRUE, 2.0));
}
if(i_deathtime > 1200)
{
DestroyObject(OBJECT_SELF);
}
}