script_enemy_main
{
	#include_function ".\func.txt"

	@Initialize
	{
		SetLife(1);

		Event("death");
		MainTask;
	}

	@MainLoop
	{
		yield;
	}

	@DrawLoop
	{
	}

	@BackGround
	{
	}

	@Finalize
	{
	}

	task MainTask
	{
		Wait(30);
		while(OnEvent==true){yield;}
		VanishEnemy;
	}
}

script_event death
{
	@Initialize
	{
		evt;
	}

	@MainLoop
	{
		yield;
	}

	@Finalize
	{
	}

	task evt
	{
		if(GetPlayerScriptName == "patchy.txt")
		{
			TextOut("\c[BLUE]This girl was pretty strong.");
			TextOut("\c[RED]Ah, I'm not that strong yet. Anyway, \nyou fell for our trap.");
			TextOut("\c[BLUE]What do you mean?");
			TextOut("\c[RED]While you were messing around here, \nthe ritual has been completed.");
			TextOut("\c[BLUE]Impossible! How did I not notice that?");
			TextOut("\c[RED]Maybe we'll meet again someday.\nI'll be stronger next time we meet.");
		}
		else if(GetPlayerScriptName == "keine.txt")
		{
			TextOut("\c[BLUE]Hmm, my instincts tell me to go over...there.");
			TextOut("\c[RED]That's almost right. It's over there.");
			TextOut("\c[BLUE]Wait, how did this happen?");
			TextOut("\c[RED]It doesn't matter anymore though. \nYou're too late.");
			TextOut("\c[BLUE]At least tell me your plan.");
			TextOut("\c[RED]The ritual has been completed. \nFarewell, beast girl.");
		}
		else{RaiseError("The player type chosen cannot be used in this script.", "Invalid Player Type");}
		End;
	}
}