//Generated by BehavEd

rem ( "Activate Medium Difficulty Duel Laser." );
rem ( "Activate Duel Laser #1 and make it follow a random path" );

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


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


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


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

wait ( 6000.000 );
use ( "duellaser_barrier" );

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


affect ( "duel_laser", /*@AFFECT_TYPE*/ FLUSH )
{
	flush (  );

	loop ( -1 )
	{
		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag1_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag1_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag1_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag1_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag1_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag1_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag2_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag2_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag2_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag2_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag2_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag2_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag3_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag3_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag3_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag3_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag3_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag3_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag4_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag4_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag4_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag4_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag4_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag4_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag5_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag5_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag5_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag5_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag5_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag5_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag6_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag6_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag6_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag6_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag6_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag6_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag5_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag5_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag5_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag5_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag5_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag5_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag4_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag4_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag4_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag4_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag4_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag4_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag3_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag3_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag3_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag3_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag3_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag3_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

		set ( /*@SET_TYPES*/ "SET_PARM5", $random( 0, 3 )$ );

		if ( $get( FLOAT, "SET_PARM5")$, $<$, $1$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag2_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag2_bottom", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		if ( $get( FLOAT, "SET_PARM5")$, $>$, $2$ )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag2_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag2_top", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}


		else (  )
		{

			affect ( "duel_laser_hurt", /*@AFFECT_TYPE*/ INSERT )
			{
				move ( $tag( "duellasertag2_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			}

			move ( $tag( "duellasertag2_middle", ORIGIN)$, < 0.000 0.000 0.000 >, 1000.000 );
			wait ( 1000.000 );
		}

	}

}

