#e[Plural]
#ScriptVersion[3]
#Title["Ex[~AXNvgAĐ"]
#Text["Ex[~AXyJ[h"]
#Image["./ExRumia(u~bhiCg@Gv).jpg"]
#Background["script/default_system/Default_Background_IceMountain.txt"]
#BGM["./Test.ogg"]

@Initialize
{
	TPlural();
}

@MainLoop
{
	yield;
}

@Finalize
{
}


task TPlural
{
	ReloadEnemyShotData(GetModuleDirectory ~ "script/default_system/Default_ShotData.txt");
	yield;
	SetCommonData("ReverseFlag",false);
	let dir = GetCurrentScriptDirectory();

	let SpellPath;
	alternative(GetCommonData("SpellCardNo",1))
	case(1)
	{
		SpellPath=dir~"Rumia/1.txt";
	}
	case(2)
	{
		SpellPath=dir~"Cirno/1.txt";
	}
	case(3)
	{
		SpellPath=dir~"Daiyousei/1.txt";
	}
	case(4)
	{
		SpellPath=dir~"Koakuma/1.txt";
	}
	case(5)
	{
		SpellPath=dir~"Patchouli/1.txt";
	}
	case(6)
	{
		SpellPath=dir~"Kogasa/1.txt";
	}
	case(7)
	{
		SpellPath=dir~"Chen/1.txt";
	}
	case(8)
	{
		SpellPath=dir~"Yuyuko/1.txt";
	}
	case(9)
	{
		SpellPath=dir~"Kyouko/1.txt";
	}
	case(10)
	{
		SpellPath=dir~"Murasa/1.txt";
	}
	case(11)
	{
		SpellPath=dir~"Medicine/1.txt";
	}
	case(12)
	{
		SpellPath=dir~"Youmu/1.txt";
	}
	case(13)
	{
		SpellPath=dir~"Tewi/1.txt";
	}
	case(14)
	{
		SpellPath=dir~"Reisen/1.txt";
	}

	case(15)
	{
		SpellPath=dir~"Lily/1.txt";
	}
/*
	case(16)
	{
		SpellPath=dir~"Reisen/1.txt";
	}
	case(17)
	{
		SpellPath=dir~"Meirin/1.txt";
	}
	case(18)
	{
		SpellPath=dir~"Remilia/1.txt";
	}
	case(19)
	{
		SpellPath=dir~"Flandre/1.txt";
	}
	case(20)
	{
		SpellPath=dir~"Chen/1.txt";
	}
	case(21)
	{
		SpellPath=dir~"Ran/1.txt";
	}
	case(22)
	{
		SpellPath=dir~"StarSaphire/1.txt";
	}
	case(23)
	{
		SpellPath=dir~"LunaChild/1.txt";
	}
	case(24)
	{
		SpellPath=dir~"SunnyMilk/1.txt";
	}
	case(25)
	{
		SpellPath=dir~"Mokou/1.txt";
	}
	case(26)
	{
		SpellPath=dir~"Eirin/1.txt";
	}
	case(27)
	{
		SpellPath=dir~"Sakuya/1.txt";
	}
	case(28)
	{
		SpellPath=dir~"Patchouli/1.txt";
	}
	case(29)
	{
		SpellPath=dir~"Lily/1.txt";
	}
	case(30)
	{
		SpellPath=dir~"Yukari/1.txt";
	}
	case(31)
	{
		SpellPath=dir~"Kyouko/1.txt";
	//	SpellPath=dir~"Sanae/1.txt";
	}
	case(32)
	{
		SpellPath=dir~"Tenshi/1.txt";
	}
	case(33)
	{
		SpellPath=dir~"Suika/1.txt";
	}
	case(34)
	{
		SpellPath=dir~"Komachi/1.txt";
	}
	case(35)
	{
		SpellPath=dir~"Eiki/1.txt";
	}
	case(36)
	{
		SpellPath=dir~"Medicine/1.txt";
	}
	case(37)
	{
		SpellPath=dir~"Mima/1.txt";
	}
	case(38)
	{
		SpellPath=dir~"Shinki/1.txt";
	}
	case(39)
	{
		SpellPath=dir~"Kogasa/1.txt";
	//	SpellPath=dir~"Akyu/1.txt";
	}
	case(40)
	{
		SpellPath=dir~"Nue/1.txt";
	}
	case(41)
	{
		SpellPath=dir~"Muse/1.txt";
	}
	case(42)
	{
		ReloadEnemyShotData(dir ~ "../img/bullet/Default_ShotData.txt");
		SetCommonData("ReverseFlag",true);
		SpellPath=dir~"Rumia/2.txt";
	}
	case(43)
	{
		SetCommonData("ReverseFlag",true);
		SpellPath=dir~"Lily/2.txt";
	}
	case(44)
	{
		SetCommonData("ReverseFlag",true);
		SpellPath=dir~"Koakuma/2.txt";
	}
	case(45)
	{
		SetCommonData("ReverseFlag",true);
		SpellPath=dir~"Kaguya/2.txt";
	}
	case(46)
	{
		SetCommonData("ReverseFlag",true);
		SpellPath=dir~"Mima/2.txt";
	}
	case(47)
	{
		SetCommonData("ReverseFlag",true);
		SpellPath=dir~"Alice/2.txt";
	}
	case(48)
	{
		SetCommonData("ReverseFlag",true);
		SpellPath=dir~"Alice/2.txt";
	}
*/
	//ʏ̓{XV[1쐬܂B
	let obj = ObjEnemyBossScene_Create();
	ObjEnemyBossScene_Add(obj, 0,SpellPath);
	ObjEnemyBossScene_LoadInThread(obj);
	ObjEnemyBossScene_Regist(obj);

	//G{XV[I܂őҋ@
	while(!Obj_IsDeleted(obj))
	{
		yield;
	}
	SetCommonData("BossDefeat",true);
	loop(150){yield;}
    //XNvgI
	CloseScript(GetOwnScriptID());
}

