61 lines
2.1 KiB
Plaintext
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);
|
|
}
|
|
|