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]That dog used self-duplication magic? \nThis distortion could spell trouble.");
		}
		else if(GetPlayerScriptName == "keine.txt")
		{
			TextOut("\c[BLUE]It's my win. But did he actually copy \nhimself?");
			TextOut("\c[BLUE]He was just a human though...");
		}
		else{RaiseError("The player type chosen cannot be used in this script.", "Invalid Player Type");}
		End;
	}
}