void main() { object oTarget; object oSpawn; // Get the PC who is in this conversation. object oPC = GetPCSpeaker(); // Set the variables SetLocalInt(GetPCSpeaker(), "generalskith2vg1", 1); // Spawn "generalskith2". oTarget = GetWaypointByTag("WP_Gnl_kersdoor"); oSpawn = CreateObject(OBJECT_TYPE_CREATURE, "generalskith2", GetLocation(oTarget)); }