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("OVERDRIVE MODE ACHIEVED.", 255, 255, 255, 255);
	SetCharImg("RIGHT", rinimg, 0, 0, 64, 64);
	AddDialogueText("Ohoho! Now it is time to have fun Nitori!", 255, 128, 128, 255);
	AddDialogueText("Hint: Kill the arms before the head.", 255, 128, 128, 128);
	InitializeDialogue(1);
}

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

	@DrawLoop {
		anim_idle;
	}
	
	@Finalize {
		CreateEnemyFromFile(GetCurrentScriptDirectory~"boss1_spell01.txt", GetX, GetY, 0, 0, 0);
		CreateEnemyFromFile(GetCurrentScriptDirectory~"boss1_spell01b.txt", GetX+100, GetY+30, 0, 0, 0);
		CreateEnemyFromFile(GetCurrentScriptDirectory~"boss1_spell01c.txt", GetX-100, GetY+30, 0, 0, 0);
		CreateEnemyFromFile(GetCurrentScriptDirectory~"boss1_spell01d.txt", GetX, GetY+100, 0, 0, 0);
	}
}