script_enemy_main
{

	#include_function".\stage3_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("stage3_midclear");
	Behavior();
	}

	@MainLoop
	{
	yield;
	count++;
	}

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

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

script_event stage3_midclear
	{


	@Initialize
	{
	}


	@MainLoop
	{




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

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Guess? In the lab?");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Stop shooting me!");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Sorry sis. I though you're another \nchallanger.");
	TextOutA("\c[PURPLE]Are you lost?");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]No I looking for...");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Wha! See you later sis. \nI got emergency call!");
	MoveChar(LEFT, BACK);

	SetStep(1);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]People here love rushing around...");
	MoveChar(LEFT, BACK);
	SetStep(2);
	End;

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

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Guess? In the lab?");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Magician!");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Wah! Sorry sis. I don't mention that.");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Nevermind.");
	TextOutA("\c[RED]Are you competitor?");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Wha! See you later sis. \nI got emergency call!");
	MoveChar(LEFT, BACK);

	SetStep(1);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Wait!");
	MoveChar(LEFT, BACK);
	SetStep(2);
	End;

	}



	else
	{

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Guess? In the lab?");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Why are you attacking me!?");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Sorry sis. I thought that you're my \nopponent.");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Ok, I got it.");
	TextOutA("\c[RED]So you are competitor right?");
	TextOutA("\c[RED]Now take my card!");
	MoveChar(LEFT, BACK);

	MoveChar(LEFT, FRONT);
	TextOutA("\c[PURPLE]Wha! See you later sis. \nI got emergency call!");
	MoveChar(LEFT, BACK);

	SetStep(1);
	MoveChar(LEFT, FRONT);
	TextOutA("\c[RED]Hoi...");
	MoveChar(LEFT, BACK);
	SetStep(2);
	End;

	}










	}

	@Finalize
	{
	}
}
