"S8L1.sce"
{
	INT unit_recno 

	// Shop
	INT s_one_weapon_shop_recno
	INT s_two_potion_shop_recno
	INT s_three_weapon_shop_recno
	INT s_four_potion_shop_recno
	INT s_four_weapon_shop_recno
	INT s_five_potion_shop_recno
	INT s_five_weapon_shop_recno
	INT s_seven_potion_shop_recno

	INT s_one_sell_weapon_list_id
	INT s_two_sell_potion_list_id
	INT s_three_sell_weapon_list_id
	INT s_four_sell_potion_list_id
	INT s_four_sell_weapon_list_id
	INT s_five_sell_potion_list_id
	INT s_five_sell_weapon_list_id
	INT s_seven_sell_potion_list_id

	// Barrack
	INT s_one_barrack_recno
	INT s_two_barrack_recno
	INT s_four_barrack_recno
	INT s_five_barrack_recno
	INT s_eight_barrack_recno

	INT s_one_barrack_recruit_id_a
	INT s_two_barrack_recruit_id_a
	INT s_four_barrack_recruit_id_a
	INT s_five_barrack_recruit_id_a
	INT s_eight_barrack_recruit_id_a

	INT s_one_barrack_recruit_id_b
	INT s_two_barrack_recruit_id_b
	INT s_four_barrack_recruit_id_b
	INT s_five_barrack_recruit_id_b
	INT s_eight_barrack_recruit_id_b

	INT s_one_barrack_spawn_recno
	INT s_two_barrack_spawn_recno
	INT s_four_barrack_spawn_recno
	INT s_five_barrack_spawn_recno
	INT s_eight_barrack_spawn_recno

	init
	{
		if(FUNC("get_scenario_stage") == 0)
		{
			FUNC("set_game_start_date", 1429, 4, 29, 420, 0, 1440)

			FUNC("set_nation_friendship", "ENGLISH", "FRENCH", -77)
			FUNC("set_nation_friendship", "FRENCH", "ENGLISH", -77)
			FUNC("set_relation_status", "ENGLISH", "FRENCH", 0)

			unit_recno = FUNC("load_unit", "JOAN_OF_ARC", "FRENCH") 

			if( unit_recno == 0 )
			{
				unit_recno = FUNC("add_unit", "JOAN_OF_ARC", "FRENCH") 
			}

			FUNC("set_unit_pos", unit_recno, 46282.0, 2227.0,  0.0)
			FUNC("set_unit_dir", unit_recno, 90) 
			FUNC("set_unit_ranking", unit_recno, "GENERAL")
			FUNC("set_unit_team", unit_recno, 1)
			FUNC("set_main_character", unit_recno, 1)

			// set shop
			s_one_weapon_shop_recno = FUNC("search_facility_by_name" , "S8L1WeaponShop") 
			s_one_sell_weapon_list_id = FUNC("search_item_sell_list_by_code" , "S8L1_weapon") 
			s_two_potion_shop_recno = FUNC("search_facility_by_name" , "S8L2PotionShop") 
			s_two_sell_potion_list_id = FUNC("search_item_sell_list_by_code" , "S8L2_potion") 
			s_three_weapon_shop_recno = FUNC("search_facility_by_name" , "S8L3WeaponShop") 
			s_three_sell_weapon_list_id = FUNC("search_item_sell_list_by_code" , "S8L3_weapon") 
			s_four_weapon_shop_recno = FUNC("search_facility_by_name" , "S8L4WeaponShop") 
			s_four_sell_weapon_list_id = FUNC("search_item_sell_list_by_code" , "S8L4_weapon")
			s_four_potion_shop_recno = FUNC("search_facility_by_name" , "S8L4PotionShop") 
			s_four_sell_potion_list_id = FUNC("search_item_sell_list_by_code" , "S8L4_potion") 			
			s_five_weapon_shop_recno = FUNC("search_facility_by_name" , "S8L5WeaponShop") 
			s_five_sell_weapon_list_id = FUNC("search_item_sell_list_by_code" , "S8L5_weapon")
			s_five_potion_shop_recno = FUNC("search_facility_by_name" , "S8L5PotionShop") 
			s_five_sell_potion_list_id = FUNC("search_item_sell_list_by_code" , "S8L5_potion") 
			s_seven_potion_shop_recno = FUNC("search_facility_by_name" , "S8L7PotionShop") 
			s_seven_sell_potion_list_id = FUNC("search_item_sell_list_by_code" , "S8L7_potion") 			

			FUNC("shop_set_sell_item_list", s_one_weapon_shop_recno, s_one_sell_weapon_list_id) 
			FUNC("shop_set_sell_item_list", s_two_potion_shop_recno, s_two_sell_potion_list_id) 
			FUNC("shop_set_sell_item_list", s_three_weapon_shop_recno, s_three_sell_weapon_list_id) 
			FUNC("shop_set_sell_item_list", s_four_potion_shop_recno, s_four_sell_potion_list_id) 
			FUNC("shop_set_sell_item_list", s_four_weapon_shop_recno, s_four_sell_weapon_list_id) 
			FUNC("shop_set_sell_item_list", s_five_potion_shop_recno, s_five_sell_potion_list_id) 
			FUNC("shop_set_sell_item_list", s_five_weapon_shop_recno, s_five_sell_weapon_list_id) 
			FUNC("shop_set_sell_item_list", s_seven_potion_shop_recno, s_seven_sell_potion_list_id) 

			// set barrack
			s_one_barrack_recno = FUNC("search_facility_by_name", "S8L1BarrackRecruit")
			s_one_barrack_recruit_id_a = FUNC("search_recruit_list_by_code", "S8L1_barrack")
			s_one_barrack_recruit_id_b = FUNC("search_recruit_list_by_code", "S8L1_barrack")
			s_one_barrack_spawn_recno = FUNC("search_facility_by_name", "S8L1BarrackSpawn")
			FUNC("barrack_set_recruit_list", s_one_barrack_recno, s_one_barrack_spawn_recno, s_one_barrack_recruit_id_a, s_one_barrack_recruit_id_b ) 

			s_two_barrack_recno = FUNC("search_facility_by_name", "S8L2BarrackRecruit")
			s_two_barrack_recruit_id_a = FUNC("search_recruit_list_by_code", "S8L2_barrack")
			s_two_barrack_recruit_id_b = FUNC("search_recruit_list_by_code", "S8L2_barrack")
			s_two_barrack_spawn_recno = FUNC("search_facility_by_name", "S8L2BarrackSpawn")
			FUNC("barrack_set_recruit_list", s_two_barrack_recno, s_two_barrack_spawn_recno, s_two_barrack_recruit_id_a, s_two_barrack_recruit_id_b ) 

			s_four_barrack_recno = FUNC("search_facility_by_name", "S8L4BarrackRecruit")
			s_four_barrack_recruit_id_a = FUNC("search_recruit_list_by_code", "S8L4_barrack")
			s_four_barrack_recruit_id_b = FUNC("search_recruit_list_by_code", "S8L4_barrack")
			s_four_barrack_spawn_recno = FUNC("search_facility_by_name", "S8L4BarrackSpawn")
			FUNC("barrack_set_recruit_list", s_four_barrack_recno, s_four_barrack_spawn_recno, s_four_barrack_recruit_id_a, s_four_barrack_recruit_id_b ) 

			s_five_barrack_recno = FUNC("search_facility_by_name", "S8L5BarrackRecruit")
			s_five_barrack_recruit_id_a = FUNC("search_recruit_list_by_code", "S8L5_barrack")
			s_five_barrack_recruit_id_b = FUNC("search_recruit_list_by_code", "S8L5_barrack")
			s_five_barrack_spawn_recno = FUNC("search_facility_by_name", "S8L5BarrackSpawn")
			FUNC("barrack_set_recruit_list", s_five_barrack_recno, s_five_barrack_spawn_recno, s_five_barrack_recruit_id_a, s_five_barrack_recruit_id_b ) 

			s_eight_barrack_recno = FUNC("search_facility_by_name", "S8L8BarrackRecruit")
			s_eight_barrack_recruit_id_a = FUNC("search_recruit_list_by_code", "S8L8_barrack")
			s_eight_barrack_recruit_id_b = FUNC("search_recruit_list_by_code", "S8L8_barrack")
			s_eight_barrack_spawn_recno = FUNC("search_facility_by_name", "S8L8BarrackSpawn")
			FUNC("barrack_set_recruit_list", s_eight_barrack_recno, s_eight_barrack_spawn_recno, s_eight_barrack_recruit_id_a, s_eight_barrack_recruit_id_b ) 

			FUNC("set_fog_distance", 8096) 
		}

		unit_recno = FUNC("search_unit_by_name", "Joanna d'Arc") 
	}

	if( FUNC("get_scenario_stage") == 1 )
	{
		FUNC("set_scenario_stage", 2)

		FUNC("display_title_screen", "", 10, 0, 0)	// to cover the scene first!
		FUNC("set_stop_unit_process_flag" , 1)	// enter cut scene! 
		WAIT{ FUNC("pause_script", 50) }	// wait for the loading of the scene
//		WAIT{ FUNC("display_title_screen", "The Final Siege of Paris", 6000, 2000, 2000) }
		FUNC("set_stop_unit_process_flag" , 0)	// enter cut scene! 
		exit		
	}

	if( FUNC("get_scenario_stage") == 0 )
	{
		FUNC("set_scenario_stage", 1)
	}

	if( FUNC("get_scenario_stage") == 2)
	{
		// run the tactic script for this scenario
		SCRIPT("script\scenario\S8L1_tactic.sce")
	}
	
	if( FUNC("is_game_finish") == 0 ) 
	{
		SCRIPT("script\scenario\S8L1_finish.sce")
	}
}