
#ScriptVersion[3]
#Title["Letty Plural"]
#Text[" Battle for Letty Whiterock ALONE "]
#Background["./Scene/Background.txt"]
#System["./System/Default_System.txt"]
#Player["./Player/Reimu/Reimu.txt"]

SetCommonData("Is Plural Script",true);

@Initialize{
	BossPlural;
}

@MainLoop{
	yield;
}

@Finalize{

}

task BossPlural{
	let CSD = GetCurrentScriptDirectory;
	
	let obj = ObjEnemyBossScene_Create;
	
	ObjEnemyBossScene_Add(obj,0,CSD ~ "Boss Nonspell 1.dnh");
	ObjEnemyBossScene_Add(obj,0,CSD ~ "Boss Spellcard 1.dnh");
	
	ObjEnemyBossScene_Add(obj,1,CSD ~ "Boss Nonspell 2.dnh");
	ObjEnemyBossScene_Add(obj,1,CSD ~ "Boss Spellcard 2.dnh");
	
	ObjEnemyBossScene_Add(obj,2,CSD ~ "Boss Nonspell 3.dnh");
	ObjEnemyBossScene_Add(obj,2,CSD ~ "Boss Spellcard 3.dnh");
	
	ObjEnemyBossScene_Add(obj,3,CSD ~ "Boss Nonspell 4.dnh");
	ObjEnemyBossScene_Add(obj,3,CSD ~ "Boss Spellcard 4.dnh");
	
	ObjEnemyBossScene_Add(obj,4,CSD ~ "Boss Spellcard 5.dnh");
	
	ObjEnemyBossScene_LoadInThread(obj);
	loop(320){yield;}
	
	let pa = CSD ~ "Lib/BGM.ogg";
	let s = ObjSound_Create;
	ObjSound_Load(s,pa);
	ObjSound_SetSoundDivision(s,SOUND_BGM);
	ObjSound_SetLoopEnable(s,true);
	ObjSound_SetLoopSampleCount(s,293504,7533696);
	ObjSound_SetVolumeRate(s,85);
	ObjSound_Play(s);
	
	ObjEnemyBossScene_Regist(obj);
	
	while(!Obj_IsDeleted(obj)){ yield;}
	CloseScript(GetOwnScriptID);
}
