#BackGround[User(.\img\BG.png,0,0)]
script_enemy_main{
#include_function ".\lib.txt"


	@Initialize{
		SetLife(1);
		SetDamageRate(1,1);
		LoadStuff;
		SetMovePosition02(GetCenterX,GetCenterY-60,60);
		CreateEventFromScript("Dialogue");
	}
	@MainLoop{
		if(GetEventStep==1){SetMovePosition01(GetCenterX,120,10);}
		if(GetEventStep==2){SetMovePosition01(GetCenterX,0,10);}
		if(GetEventStep==3){SetMovePosition01(GetCenterX,0,40); PlayMusic(MagusNight); AddLife(-10);}
		yield;
	}
	@DrawLoop{
	DrawName("Marisa Kirisame");
	SetAlpha(255);
	if (bossflip==0){SetGraphicScale(1,1);}
	if (bossflip==1){SetGraphicScale(-1,1);}
	SetColor(255,255,255);
	SetGraphicAngle(0,0,0);
	SetTexture(Marisprite);
	SetGraphicRect(BR[0],BR[1],BR[2],BR[3]);
	DrawGraphic(GetX,GetY);
	}

}

script_event Dialogue{
	let MariAngry=GetCurrentScriptDirectory~"img\MariAngry.png";
	let MariNorm=GetCurrentScriptDirectory~"img\MariNorm.png";
	let MariSmug=GetCurrentScriptDirectory~"img\MariSmug.png";
	let MariSweatdrop=GetCurrentScriptDirectory~"img\MariSweatdrop.png";
	let MariYes=GetCurrentScriptDirectory~"img\MariYes.png";
	@Initialize{
		LoadGraphic(MariAngry);
		LoadGraphic(MariNorm);
		LoadGraphic(MariSmug);
		LoadGraphic(MariSweatdrop);
		LoadGraphic(MariYes);
	}
	@MainLoop{
		SetNameFromText(RIGHT,TEXT_RED,"Marisa Kirisame","Ordinary Witch");
		SetChar(RIGHT,MariAngry);SetGraphicRect(RIGHT,0,0,128,256);
		MoveChar(RIGHT,FRONT);
		TextOutA("\c[RED]Jeez, finally.\nTook you a while, ze.");
		MoveChar(RIGHT,BACK);
		SetNameFromText(LEFT,TEXT_BLUE,"Player Character","*Insert Title Here*");
		TextOutA("\c[BLUE]So what was all that\n ruckus about?");
		TextOutA("\c[BLUE]I mean, it's like 3 in the\nmorning...");
		SetChar(RIGHT,MariNorm);SetGraphicRect(RIGHT,0,0,128,256);
		MoveChar(RIGHT,FRONT);
		TextOutA("\c[RED]Oh, just a little practice.");
		DeleteName(RIGHT);
		MoveChar(RIGHT,BACK);
		TextOutA("\c[BLUE]Wait, what?");
		DeleteName(LEFT);
		MoveChar(RIGHT,FRONT);
		TextOutA("\c[RED]That's right.\nI'll perform some tests on you now.");
		MoveChar(RIGHT,BACK);
		TextOutA("\c[BLUE]So I look like a guinea pig to you now?");
		SetChar(RIGHT,MariSweatdrop);SetGraphicRect(RIGHT,0,0,128,256);
		MoveChar(RIGHT,FRONT);
		TextOutA("\c[RED]Actually, yes.\nYou need to lose a little weight.");
		MoveChar(RIGHT,BACK);
		TextOutA("\c[BLUE]W-What!?\nI'll make you pay for this!");
		SetChar(RIGHT,MariSmug);SetGraphicRect(RIGHT,0,0,128,256);
		MoveChar(RIGHT,FRONT);
		TextOutA("\c[RED]Well, there we go.");
		SetChar(RIGHT,MariYes);SetGraphicRect(RIGHT,0,0,128,256);
		TextOutA("\c[RED]Revive your past,\nface the future head on!");
		SetStep(3);
	}
	@Finalize{
	}
}