script_enemy_main {
    #include_function ".\spellcard.txt"
    #include_function ".\..\lib\enemyfunctions.txt"
    #include_function "script\lib\dialoguefunctions.txt"
	let nitoriimg=GetCurrentScriptDirectory~"img\nitori.png";
	let reimuimg=GetCurrentScriptDirectory~"img\reimu.png";

sub SetDialogue{
	yield;
	SetCharImg("LEFT", nitoriimg, 0, 0, 64, 64);
	AddDialogueText("Hmm? Where is Reimu?", 255, 128, 255, 128);
	AddDialogueText("...", 255, 128, 255, 128);
	AddDialogueText("AH!", 255, 128, 255, 128);
	AddDialogueText("What is this?", 255, 128, 255, 128);
	SetCharImg("LEFT", "", 0, 0, 64, 64);
	SetCharImg("RIGHT", reimuimg, 0, 0, 64, 64);
	AddDialogueText("Dear whoever may read this,", 255, 255, 128, 128);
	AddDialogueText("    Due to the sudden disappearance of Marisa Kirisame, I have gone out to look for a solution to this problem. I do not know when I will come back. This is an unprecedented serious affair. Rest assured, there is no need to worry about me. I would rather you donate in that box over there.", 255, 255, 128, 128);
	AddDialogueText("Sincerely, Reimu Hakurei", 255, 255, 128, 128);
	AddDialogueText("P.S. I WILL KILL YOU IF YOU DO ANYTHING TO THAT DONATION BOX OTHER THAN STUFF IT WITH CASH.", 255, 255, 128, 128);
	SetCharImg("LEFT", nitoriimg, 0, 0, 64, 64);
	SetCharImg("RIGHT", "", 0, 0, 64, 64);
	AddDialogueText("sigh...", 255, 128, 255, 128);
	AddDialogueText("sheesh...", 255, 128, 255, 128);
	AddDialogueText("Now what do I do?", 255, 128, 255, 128);
	AddDialogueText("AH!!!", 255, 128, 255, 128);
	InitializeDialogue(0);
}

	@Initialize {
		EnemyInit(10, 100);
		LoadGraphic(nitoriimg);
		LoadGraphic(reimuimg);
		SetDialogue;
		ClearScreen;
	}
	
	@MainLoop{
        yield;
	}
		
	@DrawLoop {
	}
	
	@Finalize {
	}
}