#include "nw_i0_generic" object oSpawn; object oTarget; /* Script generated by Lilac Soul's NWN Script Generator, v. 1.2 For download info, please visit: http://www.angelfire.com/space/lilacsoul */ //Put this OnEnter void main() { object oPC = GetEnteringObject(); if (!GetIsPC(oPC)) return; int nInt; nInt = GetTimeHour(); if (nInt >= 3 && nInt <= 6) { oTarget = GetWaypointByTag("goblinattack1"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "goblinranger", GetLocation(oTarget)); oTarget = GetWaypointByTag("goblinattack2"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "goblinranger", GetLocation(oTarget)); oTarget = GetWaypointByTag("goblinattack3"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "goblinranger", GetLocation(oTarget)); oTarget = GetWaypointByTag("goblinattack4"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "goblinranger", GetLocation(oTarget)); oTarget = GetWaypointByTag("goblinattack5"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "goblinranger", GetLocation(oTarget)); oTarget = GetWaypointByTag("goblinattack6"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "goblinranger", GetLocation(oTarget)); oTarget = oSpawn; SetIsTemporaryEnemy(oPC, oTarget); AssignCommand(oTarget, ActionAttack(oPC)); AssignCommand(oTarget, DetermineCombatRound(oPC)); } }