//Generated by BehavEd

rem ( "Atlantica Code Main Sequence Script" );
set ( "PasswordCorrect", "0" );

if ( $get( FLOAT, "button1_code")$, $=$, $5$ )
{

	if ( $get( FLOAT, "button2_code")$, $=$, $5$ )
	{

		if ( $get( FLOAT, "button3_code")$, $=$, $7$ )
		{

			if ( $get( FLOAT, "button4_code")$, $=$, $7$ )
			{

				if ( $get( FLOAT, "button5_code")$, $=$, $5$ )
				{

					if ( $get( FLOAT, "button6_code")$, $=$, $2$ )
					{
						set ( "PasswordCorrect", "1" );
					}

				}

			}

		}

	}

}


if ( $get( FLOAT, "PasswordCorrect")$, $=$, $1$ )
{

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


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


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


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


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


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


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

	sound ( /*@CHANNELS*/ CHAN_AUTO, "sound/movers/switches/button_12.mp3" );
	use ( "atlantica_codelift" );
	use ( "atlantica_codelift_button" );
	wait ( 8000.000 );
	use ( "button1_code_useable" );
	use ( "button2_code_useable" );
	use ( "button3_code_useable" );
	use ( "button4_code_useable" );
	use ( "button5_code_useable" );
	use ( "button6_code_useable" );
	wait ( 100.000 );
	use ( "button1_code_useable" );
	use ( "button2_code_useable" );
	use ( "button3_code_useable" );
	use ( "button4_code_useable" );
	use ( "button5_code_useable" );
	use ( "button6_code_useable" );
	wait ( 100.000 );
	use ( "button1_code_useable" );
	use ( "button2_code_useable" );
	use ( "button3_code_useable" );
	use ( "button4_code_useable" );
	use ( "button5_code_useable" );
	use ( "button6_code_useable" );
	wait ( 100.000 );
	use ( "button1_code_useable" );
	use ( "button2_code_useable" );
	use ( "button3_code_useable" );
	use ( "button4_code_useable" );
	use ( "button5_code_useable" );
	wait ( 100.000 );
	use ( "button1_code_useable" );
	use ( "button2_code_useable" );
	use ( "button3_code_useable" );
	use ( "button4_code_useable" );
	use ( "button5_code_useable" );
	wait ( 100.000 );
	use ( "button1_code_useable" );
	use ( "button2_code_useable" );
	use ( "button3_code_useable" );
	use ( "button4_code_useable" );
	use ( "button5_code_useable" );
	wait ( 100.000 );
	use ( "button3_code_useable" );
	use ( "button4_code_useable" );
	wait ( 100.000 );
	use ( "button3_code_useable" );
	use ( "button4_code_useable" );
	wait ( 100.000 );
	use ( "atlantica_codelift_button" );

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


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


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


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


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


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


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

}


else (  )
{
	sound ( /*@CHANNELS*/ CHAN_AUTO, "sound/interface/shieldcon_empty.mp3" );
}

