#TouhouDanmakufu[Single]
#ScriptVersion[3]

#include "./functions.txt"

timer = 0;
let text = GetCommonData("TEXT_ENABLED",true);

@Initialize
{
	Obj_SetValue(GetEnemyBossSceneObjectID,"INIT",true);
	TEnemyWork;
}

@MainLoop
{
	yield;
}

@Event
{
	alternative(GetEventType())
	case(EV_REQUEST_LIFE)
		{
		SetScriptResult(1/(10^10));
		}
	case(EV_REQUEST_TIMER)
		{
		SetScriptResult(timer);
		}
	case(EV_REQUEST_SPELL_SCORE)
		{
		SetScriptResult(0);
		}
}

task TEnemyWork
{	
	yield;
	SetForbidPlayerShot(true);
	SetForbidPlayerSpell(true);
	ObjEffect_ScreenShake(18);
	yield;
	PlaySound("se_Die3",200);
	loop(150){yield;}
	yield;
	Obj_Delete(GetEnemyBossSceneObjectID);
	CloseScript(GetOwnScriptID);
}