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

script_event Event01{
	let i		= 0;
	let csd		= GetCurrentScriptDirectory;
	let plaimg	= [csd~".\enm7img\镁.png",
					csd~".\enm7img\遁R.png",
					csd~".\enm7img\j.png",
					csd~".\enm7img\.png",
					csd~".\enm7img\錙.png",
					csd~".\enm7img\鍢.png",
					csd~".\enm7img\Ί.png",
					csd~".\enm7img\{.png",
					csd~".\enm7img\链.png"];
	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;
		CreateCommonDataArea("in");
		SetCommonDataEx("in","move",false);
		SetCommonDataEx("in","music",false);
		SetCommonDataEx("in","snd",false);
	}
	
	@MainLoop {
		SetChar(LEFT,plaimg[4]);
		SetGraphicRect(LEFT,120,1,384,512/1.5);
		MoveChar(LEFT,FRONT);
		TextOut("\c[BLUE]CVA̕ɂĝ
		\nƂƐlƊႢĂ");
		TextOut("\c[BLUE]̘AŖƂ
		\n̒Nׂ̈Ɂc");
		
		MoveChar(LEFT,BACK);
		TextOut("\c[RED]ƐlȂ񂩁A킯Ȃ");
		SetCommonDataEx("in","move",true);

		SetChar(RIGHT,enmimg[0]);
		SetGraphicRect(RIGHT,1,1,384/1.3,512/1.4);
		MoveChar(RIGHT,FRONT);
		TextOut("\c[RED]̐𗎂Ƃ̂
		\nMlԂȂ̂");

		SetChar(LEFT,plaimg[5]);
		MoveChar(LEFT,FRONT);
		MoveChar(RIGHT,BACK);
		TextOut("\c[BLUE]܂d
		\n񎟗d푈łn܂̂");

		SetChar(RIGHT,enmimg[4]);
		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		SetCommonDataEx("in","snd",true);
		TextOut("\c[RED]lԂɖtAɐ
		\nďɖYꋎ{̐");
		TextOut("\c[RED]x͈̂ǂȏtɗ́H");

		SetChar(LEFT,plaimg[0]);
		MoveChar(LEFT,FRONT);
		MoveChar(RIGHT,BACK);
		TextOut("\c[BLUE]Č΁Aʂɉ");

		SetChar(RIGHT,enmimg[2]);
		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		TextOut("\c[RED]~g̍͐S𗎂F");
		TextOut("\c[RED]̌シɏĂ쌴
		\n~gO~~l߂");
		TextOut("\c[RED]ċM𕽘a{PĂ
		\n̐ɂNߕtȂׂ");

		SetChar(LEFT,plaimg[1]);
		MoveChar(LEFT,FRONT);
		MoveChar(RIGHT,BACK);
		TextOut("\c[BLUE]ˁB\͂ȏ
		\nԂ𑀂鎄ɋC͒ʗpȂ");

		SetChar(RIGHT,enmimg[0]);
		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		TextOut("\c[RED]Ȃ΁c~g̎nc邱̎
		\n͂Œǂô݁I");

		SetChar(LEFT,plaimg[2]);
		MoveChar(LEFT,FRONT);
		MoveChar(RIGHT,BACK);
		TextOut("\c[BLUE]V\ȂɎnc");
		TextOut("\c[BLUE]ǂł傤AM̂悤ȋd
		񂤂ɃXJEgĒI");

		SetChar(RIGHT,enmimg[2]);
		MoveChar(LEFT,BACK);
		MoveChar(RIGHT,FRONT);
		SetCommonDataEx("in","music",true);
		TextOut("\c[RED]̗dƌтĖĂ͍");
		SetChar(RIGHT,enmimg[1]);
		TextOut("\c[RED]1{n܂~g2{
		\n2{4{");
		TextOut("\c[RED]ꂪNA
		\nAǂȓVwIɂȂ邩ȁI");

		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);
		VSname(1);
		while(i<10){
			VSname2(0+i*10,1);
			i++;
		}i=0;
		CreateEventFromScript("Event01");
		
		CreateEnemyFromFile(csd~"enm7_Family00_Extra.txt",0,0,0,0,0);
    }

	@MainLoop {
		yield;
		
		let gm	= GetCommonDataEx("in","move");
		if(gm==true){
			SetMovePosition03(CenX,CenY-120,10,5);
		}
		if(OnEvent==false){
			SetLife(0);
		}
	}
	
	@DrawLoop {
	}

	@Finalize {
		DeleteCommonDataEx("in","move");
		DeleteCommonDataEx("in","music");
		DeleteCommonDataEx("in","snd");
	}

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