//----------------------------------
//	スクリプト記述例
//----------------------------------

	//イベント処理の記述を行います
	//ウェイトポイントは指定するか、テキストの移行によります。
def "head"{
	bg color 0 0 0 ;	load map "m031";	
	set goto 62 54;		//コンパス

	player action false;	player pos 60 28;	
	cam dir 0 0;
	wait time 2;

	fade in 30;		// 30frmでフェードイン
	bgm load "stg03.ogg" 65 60;

	text{	//テキストボックス表示、閉じるまでwait
		img load 0 , "riz/f4";	img uv 0 , 0 2 32 32;	img set 0 , 0 0 256 480;

		text	"……この感じ";
		wait;
		img load 0 , "riz/f6";
		text	"魔力の残り香？"
			"教授か……ラーハの気配がある";
		wait;
		img load 0 , "riz/f4";
		text	"感じ取れたということは"
			"まだそれほど離れてはいないはず……";
		wait;
	}
	set enemy "sil01" 18 11;		set enemy "pil01" 20 13;		set enemy "pil01" 20 2;	
	set enemy "opt01" 8 12;		set enemy "opt01" 13 9;		set enemy "opt01" 13 13;
	set enemy "counter01" 10 14;

	set event "ev01" 13 8 3 9;	set event "ev02" 28 6 3 9;	set event "ev03" 37 5 3 9;	//イベント起動範囲(rect)

	player action true;	//操作可能
}
event "ev01"{
	set enemy "canon02" 27 9;	set enemy "counter01" 27 8;
	wait time 1;
	set enemy "sil01" 32 14 false;
	set enemy "sil02" 33 14 false;
	set enemy "pil01" 34 14;		set enemy "sil02" 36 14;
	set enemy "sil01" 35 14 false;
	wait time 1;
	set enemy "sil02" 31 4 false;
	set enemy "sil01" 32 4 false;
	set enemy "sil02" 33 4 false;
	set enemy "pil01" 34 4;		set enemy "sil01" 35 4;		set enemy "sil02" 36 4;

}
event "ev02"{
	set enemy "sil03" 10 12;
	set enemy "sil01" 38 9;
	set enemy "sil03" 38 10;
	set enemy "sil02" 38 11;
	wait time 1;
	set enemy "sil02" 44 6;
	set enemy "sil02" 44 8;
	set enemy "sil02" 45 4;
	wait time 1;
	set enemy "sil02" 45 5;
	set enemy "sil01" 46 2;
	set enemy "sil01" 46 3;
	wait time 1;
	set enemy "pil01" 46 12;
	set enemy "pil01" 46 11;
	set enemy "pil01" 45 12;
	wait time 1;
	set enemy "sil03" 48 9;
	set enemy "sil03" 49 9;

}
event "ev03"{
	set enemy "counter01" 48 5;
	set enemy "counter01" 48 12;
	wait time 2;
	set enemy "canofix02" 50 15 right;
	set enemy "canofix02" 50 19 right;
	set enemy "canofix02" 61 17 left;
	set enemy "canofix02" 61 14 left;
	wait time 2;
	set enemy "canon01" 50 9;
	set enemy "canon01" 50 7;
	set enemy "opt01" 49 9;
	set enemy "opt01" 49 7;
	wait time 2;
	set enemy "block00" 54 16 left;
	set enemy "block00" 54 12 right;
	set enemy "block00" 57 16 right;
	set enemy "block00" 57 12 left;

	wait time 2;
	set event "ev04" 52 12 9 3;	set event "ev05" 55 26 5 4;	set event "ev06" 47 34 5 4;	//イベント起動範囲(rect)
}
event "ev04"{	//レーザーとブロックの間
	set enemy "counter01" 55 30;	set enemy "counter01" 56 40;
	set enemy "counter01" 53 40;	set enemy "counter01" 50 40;
	wait time 2;
	set enemy "opt01" 49 38;	set enemy "opt01" 49 42;	set enemy "opt01" 51 38;
	set enemy "opt01" 51 42;	set enemy "opt01" 53 38;
	wait time 2;
	set enemy "opt01" 53 42;	set enemy "opt01" 55 38;	set enemy "opt01" 55 42;
	set enemy "opt01" 57 38;	set enemy "opt01" 57 42;
}
event "ev05"{	//ブロックの後
	set enemy "sil01" 61 38;		set enemy "sil01" 62 39;
	set enemy "sil01" 62 38 false;	set enemy "sil01" 61 39 false;
	wait time 2;
	set enemy "sil02" 53 39;		set enemy "sil01" 51 39;
	wait time 2;
	set enemy "sil02" 46 34;		set enemy "sil02" 46 36;		set enemy "sil02" 46 35 false;
	wait time 2;
	set enemy "sil02" 54 48;		set enemy "sil02" 54 46 false;
	wait time 2;
	set enemy "sil02" 52 48 false;	set enemy "sil01" 52 46;
	wait time 2;
	set enemy "sil01" 47 47;		set enemy "sil02" 48 48 false;	set enemy "pil01" 49 47;
}
event "ev06"{	//広場中腹
	set enemy "sil03" 39 19;		set enemy "sil03" 40 19;		set enemy "sil03" 41 19;
	wait time 2;
	set enemy "sil02" 45 19 false;	set enemy "sil02" 45 20 false;	set enemy "sil02" 45 21;
	wait time 2;
	set enemy "sil02" 38 30;		set enemy "sil01" 38 27;		set enemy "sil02" 38 24;
	wait time 2;
	set enemy "sil02" 56 27;		set enemy "sil01" 57 27;	
	set enemy "sil02" 58 27;		set enemy "sil01" 59 27;
	wait time 2;
	set enemy "sil02" 54 48;		set enemy "sil02" 54 46 false;
	wait time 2;
	set enemy "sil02" 52 48 false;	set enemy "sil01" 52 46;
	set enemy "sil02" 53 19 false;	set enemy "sil01" 58 19 false;
	wait time 2;
	set enemy "sil02" 31 20 false;	set enemy "sil01" 31 22;
	set enemy "sil01" 31 24 false;	set enemy "sil02" 31 26;
	wait time 2;
	set enemy "sil02" 26 26 false;	set enemy "sil01" 26 28;
	set enemy "sil01" 26 30 false;	set enemy "sil02" 26 32;
	set enemy "sil03" 27 31 false;
	wait time 2;
	set enemy "sil02" 28 26 false;	set enemy "sil01" 28 28;
	set enemy "sil01" 28 30 false;	set enemy "sil02" 28 32;
	set enemy "pil01" 28 31 false;
	wait time 2;
	set enemy "sil03" 31 35 false;	set enemy "pil01" 31 36 false;
	set enemy "canon01" 32 30;	set enemy "canon01" 34 31;
	wait time 2;

	set event "ev07" 39 25 3 6;	set event "ev08" 28 42 6 3;	set event "ev09" 19 42 3 9;	//イベント起動範囲(rect)
}
event "ev07"{	//
	set enemy "counter01" 30 34;	set enemy "counter01" 30 37;
	set enemy "canoRol" 33 35;	set enemy "canoRol" 33 37 rb;
	wait time 2;
	set enemy "canon02" 28 43;	set enemy "canon02" 31 43;
	set enemy "sil03" 33 50 false;	set enemy "pil01" 33 51 false;	set enemy "sil01" 33 52 false;
	wait time 2;
	set enemy "sil02" 28 47;		set enemy "sil01" 31 47;
	set enemy "canoRol" 18 44;	set enemy "canoRol" 18 46 rb;
}
event "ev08"{	//
	set enemy "pil01" 25 55 false;	set enemy "pil01" 26 55;
	set enemy "pil01" 27 55 false;	set enemy "canon01" 14 45;
	wait time 2;
	set enemy "sil03" 17 47 false;	set enemy "sil03" 18 47 false;	set enemy "sil03" 19 47 false;
	set enemy "sil03" 20 47;		set enemy "sil03" 21 47;		set enemy "sil03" 22 47 false;
	set enemy "sil03" 23 47 false;
	wait time 2;
	set enemy "sil01" 13 36 false;	set enemy "sil02" 13 37 false;
	set enemy "sil03" 13 38 false;	set enemy "pil01" 13 39;
	wait time 2;
	set enemy "sil01" 14 36 false;	set enemy "sil02" 14 37 false;
	set enemy "sil03" 14 38;		set enemy "pil01" 14 39 false;
	wait time 2;
	set enemy "sil01" 15 36 false;	set enemy "sil02" 15 37;
	set enemy "sil03" 15 38 false;	set enemy "pil01" 15 39 false;
	wait time 2;
	set enemy "sil01" 16 36;		set enemy "sil02" 16 37 false;
	set enemy "sil03" 16 38 false;	set enemy "pil01" 16 39 false;
}
event "ev09"{	//次のエリアまで
	set enemy "sil01" 6 46 false;	set enemy "sil02" 7 46 false;
	set enemy "sil03" 8 46 false;	set enemy "pil01" 9 46;
	wait time 2;
	set enemy "sil01" 6 44 false;	set enemy "sil02" 9 44;
	set enemy "sil03" 6 45 false;	set enemy "pil01" 9 45 false;
	wait time 2;
	set enemy "sil02" 7 43 false;	set enemy "sil03" 8 43 false;
	set enemy "pil01" 9 43 false;	set enemy "sil01" 6 43;
	wait time 2;
	set enemy "opt01" 4 53;		set enemy "opt01" 5 53;		set enemy "opt01" 6 53;
	wait time 2;
	set enemy "opt01" 4 54;		set enemy "opt01" 6 54;		set enemy "counter01" 5 54;

	set event "ev10" 4 61 3 3;
}
event "ev10"{	//マップ切り替え
	load script "stg03_2";
//	out script;
}
//end