
#Title[enm7 before talk(s)]
#Text[exb2s]
#Player[FREE]
#BackGround[Default]
#ScriptVersion[2]

script_event Event01{
	let i		= 0;
	let csd		= GetCurrentScriptDirectory;
	let plaimg	= [csd~".\enm7img\Sak00.png",//normal
				csd~".\enm7img\Sak01.png",//sly
				csd~".\enm7img\Sak02.png",//grin
				csd~".\enm7img\Sak03.png",//scared
				csd~".\enm7img\Sak04.png",//grr
				csd~".\enm7img\Sak05.png",//tired
				csd~".\enm7img\Sak06.png",//smile
				csd~".\enm7img\Sak07.png",//angry
				csd~".\enm7img\Sak08.png",//proud
				csd~".\enm7img\Sak09.png"];//evil
	let enmimg	= [csd~".\enm7img\mint00000.png",//
					csd~".\enm7img\mint00001.png",//@
					csd~".\enm7img\mint00002.png",//
					csd~".\enm7img\mint00003.png",//΂
					csd~".\enm7img\mint00004.png",//{
					csd~".\enm7img\mint00005.png",//{2
					csd~".\enm7img\mint00006.png",//
					csd~".\enm7img\mint00007.png",//
					csd~".\enm7img\mint00008.png",//f
					csd~".\enm7img\mint00009.png",//f2
					csd~".\enm7img\mint00010.png",//f3
					csd~".\enm7img\mint00011.png"];//{
	
	@Initialize {
		loop(9){
			LoadGraphic(plaimg[i]);
			i++;
		}
		i=0;
		loop(12){
			LoadGraphic(enmimg[i]);
			i++;
		}
		i=0;
	}
	
	@MainLoop {
		SetChar(LEFT,plaimg[0]);
		SetGraphicRect(LEFT,120,1,384,512/1.5);
		SetChar(RIGHT,enmimg[11]);
		SetGraphicRect(RIGHT,1,1,384/1.3,512/1.4);
		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		TextOut("\c[RED]Losing to a human...maybe I'm getting\n
		too old for this.");
		
		SetChar(LEFT,plaimg[5]);
		MoveChar(LEFT,FRONT);
		MoveChar(RIGHT,BACK);
		TextOut("\c[BLUE]Even if you say as much while looking\n
		like that, it seems to me that you were
		just picking a fight.");
		
		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		TextOut("\c[RED]I look like this because I invoked\n
		the princess's wrath.");
		TextOut("\c[RED]That man had his princess with him,\n
		and I was nothing more than an\n
		elf, so...");
		
		SetChar(LEFT,plaimg[5]);
		MoveChar(LEFT,FRONT);
		MoveChar(RIGHT,BACK);
		TextOut("\c[BLUE]Hmmm, it really seems to me that you've
		just got a bone to pick...");

		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		TextOut("\c[RED]You ought to let the scent of my mint\n
		calm you down.");
		TextOut("\c[RED]Here, I'll give you these herbs, so\n
		put them in your tea.\n
		You'll feel wonderfully refreshed.");

		SetChar(LEFT,plaimg[2]);
		MoveChar(LEFT,FRONT);
		MoveChar(RIGHT,BACK);
		TextOut("\c[BLUE]Now it seems that you're just picking\n
		flowers.\n
		Well, since you went to the trouble,\n
		perhaps I'll have Meiling try it.");
		
		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		TextOut("\c[RED]You should know about this as well:\n
		If you see a mint plant in bloom on\n
		June 24th, you'll be promised\n
		everlasting happiness.");
		TextOut("\c[RED]And if you happen not to see any,\n
		come back here.\n
		I think you'll find what you're\n
		looking for, for a price.");

		SetChar(LEFT,plaimg[4]);
		MoveChar(LEFT,FRONT);
		MoveChar(RIGHT,BACK);
		TextOut("\c[BLUE]Trying to make some money by taking\n
		advantage of old legends?\n
		You're going to start picking pockets\n
		at this rate.");

		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		TextOut("\c[RED]You can't have lived for more than 10\n
		or 20 years at most, so I suppose you\n
		wouldn't know, would you?");
		TextOut("\c[RED]I'm the one responsible for spreading\n
		all the legends about mint, from all\n
		ages and time periods.");
		
		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,BACK);
		TextOut("\c[GREEN]Congratulations on clearing the\n
		EX Stage!");
		TextOut("\c[GREEN]When you start the main game with under
		2 lives and under 3 bombs, and clear\n
		the game with more than 3 lives\n
		remaining, you'll see a different\n
		ending from usual!");
		TextOut("\c[GREEN](Must be above Normal and not use\n
		continues)");

		End();
	}
		
	@Finalize {
	}
}

script_enemy_main {
	let csd			= GetCurrentScriptDirectory;
	let imgEffect	= csd~".\enm7eff\bossEfect.png";
	let imgSPNB		= csd~".\enm7eff\spellEfect.png";
	let t5			= GetCurrentScriptDirectory~".\enm3se\timer1.wav";
	let t10			= GetCurrentScriptDirectory~".\enm3se\timer2.wav";
	let tan			= GetCurrentScriptDirectory~".\enm3se\shot1.wav";
	let kira		= GetCurrentScriptDirectory~".\enm3se\shot2.wav";
	let Gspel		= GetCurrentScriptDirectory~".\enm3se\echo5.wav";
	let laser		= GetCurrentScriptDirectory~".\enm3se\Laser2.wav";
	let power		= GetCurrentScriptDirectory~".\enm3se\enemy_powereffect.wav";
	let powerl		= GetCurrentScriptDirectory~".\enm3se\power_logo.wav";
	let gekiha		= GetCurrentScriptDirectory~".\enm3se\BossEnd.wav";
	let powerla		= GetCurrentScriptDirectory~".\enm3se\power_logo.wav";
	let kaku		= GetCurrentScriptDirectory~".\enm3se\j.wav";
	let frame		= 0;
	let GetAngle	= 0;
	let angle		= 0;
	let angle2		= 0;
	let angleBase	= 0;
	let count		= 0;
	let timer		= 0;
	let shotdir		= GetCurrentScriptDirectory ~ "kshotData.txt";
	let MinX		= GetClipMinX;
	let MaxX		= GetClipMaxX;
	let CenX		= GetCenterX;
	let MinY		= GetClipMinY;
	let MaxY		= GetClipMaxY;
	let CenY		= GetCenterY;
	let T_count		= 0;
	let Damage		= 0;
	let a			= 0;
	let b			= 0;
	let S_count		= 0;
	let w			= 0;
	let i			= 0;

	@Initialize {
		SetX(MaxX+100);
		SetY(MinY-100);
	
		SetLife(5000);
		SetDamageRate(0,0);
	
		CreateCommonDataArea("anime");
		SetCommonDataEx("anime","anime_flag",false);
	
		/*e폜@(l64)*/
		SetShotAutoDeleteClip(30,30,30,30);
	
		LoadUserShotData(shotdir);
		LoadGraphic(imgEffect);
		Aura(8,180,255,210);
		MagicCircle(false);
		SetRateScoreSystemEnable(false);
		EnemyTexture07(true);
		CreateEventFromScript("Event01");
		SetEffectForZeroLife(0,0,0);
	}

	@MainLoop {
		yield;
		if(OnEvent==false){
			VanishEnemy;
		}
	}

	@DrawLoop {
	}

	@Finalize {
		let tact = GetCommonDataEx("title","act");
		if(tact==14){
			SetCommonDataEx("title","start_stage",false);
		}
	}

	#include_function".\Obj_Control.txt"
	#include_function".\lib_kshot.txt"
}