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 door could be a trap...");
			TextOut("\c[RED]It isn't. Trust me.");
			TextOut("\c[BLUE]Why should I trust you? \nWell, I can't stay here either.");
		}
		else if(GetPlayerScriptName == "keine.txt")
		{
			TextOut("\c[BLUE]Okay, farewell.");
			TextOut("\c[RED]You can proceed that way.");
			TextOut("\c[BLUE]I already figured that out. \nIt's the only way.");
		}
		else{RaiseError("The player type chosen cannot be used in this script.", "Invalid Player Type");}
		End;
	}
}