/*   Script generated by
Lilac Soul's NWN Script Generator, v. 1.6

For download info, please visit:
http://www.lilacsoul.revility.com    */

//Can go OnDamaged, OnDisturbed, OnSpellCastAt, creature heartbeats, etc.
  #include "nw_i0_generic"
void main()
{

object oPC = GetLastHostileActor();

if (!GetIsPC(oPC)) return;

int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));

if (DoOnce==TRUE) return;

SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);

AssignCommand(GetObjectByTag("GKUOTOANGUARD"), ActionSpeakString("BLASPHEMERS! DESECRATERS OF THE HOLY MOTHER! ENEMIES!"));

object oTarget;
oTarget = GetObjectByTag("al_pl_x2wardrum1");

SoundObjectSetPosition(oTarget, GetPosition(oPC));

SoundObjectSetVolume(oTarget, 54);
 object oTargetb;

AdjustReputation(oPC, oTargetb, -100);

oTargetb = GetObjectByTag("GKUOTOANGUARD");

SetIsTemporaryEnemy(oPC, oTargetb);

AssignCommand(oTargetb, ActionAttack(oPC));

AssignCommand(oTargetb, DetermineCombatRound(oPC));
}

