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

	//イベント処理の記述を行います
	//ウェイトポイントは指定するか、テキストの移行によります。
def "head"{
	bg color 0 0 0 ;	//背景色の変更
	load map "m011";	// マップデータの読み込み
	set goto 62 54;		//コンパス

	player pos 440 40;	//プレイヤーの位置設定
	player action false;	//操作不能
	cam dir 0 0;

	wait time 2;
	bgm load "stg01.ogg" 65 60;

	fade in 30;		// 30frmでフェードイン

	// player action を併用することで、条件を満たすまで処理をストップ

	text{	//テキストボックス表示、閉じるまでwait
		img load 0 , "riz/f1";
		img uv 0 , 0 2 32 32;	//32分割で始点と終点を指定
		img set 0 , 0 0 256 480;	//set rect

		text	"………………";
		wait;
		text	"で、結局また一週間音信不通か……";
		wait;
		img load 0 , "riz/f6";
		text	"まあ、今回は本当にトラブルがあったのかもしれないし"
			"とりあえず、見つけて直接聞いてみるしかないわね";
		wait;
		text	"幻覚トラップに自律制御のゴーレム……"
			"やっぱりここは普通の遺跡じゃない";
		wait;
		img load 0 , "riz/f4";
		text	"出来るだけ目立たず進みたいけど"
			"そう簡単なことじゃなさそうね";
		wait;
	}
	help "コンパスの位置が目的地です" 120;

	set enemy "sil01" 58 18;
	set enemy "sil01" 57 18;
	set enemy "sil01" 55 17;
	set enemy "sil01" 47 12;
	set enemy "sil01" 45 12;
	set enemy "canon02" 43 13;
	set enemy "canon01" 30 8;

	set event "ev01" 38 12 4 4;	//イベント起動範囲(rect)
	player action true;	//操作可能
}
event "ev01"{
	set enemy "sil01" 33 19 false;
	set enemy "sil01" 28 16;
	wait time 2;
	set enemy "sil01" 26 6 false;
	set enemy "sil01" 23 6 false;
	set enemy "sil01" 23 16;
	set enemy "sil01" 18 16;
	set enemy "sil01" 8 12;

	set event "ev02" 21 5 2 20;	//イベント起動範囲(rect)
}
event "ev02"{
	set enemy "sil01" 5 6;
	set enemy "sil01" 7 13;
	set enemy "sil01" 19 3 false;
	set enemy "sil01" 15 3 false;
	wait time 2;
	set enemy "sil01" 5 21;
	set enemy "sil01" 8 21 false;
	set enemy "sil01" 6 31 false;
	set enemy "sil01" 11 31;
	set enemy "canon01" 6 20;

	set enemy "itemEq" 21 36;

	set event "ev03" 2 22 10 2;	//イベント起動範囲(rect)
}
event "ev03"{
	set enemy "sil01" 12 39 false;
	set enemy "sil01" 14 39;
	set enemy "sil01" 24 16;
	set enemy "sil01" 26 5;
	wait time 2;
	set enemy "sil01" 12 43 false;
	set enemy "sil01" 13 43;
	set enemy "sil01" 14 43 false;
	set enemy "sil01" 22 50;
	wait time 2;
	set enemy "canon01" 12 41;
	set enemy "canon01" 11 47;
	set enemy "sil01" 19 46;
	set enemy "sil01" 21 46 false;
	wait time 2;
	set enemy "ibox01" 5 41;	set enemy "ibox01" 5 43;
	set enemy "gold" 18 55;
	set enemy "gold" 40 56;

	set event "ev04" 19 45 3 3;	//イベント起動範囲(rect)
}
event "ev04"{
	set enemy "sil01" 24 54;
	set enemy "sil01" 16 56;
	set enemy "sil01" 16 58;
	set enemy "sil01" 16 60 false;
	set enemy "canon01" 19 57;
	set enemy "sil01" 26 59;
	set enemy "sil01" 27 55 false;
	wait time 2;
	set enemy "sil01" 35 45;
	set enemy "sil01" 36 45;
	set enemy "sil01" 37 45;
	set enemy "sil01" 8 32;
	set enemy "sil01" 12 32;
	set enemy "sil01" 4 40;
	set enemy "sil01" 6 50;
	wait time 2;
	set enemy "sil01" 38 47 false;
	set enemy "sil01" 41 49;
	set enemy "sil01" 43 49;
	set enemy "sil01" 31 57;
	set enemy "sil01" 38 58;
	set enemy "canon01" 36 53;

	set event "ev05" 31 55 2 8;
}
event "ev05"{
	set enemy "canon01" 50 53;
	set enemy "canon01" 50 55;
	set enemy "sil01" 45 54;
	set enemy "sil01" 45 50;
	wait time 2;
	set enemy "sil01" 49 59;
	set enemy "sil01" 50 59;
	set enemy "sil01" 49 48;
	set enemy "sil01" 50 48;
	wait time 2;
	set enemy "sil01" 16 43;
	set enemy "sil01" 18 47;
	set enemy "sil01" 22 45;

	set enemy "sil01" 54 53 false;
	set enemy "sil01" 54 54 false;
	set enemy "sil01" 54 55 false;
	set enemy "sil01" 53 53 false;
	set enemy "sil01" 53 55 false;

	set event "goal01" 60 53 4 4;	//イベント起動範囲(rect)
}
//31 55 p
event "goal01"{
	player action false;	//操作不可
	fade out 30;		// 
	load map "m012";	// マップデータの読み込み
	set goto 11 10;		//コンパス

	player pos 88 50;	//プレイヤーの位置設定
	cam dir 0 0;
	bgm fade 0,60;
	wait time 2;

	fade in 30;		// 30frmでフェードイン

	wait time 10;
	set enemy "boss01" 10 12;
	wait time 10;

	text{	//テキストボックス表示、閉じるまでwait
		img load 0 , "riz/f9";
		img uv 0 , 0 2 32 32;	//32分割で始点と終点を指定
		img set 0 , 0 0 256 480;	//set rect

		text	"　！！";
		wait;
		text	"これまた大きいのがきたわねー";
		wait;
		img load 0 , "riz/f3";
		text	"……流石に"
			"無視して先に行くのは難しいか";
		wait;
		img load 0 , "riz/f8";
		text	"やるしかないわね";
		wait;
	}
	bgm load "boss01.ogg" 70 60;

	player action true;	//操作可能

	wait boss;
	player action false;	//操作不可

	wait time 60;
	text{	//テキストボックス表示、閉じるまでwait
		img load 0 , "riz/f1";
		img uv 0 , 0 2 32 32;	//32分割で始点と終点を指定
		img set 0 , 0 0 256 480;	//set rect

		text	"思った以上に厳重に警備されてるのね";
		wait;
		text	"あの二人がこの程度でやられるとは思わないけど……";
		wait;
		text	"………………";
		wait;
		img load 0 , "riz/f3";
		text	"……むしろ、誰かが中で騒ぎを起こしたから警備がキツく"
			"なってると考えたほうがいいわね、これは";
		wait;
	}
	out script;

//	load script "stg01";
}
//end