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