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

33 lines
1.0 KiB
Plaintext

void main()
{
object oActor;
object oTarget;
object oSpawn;
// Get the PC who is in this conversation.
object oPC = GetPCSpeaker();
// Destroy an object (not fully effective until this script ends).
DestroyObject(GetObjectByTag("lankhraft"));
// Spawn "youngscrag".
oTarget = GetWaypointByTag("WP_SPn_YoungScrag2");
oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "youngscrag", GetLocation(oTarget));
// Spawn "driftwood3".
oTarget = GetWaypointByTag("WP_SPn_YoungScrag");
oSpawn = CreateObject(OBJECT_TYPE_PLACEABLE, "driftwood3", GetLocation(oTarget));
// Have "Scragmm" say something.
AssignCommand(GetObjectByTag("Scragmmx"), SpeakString("Get the intuders, brothers!"));
// Have "Scragmm" perform a sequence of actions.
oActor = GetObjectByTag("Scragmmx");
AssignCommand(oActor, ActionMoveToObject(GetNearestObjectByTag("WP_ScragLair")));
// Destroy an object (not fully effective until this script ends).
DelayCommand(3.0, DestroyObject(GetObjectByTag("Scragmmx")));
}