#TouhouDanmakufu[Plural]
#ScriptVersion[3]
#Title["AyaScript"]
#Text[dh] 
#Player["./Player/MoF_Reimu/Reimu.txt"]
let snd = GetCurrentScriptDirectory ~ "./sfx/boss04a.mp3";
let objmusic = ObjSound_Create();
@Event{
}
function wait(w) { loop(w) { yield; } } 
@Initialize{
	ObjSound_Load(objmusic,snd);
	ObjSound_Play(objmusic);
	ObjSound_SetRestartEnable(objmusic, true);
    ObjSound_SetLoopEnable(objmusic, true);
	ObjSound_SetLoopTime(objmusic,20.27,151.251);
    TPlural;
}
@MainLoop{
    yield;
}
task TPlural{
    let dir = GetCurrentScriptDirectory();
    let obj = ObjEnemyBossScene_Create();
    ObjEnemyBossScene_Add(obj, 0, dir ~ "./anon1.txt");
	ObjEnemyBossScene_Add(obj, 0, dir ~ "./aspell1.txt");
	ObjEnemyBossScene_Add(obj, 1, dir ~ "./anon2.txt");
	ObjEnemyBossScene_Add(obj, 1, dir ~ "./aspell2.txt");
	ObjEnemyBossScene_Add(obj, 2, dir ~ "./anon3.txt");
	ObjEnemyBossScene_Add(obj, 2, dir ~ "./aspell3.txt");
	ObjEnemyBossScene_Add(obj, 3, dir ~ "./aspell4.txt");
    ObjEnemyBossScene_LoadInThread(obj);
    ObjEnemyBossScene_Regist(obj);
    while(!Obj_IsDeleted(obj)){
        yield;
    }
    CloseScript(GetOwnScriptID());
}













