#include "x0_i0_partywide" void main() { object oTarget; object oSpawn; object oActor; // Get the PC who is in this conversation. object oPC = GetPCSpeaker(); SetLocalString(oPC, "hertowe1", "1"); // Give 5 experience (to party) to the PC. GiveXPToAll(oPC, 5); // Spawn "hertowe2". oTarget = GetWaypointByTag("WP_SPn_hertowe2"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "hertowe2", GetLocation(oTarget)); // Have "Hertowe" perform a sequence of actions. oActor = GetObjectByTag("Hertowe"); AssignCommand(oActor, ActionMoveToObject(GetNearestObjectByTag("WP_Hertowe"))); // Destroy an object (not fully effective until this script ends). DelayCommand(4.0, DestroyObject(oActor)); }