"S2L1_cut_scene_1.sce"
{
	FUNC("set_cut_scene_flag" , 1)	// enter cut scene! 

	INT dialog_recno 

	INT unit_recno 
	INT enemy_recno

	INT jean_recno
	INT joan_recno

	INT pig_recno
	INT roast_pig_infantry_recno
	INT sitting_inf_a_recno
	INT sitting_inf_b_recno
	INT sitting_inf_c_recno
	INT sitting_inf_d_recno
	INT repair_inf_recno
	INT order_repair_inf_recno
	INT roast_pig_recno
	INT spike_recno
	INT team_recno 
	INT entrance_recno
	INT scout_a_recno 
	INT scout_b_recno
	INT scout_a_track_id  

	INT place_recno 

	INT random_number
		
	INT item_id 
	
	INT elinfant_id

	init
	{
		jean_recno = FUNC("search_unit_by_code" , "JEAN") 
		joan_recno = FUNC("get_main_character") 		
		roast_pig_infantry_recno = FUNC("search_unit_by_name" , "DP01")
		sitting_inf_a_recno = FUNC("search_unit_by_name" , "DP02")
		sitting_inf_b_recno = FUNC("search_unit_by_name" , "DP03")
		sitting_inf_c_recno = FUNC("search_unit_by_name" , "DP04")
		sitting_inf_d_recno = FUNC("search_unit_by_name" , "DP05")
		roast_pig_recno = FUNC("search_item_by_name" , "Item 1")
		entrance_recno = FUNC("search_item_by_name", "Camp Entrance")
		repair_inf_recno = FUNC("search_unit_by_name" , "DW01")
		order_repair_inf_recno = FUNC("search_unit_by_name" , "DW02")
		scout_a_recno = FUNC("search_unit_by_name", "DF01")
		scout_b_recno = FUNC("search_unit_by_name", "DF02")

		FUNC("set_unit_can_process_in_cut_scene", joan_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", roast_pig_infantry_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", sitting_inf_a_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", sitting_inf_b_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", sitting_inf_c_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", sitting_inf_d_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", repair_inf_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", order_repair_inf_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", scout_a_recno, 1)
		FUNC("set_unit_can_process_in_cut_scene", scout_b_recno, 1)

		pig_recno = FUNC("search_unit_by_name", "Świnia 1")
		FUNC("set_unit_can_process_in_cut_scene", pig_recno, 1)
		pig_recno = FUNC("search_unit_by_name", "Świnia 2")
		FUNC("set_unit_can_process_in_cut_scene", pig_recno, 1)
		pig_recno = FUNC("search_unit_by_name", "Świnia 3")
		FUNC("set_unit_can_process_in_cut_scene", pig_recno, 1)

		FUNC("set_unit_curr_item" , roast_pig_infantry_recno , 0 , "NULL" , 0)
		FUNC("set_unit_curr_item" , roast_pig_infantry_recno , 0 , "NULL" , 1)
		ACTION("give_task", roast_pig_infantry_recno, "SPECIAL1", 1, roast_pig_recno, 0, 0, 0)

		FUNC("set_unit_curr_item" , sitting_inf_a_recno , 0 , "NULL" , 0)
		FUNC("set_unit_curr_item" , sitting_inf_a_recno , 0 , "NULL" , 1)	
		FUNC("set_unit_curr_item" , sitting_inf_b_recno , 0 , "NULL" , 0)
		FUNC("set_unit_curr_item" , sitting_inf_b_recno , 0 , "NULL" , 1)	
		FUNC("set_unit_curr_item" , sitting_inf_c_recno , 0 , "NULL" , 0)
		FUNC("set_unit_curr_item" , sitting_inf_c_recno , 0 , "NULL" , 1)	
		FUNC("set_unit_curr_item" , sitting_inf_d_recno , 0 , "NULL" , 0)
		FUNC("set_unit_curr_item" , sitting_inf_d_recno , 0 , "NULL" , 1)	
		ACTION("give_task", sitting_inf_a_recno, "SPECIAL2", 1, 0, 0, 0, 0)
		ACTION("give_task", sitting_inf_b_recno, "SPECIAL2", 1, 0, 0, 0, 0)
		ACTION("give_task", sitting_inf_c_recno, "SPECIAL2", 1, 0, 0, 0, 0)
		ACTION("give_task", sitting_inf_d_recno, "SPECIAL2", 1, 0, 0, 0, 0)

		spike_recno = FUNC("add_item", "SPIKE", "NONE")
		FUNC("set_item_pos", spike_recno, 0.0, 0.0, 0.0)
		FUNC("set_unit_curr_item" , repair_inf_recno , spike_recno , "bip01 L Hand" , 0) 
		FUNC("set_unit_curr_item" , repair_inf_recno , 0 , "NULL" , 1)
		ACTION("give_task", repair_inf_recno, "SPECIAL3", 1, spike_recno, 0, 0, 0)

		FUNC("set_unit_curr_item" , order_repair_inf_recno , 0 , "NULL" , 0)
		FUNC("set_unit_curr_item" , order_repair_inf_recno , 0 , "NULL" , 1)
		ACTION("give_task", order_repair_inf_recno, "SPECIAL4", 1, 0, 0, 0, 0)

		scout_a_track_id = FUNC("unit_track_to_id", joan_recno, "ScoutA") 
		ACTION("give_task", scout_a_recno, "SCOUT", 1, scout_a_track_id, 1, 0, 0)
		ACTION("give_task", scout_b_recno, "SCOUT", 1, scout_a_track_id, 1, 0, 0)
	}

//	INIT
//	{
//		// add a test unit near joan
//		unit_recno = FUNC("add_unit", "HUMAN_HORSE1", "FRENCH") 
//		FUNC("set_unit_pos", unit_recno, 8414.0, 6800.0, 224.0)
//		FUNC("set_unit_dir", unit_recno, 73) 
//		FUNC("set_unit_ranking", unit_recno, "INFANTRY")
//
//		// add a test item near joan
//		item_recno = FUNC("add_item", "TORCH01", "NONE")
//		FUNC("set_item_pos", item_recno, 0.0, 0.0, 0.0)
//
//		jean_recno = FUNC("search_unit_by_code" , "JEAN") 
//		joan_recno = FUNC("search_unit_by_code" , "JOAN_OF_ARC") 
//		FUNC("set_unit_curr_item", joan_recno, item_recno, "bip01 R Hand" , 0) 
//
//		FUNC("set_unit_ride_horse", joan_recno, unit_recno) 
//	}
//

	WAIT { FUNC("start_cut_scene_camera", joan_recno, "joan_cut_scene_1", 0, 1.0, 0, 1) }
//	GOTO : 999

//	ID 999 
//	{
		FUNC("set_cut_scene_flag" , 0)	// leave cut scene!
		exit
//	}

	// move joan
//	FUNC("set_unit_can_process_in_cut_scene", joan_recno, 1)
//	FUNC("set_unit_can_process_in_cut_scene", unit_recno, 1)
//	WAIT { ACTION("give_order" , joan_recno, "MOVE_TO_TARGET" , 2 , 0 , 8191, 9004, 224, 0, 600000) } 
//	// talk!!!
//	WAIT { DIALOG("add_dialog", joan_recno, "[0001N]Jean!") }
//	WAIT { DIALOG("add_dialog", jean_recno, "[0001N]Joan! bala....bala....") }
//	WAIT { dialog_recno = DIALOG("add_choice_dialog", joan_recno, "[0003M]You can choose:",
//				"[0004N]Play WW", 1,
//				"[0005N]Play Joan of Arc", 1,
//				"[0006N]Exit", 1) }
//	DIALOG("del_all_dialog") 
	
//	WAIT { ACTION("give_order" , joan_recno, "MOVE_TO_TARGET" , 2 , 0 , 8896, 9088, 231, 0, 600000) } 
//
//	FUNC("set_unit_dir", joan_recno, 270) 
//	FUNC("set_formation_pos", joan_recno, 8896.0, 9088.0, 231.0, 270.0)

//	if( joan_recno ) // set a track for her
//	{
//		FUNC("set_unit_track", joan_recno, "joan_path") 
//		FUNC("set_unit_can_process_in_cut_scene", joan_recno, 1)
//
//	}



//	if( unit_recno )
//	{
//		FUNC("set_unit_can_process_in_cut_scene", unit_recno, 1)
//		WAIT { ACTION("give_order" , unit_recno, "SHOOT" , 2 , 0 , 0, 0 , 0 , 0, 600000) } 
//	}

//	unit_recno_one = FUNC("search_unit_by_name" , "Unit 62")
//	if( unit_recno_one )
//	{
//		FUNC("set_unit_can_process_in_cut_scene", unit_recno_one, 1)
//		WAIT { ACTION("give_order" , unit_recno_one, "MOVE_TO_TARGET" , 2 , 0 , 2452, 8674 , 796 , 0, 600000) } 
//	}

//	unit_recno_two = FUNC("search_unit_by_name" , "Unit 61")
//	if( unit_recno_two )
//	{
//		FUNC("set_unit_can_process_in_cut_scene", unit_recno_two, 1)
//		WAIT { ACTION("give_order" , unit_recno_two, "MOVE_TO_TARGET" , 2 , 0 , 2352, 8674 , 810 , 0, 600000) } 
//	}

//	unit_recno_three = FUNC("search_unit_by_name" , "Unit 74")
//	if( unit_recno_three )
//	{
//		FUNC("set_unit_can_process_in_cut_scene", unit_recno_three, 1)
//		WAIT { ACTION("give_order" , unit_recno_three, "MOVE_TO_TARGET" , 2 , 0 , 2252, 8674 , 796 , 0, 600000) } 
//	}

//	if( unit_recno_one ) //&& unit_recno_two && unit_recno_three )
//	{
//		WAIT
//		{
//			ACTION("give_order" , unit_recno_one, "COMBO_ATTACK" , 2 , 0 , FUNC("string_to_order_para", "A", 1) , 0 , 0 , 0, 600000) 
//			ACTION("give_order" , unit_recno_two, "COMBO_ATTACK" , 2 , 0 , FUNC("string_to_order_para", "A", 1) , 0 , 0 , 0, 600000) 
//			ACTION("give_order" , unit_recno_three, "COMBO_ATTACK" , 2 , 0 , FUNC("string_to_order_para", "A", 1) , 0 , 0 , 0, 600000) 
//		}
//	}


	// deinit temp unit	
//	if( unit_recno )
//	{
//		FUNC("del_unit", unit_recno) 
//	}

//	item_recno = FUNC("add_item", "SWORD_F_INF", "NONE")
//	FUNC("set_item_pos", item_recno, 0.0, 0.0, 0.0)
//	FUNC("set_unit_curr_item", joan_recno, item_recno, "bip01 R Hand" , 0) 
//
//	FUNC("set_ride_mode", 1) 

}