//:://///////////////////////// //////////////////// //:: Name: Random Spawn //:: FileName: LOK_RandomSpawn //:: Copyright (c) 2001 Bioware Corp. //:://////////////////////// ////////////////////// /* Place in the on_spawn of an NPC called Goblin1 Place six waypoints called WP_Goblin_Spawn_x where x = 1 through 6 */ //::///////////////////// ///////////////////////// //:: Created By: Dennis Dollins //:: Created On: 06/20/2002 //:: Website: www.landsofkray.com //::///////////////////// ///////////////////////// void main() { // Get a random six sided die int nRandomNumber = d6(1); // Build the waypoint tag string sWaypoint = "WP_Goblin_Spawn_" + IntToString(nRandomNumber); //Get the object location object oWaypoint = GetObjectByTag(sWaypoint); // Jump the gobbo to where he needs to be // after we figure out who he is object oGoblin= GetObjectByTag("Goblin1"); AssignCommand(oGoblin, JumpToObject(oWaypoint)); }