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

sub SetDialogue{
	yield;
	AddDialogueText("AHAHAHAHAHAHAHAHAHA!!! YOU LIKE IT!?!?!?", 255, 128, 128, 255);
	AddDialogueText("I had it made especially for you!", 255, 128, 128, 255);
	SetCharImg("LEFT", nitoriimg, 0, 0, 64, 64);
	AddDialogueText("What? Who?", 255, 128, 255, 128);
	SetCharImg("LEFT", "", 0, 0, 64, 64);
	SetCharImg("RIGHT", rinimg, 0, 0, 64, 64);
	AddDialogueText("I know you just love machines... am I right?", 255, 128, 128, 255);
	SetCharImg("LEFT", nitoriimg, 0, 0, 64, 64);
	SetCharImg("RIGHT", "", 0, 0, 64, 64);
	AddDialogueText("Rinnosuke? What are you doing?", 255, 128, 255, 128);
	SetCharImg("LEFT", "", 0, 0, 64, 64);
	SetCharImg("RIGHT", rinimg, 0, 0, 64, 64);
	AddDialogueText("It is neat huh? I cannot believe I made all of this from the junk inside that dump of Rinnosuke...", 255, 128, 128, 255);
	SetCharImg("LEFT", nitoriimg, 0, 0, 64, 64);
	SetCharImg("RIGHT", "", 0, 0, 64, 64);
	AddDialogueText("What? Who are you?", 255, 128, 255, 128);
	SetCharImg("LEFT", "", 0, 0, 64, 64);
	SetCharImg("RIGHT", rinimg, 0, 0, 64, 64);
	AddDialogueText("So, how will I let my robo friend here play with you I wonder...", 255, 128, 128, 255);
	InitializeDialogue(1);
}

	@Initialize {
		EnemyInit(10, 0);
		LoadGraphic(nitoriimg);
		LoadGraphic(rinimg);
		SetDialogue;
		ClearScreen;
	}
	
	@MainLoop{
        yield;
	}

	@DrawLoop {
		anim_idle;
	}
	
	@Finalize {
		CreateEnemyFromFile(GetCurrentScriptDirectory~"boss1_non02.txt", GetX, GetY, 0, 0, 0);
	}
}