//#TouhouDanmakufu
#Title[Emily Urmetus Talk Event]
#Text[Emilia Nihilque.]
#Image[]
#Player[player\ProcellaPlayers\FeliciaA\FeliciaA.dnh, player\ProcellaPlayers\FeliciaB\FeliciaB.dnh]
#PlayLevel[N/A]
#BGM[bgm\Korobeinki.mp3]
#ScriptVersion[2]

script_enemy_main {
	let ImgBoss = "script\img\stg8enm.png";
	let bosstheme = "bgm\Ballad to Mundane Misery ~ Korobeinki.mp3";
	#include_function "p_config.txt"

	@Initialize {
		SetLife(1);
		SetDamageRate(0, 0);

		LoadGraphic(ImgBoss);
		SetTexture(ImgBoss);
		SetGraphicRect(6,195,70,285);
		SetMovePosition03(GetCenterX, GetClipMinY + 120, 10, 3);

		if(bgm_on) {
			LoadMusic(convotheme);
			PlayMusic(convotheme);
		}
		MainTask;
	}
	task MainTask {
		loop(121) { yield; }
		CreateEventFromScript("BossEvent");
		while(GetEventStep == 0) { yield; }
		if(bgm_on) {
			LoadMusic(bosstheme);
			PlayMusic(bosstheme);
		}
		while(OnEvent) { yield; }
		SetLife(0);
	}
	@MainLoop {
		yield;
	}
	@DrawLoop {
		SetTexture(ImgBoss);
		DrawGraphic(GetX, GetY);
	}
	@Finalize {
		DeleteGraphic(ImgBoss);
	}
}
script_event Event {
	let pg = "script\img\Felicia.png";
	let eg = "script\img\Emily.png";
	@Initialize {
		LoadGraphic(pg);
		LoadGraphic(eg);
		MainTask;
	}
	task MainTask {
		yield;
		SetStep(0);
		SetChar(LEFT, pg);
		SetGraphicRect(LEFT, 0, 0, 192, 256);
		MoveChar(LEFT, BACK);
		SetChar(RIGHT, eg);
		SetGraphicRect(RIGHT, 0, 0, 192, 256);
		MoveChar(RIGHT, FRONT);
		TextOutA("\c[PURPLE]Eh? There's someone else up ahead.");
		TextOutA("\c[RED]...ah, this... hm...");
		MoveChar(RIGHT, BACK);
		MoveChar(LEFT, FRONT);
		TextOutA("\c[GREEN]Look, it's that familiar-wielder we saw earlier.");
		TextOutA("\c[BLUE]Oh, great. Who are you supposed to be?");
		MoveChar(LEFT, BACK);
		MoveChar(RIGHT, FRONT);
		TextOutA("\c[RED]A traveling doctor, when it comes down to it.");
		MoveChar(RIGHT, BACK);
		MoveChar(LEFT, FRONT);
		TextOutA("\c[BLUE]Doctor...? When it comes...? Gah, you're confusing me...");
		MoveChar(LEFT, BACK);
		MoveChar(RIGHT, FRONT);
		TextOutA("\c[RED]Well, that settles it. She's far more powerful than the fools we've faced before...\nHow puzzling.");
		MoveChar(RIGHT, BACK);
		MoveChar(LEFT, FRONT);
		TextOutA("\c[BLUE]You mean you already beat the rest of us?");
		MoveChar(LEFT, BACK);
		MoveChar(RIGHT, FRONT);
		TextOutA("\c[RED]Most of the nearby mercenary contingent.\nThey mistook me for a threat, I suppose.");
		MoveChar(RIGHT, BACK);
		MoveChar(LEFT, FRONT);
		TextOutA("\c[BLUE]You pretend you're not, but...");
		TextOutA("\c[GREEN]...that kind of power...");
		MoveChar(LEFT, BACK);
		MoveChar(RIGHT, FRONT);
		TextOutA("\c[RED]I hope you'll excuse me, but I have a political crisis to solve.");
		MoveChar(RIGHT, BACK);
		MoveChar(LEFT, FRONT);
		SetStep(1);
		TextOutA("\c[BLUE]What do you know? So do I.");
		TextOutA("\c[GREEN]You aren't seriously thinking of fighting them...?");
		MoveChar(LEFT, BACK);
		MoveChar(RIGHT, FRONT);
		TextOutA("\c[PURPLE]Nah, it's more convenient this way.");
		TextOutA("\c[RED]The road ahead is dangerous, and your foes strong.");
		TextOutA("\c[RED]Let's see if you have what it takes to win the fight ahead.");
		End;
	}
	@MainLoop {
		yield;
	}
	@DrawLoop {
	}
	@Finalize {
		DeleteGraphic(pg);
		DeleteGraphic(eg);
	}
}
}