script_enemy_main{

	#include_function ".\lib\dialogue.txt"
	#include_function ".\sakuyaanim.txt";
	let imga=GetCurrentScriptDirectory~"img\cutins\Sakuya.png";
	let imgb=GetCurrentScriptDirectory~"img\cutins\Meiling.png";
	let imgc=GetCurrentScriptDirectory~"img\cutins\Meiling2.png";
	let imgd=GetCurrentScriptDirectory~"img\cutins\Flandre.png";
	let imge=GetCurrentScriptDirectory~"img\cutins\Patchouli.png";
	let imgf=GetCurrentScriptDirectory~"img\cutins\Patchouli2.png";
	let imgg=GetCurrentScriptDirectory~"img\cutins\Patchouli3.png";
	let imgh=GetCurrentScriptDirectory~"img\cutins\Remilia.png";
	let imgi=GetCurrentScriptDirectory~"img\cutins\Remilia2.png";
	let imgback=GetCurrentScriptDirectory~"lib\textback.png";
	let frame=0;
sub SetDialogue
{
	yield;
	AddDialogueChar(imga, 0, 0, 144, 288, "RIGHT");
	MoveDialogueChar("RIGHT", 0, 1);
	AddDialogueText("Huh? How did you get in here?", 64, 64, 255);
	AddDialogueChar(imgc, 0, 0, 144, 288, "RIGHT");
	MoveDialogueChar("RIGHT", 0, 0);
	MoveDialogueChar("RIGHT", 1, 1);
	AddDialogueText("Sorry Sakuya. I couldn't stop her.", 64, 255, 64);
	ChangeCharImg("RIGHT", 1, imgb);
	AddDialogueText("You can probably stop her, cant you?", 64, 255, 64);
	MoveDialogueChar("RIGHT", 0, 1);
	MoveDialogueChar("RIGHT", 1, 0);
	AddDialogueText("Fine, but you better be prepared to have       knives on your head later.", 64, 64, 255);
	MoveDialogueChar("RIGHT", 0, 0);
	MoveDialogueChar("RIGHT", 1, 1);
	AddDialogueText("Uhhh... maybe Patchouli should stop her.", 64, 255, 64);
	AddDialogueChar(imge, 0, 0, 144, 288, "RIGHT");
	MoveDialogueChar("RIGHT", 0, 0);
	MoveDialogueChar("RIGHT", 1, 0);
	MoveDialogueChar("RIGHT", 2, 1);
	AddDialogueText("Hey! Don't go dragging me into this.", 255, 64, 255);
	ChangeCharImg("RIGHT", 2, imgf);
	AddDialogueText("It's not any of my business.", 255, 64, 255);
	ChangeCharImg("RIGHT", 2, imgg);
	AddDialogueText("Plus, I wouldn't want her destroying any of my books.", 255, 64, 255);
	MoveDialogueChar("RIGHT", 1, 1);
	MoveDialogueChar("RIGHT", 2, 0);
	AddDialogueText("Uhhh... then maybe Flandre can help.", 64, 255, 64);
	AddDialogueChar(imgd, 0, 0, 144, 288, "RIGHT");
	MoveDialogueChar("RIGHT", 1, 0);
	MoveDialogueChar("RIGHT", 3, 1);
	AddDialogueText("No can do!", 255, 128, 64);
	MoveDialogueChar("RIGHT", 1, 1);
	MoveDialogueChar("RIGHT", 3, 0);
	AddDialogueText("*sigh*", 64, 255, 64);
	AddDialogueChar(imgh, 0, 0, 144, 288, "RIGHT");
	MoveDialogueChar("RIGHT", 1, 0);
	MoveDialogueChar("RIGHT", 4, 1);
	AddDialogueText("Huh? Why are you here?", 255, 64, 64);
	ChangeCharImg("RIGHT", 4, imgi);
	AddDialogueText("Sakuya, dispose of her please.", 255, 64, 64);
	MoveDialogueChar("RIGHT", 4, 0);
	MoveDialogueChar("RIGHT", 0, 1);
	AddDialogueText("My pleasure.", 64, 64, 255);
	InitializeDialogue(imgback, 0, 0, 350, 45);
}
	@Initialize{
		SetLife( 1 );
		DeleteEnemyShotToItem( ALL );
		CollectItems;
		SetDamageRate( 0, 0 );
		LoadGraphic(imga);
		LoadGraphic(imgb);
		LoadGraphic(imgc);
		LoadGraphic(imgd);
		LoadGraphic(imge);
		LoadGraphic(imgf);
		LoadGraphic(imgg);
		LoadGraphic(imgh);
		LoadGraphic(imgi);
		LoadGraphic(imgback);
		SetDialogue;
	}
	@MainLoop{
		yield;
		SetMovePosition02(GetCenterX, 120, 30);
	}
	@DrawLoop{
	anim2;
}

	@Finalize{
	}
}