#TouhouDanmakufu[Plural]
#ScriptVersion[3]
#Title["Practice-Plural"]

let dir = GetCurrentScriptDirectory();
let spell = "";

@Initialize{TPlural();}
@MainLoop{yield;}
@Finalize{}

task TPlural{
	if(GetCommonData("Spell",0) == 0){spell = dir ~ "./Script/TsugumiSpell01.txt"}
	if(GetCommonData("Spell",0) == 1){spell = dir ~ "./Script/TsugumiSpell02.txt"}
	if(GetCommonData("Spell",0) == 2){spell = dir ~ "./Script/TsugumiSpell03.txt"}
	if(GetCommonData("Spell",0) == 3){spell = dir ~ "./Script/MiyakoSpell01.txt"}
	if(GetCommonData("Spell",0) == 4){spell = dir ~ "./Script/MiyakoSpell02.txt"}
	if(GetCommonData("Spell",0) == 5){spell = dir ~ "./Script/MiyakoSpell03.txt"}
	if(GetCommonData("Spell",0) == 6){spell = dir ~ "./Script/MiyakoSpell04.txt"}
	if(GetCommonData("Spell",0) == 7){spell = dir ~ "./Script/MiyakoSpell05.txt"}
	if(GetCommonData("Spell",0) == 8){spell = dir ~ "./Script/MiyakoSpell06.txt"}
	if(GetCommonData("Spell",0) == 9){spell = dir ~ "./Script/MiyakoSpell07.txt"}
	if(GetCommonData("Spell",0) == 10){spell = dir ~ "./Script/MiyakoSpell08.txt"}
	if(GetCommonData("Spell",0) == 11){spell = dir ~ "./Script/MiyakoSpell09.txt"}
	if(GetCommonData("Spell",0) == 12){spell = dir ~ "./Script/MiyakoSpell10.txt"}
	
	if(GetCommonData("Spell",0) == 13){spell = dir ~ "./Script/UltraTsugumiSpell01.txt"}
	if(GetCommonData("Spell",0) == 14){spell = dir ~ "./Script/UltraTsugumiSpell02.txt"}
	if(GetCommonData("Spell",0) == 15){spell = dir ~ "./Script/UltraTsugumiSpell03.txt"}
	if(GetCommonData("Spell",0) == 16){spell = dir ~ "./Script/UltraMiyakoSpell01.txt"}
	if(GetCommonData("Spell",0) == 17){spell = dir ~ "./Script/UltraMiyakoSpell02.txt"}
	if(GetCommonData("Spell",0) == 18){spell = dir ~ "./Script/UltraMiyakoSpell03.txt"}
	if(GetCommonData("Spell",0) == 19){spell = dir ~ "./Script/UltraMiyakoSpell04.txt"}
	if(GetCommonData("Spell",0) == 20){spell = dir ~ "./Script/UltraMiyakoSpell05.txt"}
	if(GetCommonData("Spell",0) == 21){spell = dir ~ "./Script/UltraMiyakoSpell06.txt"}
	if(GetCommonData("Spell",0) == 22){spell = dir ~ "./Script/UltraMiyakoSpell07.txt"}
	if(GetCommonData("Spell",0) == 23){spell = dir ~ "./Script/UltraMiyakoSpell08.txt"}
	if(GetCommonData("Spell",0) == 24){spell = dir ~ "./Script/UltraMiyakoSpell09.txt"}
	if(GetCommonData("Spell",0) == 25){spell = dir ~ "./Script/UltraMiyakoSpell10.txt"}

	let obj = ObjEnemyBossScene_Create();
	ObjEnemyBossScene_Add(obj, 0, spell);
	ObjEnemyBossScene_LoadInThread(obj);
		while(GetCommonData("StartPr",0) == 0){yield;}
		DeleteCommonData("StartPr");
	ObjEnemyBossScene_Regist(obj);
	while(!Obj_IsDeleted(obj)){yield;}
	CloseScript(GetOwnScriptID());}