script_enemy_main
{

	#include_function".\stage1_Boss_Info.txt";

	let count = 0;
	let bgm = false;

	task Behavior()
	{
	yield;
	SetCommonData("ng_feverdecrease", 0);	// Fever score stop!
	while (GetEventStep() != 1)	{	yield;	}
	SetMovePosition02(GetClipMaxX, GetClipMinY-120, 20);
	while (GetEventStep() != 2)	{	yield;	}
	VanishEnemy;
	SetCommonData("ng_feverdecrease", 1);	// Fever score start!
	}

//---------------------------------------------------------------------------------------------
	@Initialize
	{
	SetLife(1);
	DeleteEnemyShotToItem(ALL);
	SetDamageRate(0, 0);
	SetInvincibility(120);
	SetMovePosition02(GetCenterX, GetClipMinY+90, 30);

	LoadGraphic(BossSprite);
	SetGraphicRect(1, 1, BSR_sizex, BSR_sizey);
	CreateEventFromScript("stage1_midclear");
	Behavior();
	}

	@MainLoop
	{
	yield;
	count++;
	}

	@DrawLoop
	{
	SetTexture(BossSprite);
	SetGraphicAngle(0, 0, 0);
	SetGraphicScale(1, 1);
	#include_function".\..\function\boss_draw.txt";
	}
}

//---------------------------------------------------------------------------------------------

script_event stage1_midclear
	{


	@Initialize
	{
	}


	@MainLoop
	{

	if ((GetPlayerType == REIMU_A) || (GetPlayerType == REIMU_B))
	{

	SetStep(1);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Arrr...");
	MoveChar(LEFT, BACK);
	Wait(10);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Such an old tricks...");
	SetStep(2);
	End;

	}
	else if ((GetPlayerType == MARISA_A) || (GetPlayerType == MARISA_B))
	{

	SetStep(1);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]...");
	MoveChar(LEFT, BACK);
	Wait(10);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]What a surprise...");
	SetStep(2);
	End;

	}



	else
	{

	SetStep(1);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Hmm?");
	MoveChar(LEFT, BACK);
	Wait(10);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Is she playing tag?");
	SetStep(2);
	End;

	}





	}

	@Finalize
	{
	}
}
