/** * Copyright (c) ©2000,2001 Sony Online Entertainment Inc. * All Rights Reserved * * Title: captor.script * Description: script for captors: POI = prisonbreak * @author $Author: breinhart $ * @version $Revision: #1 $ */ //------------------------------------------------ // Includes //------------------------------------------------ include library.poi; include library.scenario; include library.ai_lib; include ai.ai_combat; //------------------------------------------------ // Constants //------------------------------------------------ const string captorEmotes[] = { "scratch", "yawn", "fidget", "cough" }; //------------------------------------------------ // Methods //------------------------------------------------ //------------------------------------------------ // OnAttach //------------------------------------------------ trigger OnAttach() { //ai_lib.setIgnoreCombat( self, true ); return SCRIPT_CONTINUE; } //------------------------------------------------ // OnTargeted // // If we are attacked by a player, enable mediator combat. //------------------------------------------------ /* // BUGGED: need to figure out why they run away instead of engaging. trigger OnTargeted( obj_id attacker ) { if ( (attacker == null) || (attacker == obj_id.NULL_ID) ) return SCRIPT_CONTINUE; if ( !isPlayer( attacker ) ) return SCRIPT_CONTINUE; // Get reference to base. obj_id poiMaster = poi.getBaseObject( self ); if ( (poiMaster == null) || (poiMaster == obj_id.NULL_ID) ) return SCRIPT_CONTINUE; // Make all of the mediators see combat. obj_id mediators[] = scenario.getTeamMembers( poiMaster, "mediator" ); if ( mediators == null ) return SCRIPT_CONTINUE; for ( int i=0; i