//Generated by BehavEd

rem ( "Bacta Tank 1 Healine Routine" );

if ( $get( FLOAT, "SET_PARM3")$, $>$, $99$ )
{
	set ( /*@SET_TYPES*/ "SET_PARM3", "-100" );

	affect ( "bacta1_trigger", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
	}

	use ( "bacta1_useable" );
	wait ( 2000.000 );
	use ( "bacta1" );
	wait ( 6000.000 );

	affect ( "bacta1_heal", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
	}

	use ( "bacta1_water" );
	use ( "bacta1_speaker" );
	wait ( 10000.000 );
	wait ( 5000.000 );
	use ( "bacta1_water" );

	affect ( "bacta1_heal", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "true" );
	}

	wait ( 10000.000 );
	use ( "bacta1_speaker" );
	use ( "bacta1" );
	wait ( 6000.000 );
	use ( "bacta1_useable" );

	affect ( "bacta1_trigger", /*@AFFECT_TYPE*/ FLUSH )
	{
		set ( /*@SET_TYPES*/ "SET_INACTIVE", /*@BOOL_TYPES*/ "false" );
	}

}


else (  )
{
	sound ( /*@CHANNELS*/ CHAN_VOICE, "sound/interface/ammocon_empty.mp3" );
	use ( "bactadeny" );
}

