include library.space_quest; include library.utils; trigger OnAttach() { sendSystemMessageTestingOnly( self, "MISSION TEST SCRIPT ATTACHED" ); return SCRIPT_CONTINUE; } trigger OnSpeaking( string text ) { string[] commands = split( text, ' ' ); if (commands[0].equalsIgnoreCase("namequest")) { obj_id datapad = utils.getPlayerDatapad( self ); if ( isIdValid( datapad ) ) { // Search for a quest in the datapad that has a specific name. obj_id[] dpobjs = getContents( datapad ); for ( int i=0; i