#TouhouDanmakufu[Plural]
#ScriptVersion[3]
#Title["Ultra-Mid-Plural"]

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

let path;
task TPlural{
	let dir = GetCurrentScriptDirectory();
	let obj = ObjEnemyBossScene_Create();
	
	if(GetPlayerID == "Reimu Hakurei A"){path = dir ~ "./Script/Tsugumi00R.txt";}
	if(GetPlayerID == "Reimu Hakurei B"){path = dir ~ "./Script/Tsugumi00R.txt";}
	if(GetPlayerID == "Reimu Hakurei C"){path = dir ~ "./Script/Tsugumi00R.txt";}
	if(GetPlayerID == "Marisa Kirisame A"){path = dir ~ "./Script/Tsugumi00M.txt";}
	if(GetPlayerID == "Marisa Kirisame B"){path = dir ~ "./Script/Tsugumi00M.txt";}
	if(GetPlayerID == "Marisa Kirisame C"){path = dir ~ "./Script/Tsugumi00M.txt";}
	
	ObjEnemyBossScene_Add(obj, 0, path);
	ObjEnemyBossScene_Add(obj, 0, dir ~ "./Script/UltraTsugumiSpell01.txt");
	ObjEnemyBossScene_Add(obj, 1, dir ~ "./Script/UltraTsugumiSpell02.txt");
	ObjEnemyBossScene_Add(obj, 2, dir ~ "./Script/UltraTsugumiSpell03.txt");
	ObjEnemyBossScene_Add(obj, 3, dir ~ "./Script/TsugumiEnd.txt");
	ObjEnemyBossScene_LoadInThread(obj);
	while(GetCommonData("Start",0) == 0){yield;}
	DeleteCommonData("Start");
	ObjEnemyBossScene_Regist(obj);
	while(!Obj_IsDeleted(obj)){yield;}
	CloseScript(GetOwnScriptID());}