Lankhmar_PRC8/_module/nss/cnv_dstry_gn_srt.nss
Jaysyn904 ebc0c6a9b2 Initial commit
Initial commit [v9.7]
2025-04-03 12:54:47 -04:00

61 lines
2.1 KiB
Plaintext

#include "nw_i0_generic"
void main()
{
object oTarget;
object oSpawn;
object oActor;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Have "genrl" perform a sequence of actions.
oActor = GetObjectByTag("GeneralSkith2");
AssignCommand(oActor, ActionMoveToObject(GetNearestObjectByTag("WP_DngrM1")));
// Destroy an object (not fully effective until this script ends).
DelayCommand(3.0, DestroyObject(GetObjectByTag("GeneralSkith2")));
// Spawn some critters.
oTarget = GetWaypointByTag("WP_SPn_DthLr1");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwarrior2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "ratwlb2", GetLocation(oTarget));
AssignCommand(oSpawn, DetermineCombatRound(oPC));
oTarget = GetObjectByTag("wlb9");
DestroyObject(oTarget, 4.0);
}