PWE_PRC8/_module/nss/gobsattack.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

53 lines
1.3 KiB
Plaintext

#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));
}
}