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

def "head"{
	bg color 0 0 0 ;	//背景色の変更
	load map "m021";	// マップデータの読み込み
	set goto 50 62;		//コンパス

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

	wait time 2;

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

	bgm load "stg02.ogg" 70 60;
	// player action を併用することで、条件を満たすまで処理をストップ

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

		text	"なんとか…遺跡の中までは来れたわね";
		wait;
		img load 0 , "riz/f4";
		text	"それにしても此処……昔の建造物にしては"
			"かなり洗練された技術を感じる…";
		wait;
		text	"………";
		wait;
		img load 0 , "riz/f6";
		text	"まぁ、自律型のゴーレムがうろついてる時点で"
			"十分異常なことなんだけど　";
		wait;
		img load 0 , "riz/f4";
		text	"とにかく、さっき以上に注意していかないと"
			"人探しどころじゃなくなりそうね";
		wait;
	}
	set enemy "sil01" 5 13;
	set enemy "sil01" 13 13;

	set enemy "sil01" 2 21;
	set enemy "sil01" 14 21;
	set enemy "sil02" 1 25 false;
	set enemy "sil01" 2 26 false;
	set enemy "sil02" 3 27 false;
	set enemy "sil02" 13 27 false;
	set enemy "sil01" 14 26 false;
	set enemy "sil02" 15 25 false;
	set enemy "canoRol" 9 26;
	player action true;	//操作可能

	wait time 2;
	set event "ev01" 6 14 10 4;	//イベント起動範囲(rect)
	set enemy "gold" 9 32;

}
event "ev01"{
	set enemy "sil01" 2 31;
	set enemy "sil01" 14 31;
	set enemy "sil02" 7 41;
	set enemy "sil02" 7 31 false;
	set enemy "sil02" 8 31 false;
	set enemy "sil02" 9 35 false;

	set enemy "canon02" 6 32;
	set enemy "canon02" 7 32;
	set enemy "canon02" 11 32;
	set enemy "canon02" 12 32;
	set enemy "canofix01" 9 44 down;
	set enemy "canofix01" 3 48 down;
	set enemy "canoRol" 6 49;

	set event "ev02" 5 33 10 4;	//イベント起動範囲(rect)
}
event "ev02"{
	set enemy "sil02" 4 49;
	set enemy "sil01" 5 49 false;
	set enemy "sil01" 6 49 false;
	set enemy "sil02" 7 49;

	set enemy "sil02" 1 49 false;
	set enemy "sil02" 1 50 false;
	set enemy "sil01" 1 51 false;
	set enemy "sil01" 1 52 false;

	set enemy "canofix01" 11 45 right;
	set enemy "canofix01" 12 46 right;
	set enemy "canoRol" 8 58 rb;

	set event "ev03" 3 41 10 3;	//イベント起動範囲(rect)
}
event "ev03"{
	set enemy "canon02" 11 59;
	set enemy "canon01" 20 42;
	set enemy "canon01" 23 39;
	set enemy "canofix01" 27 57 left;

	set enemy "sil02" 7 55;
	set enemy "sil01" 21 57;
	set enemy "sil02" 25 51;

	wait time 2;
	set enemy "sil02" 23 62 false;
	set enemy "sil02" 24 62 false;
	set enemy "sil02" 25 62 false;
	set enemy "sil01" 23 61 false;
	set enemy "sil01" 24 61 false;
	set enemy "sil01" 25 61 false;

	set enemy "sil01" 19 49;
	set enemy "sil01" 25 52;
	set enemy "sil02" 26 42 false;
	set enemy "sil02" 26 44 false;
	set enemy "sil02" 26 46 false;

	set event "ev04" 14 45 3 20;	//イベント起動範囲(rect)
}
event "ev04"{
	set enemy "sil01" 20 37;
	set enemy "sil01" 20 36;
	set enemy "sil02" 20 35 false;
	set enemy "sil02" 20 34 false;
	set enemy "sil02" 26 30;
	set enemy "sil01" 25 25;
	set enemy "sil02" 25 23 false;
	set enemy "sil02" 24 23 false;

	wait time 2;
	set enemy "sil02" 31 32 false;
	set enemy "sil02" 32 32 false;
	set enemy "sil02" 33 32 false;
	set enemy "sil02" 34 32 false;
	set enemy "sil01" 34 30 false;
	set enemy "sil01" 34 29 false;

	set enemy "canoRol" 29 27;

	set event "ev05" 20 40 6 2;	//イベント起動範囲(rect)
}
event "ev05"{
	set enemy "sil02" 34 20 false;
	set enemy "sil02" 34 21 false;
	set enemy "sil02" 34 22 false;
	set enemy "sil01" 34 23 false;
	set enemy "sil01" 33 20 false;

	set enemy "sil01" 30 20;
	set enemy "sil01" 29 20;

	set enemy "sil02" 27 14 false;
	set enemy "sil02" 27 15 false;
	set enemy "sil01" 27 16 false;
	set enemy "sil01" 27 17;

	set enemy "canofix01" 33 11 up;
	set enemy "canofix01" 37 13 left;
	set enemy "canofix01" 37 16 left;

	set enemy "itemEq" 22 17;

	wait time 2;
	set enemy "sil01" 45 10;
	set enemy "sil02" 46 10;
	set enemy "sil01" 47 10;
	set enemy "sil02" 48 10;
	set enemy "sil01" 49 10;
	set enemy "sil01" 45 7;
	set enemy "sil02" 46 7;
	set enemy "sil01" 47 7;
	set enemy "sil02" 48 7;
	set enemy "sil01" 49 7;

	wait time 2;
	set enemy "sil02" 45 8 false;
	set enemy "sil02" 45 9 false;
	set enemy "sil02" 47 8 false;
	set enemy "sil02" 47 9 false;
	set enemy "sil02" 49 8 false;
	set enemy "sil02" 49 9 false;

	set event "ev06" 24 18 10 2;	//イベント起動範囲(rect)
}
event "ev06"{

	set enemy "sil02" 47 18;
	set enemy "sil01" 47 21;

	set enemy "sil01" 50 18;
	set enemy "sil02" 50 18;
	set enemy "sil01" 50 18;
	set enemy "sil02" 51 18;
	set enemy "sil01" 51 18;
	set enemy "sil02" 51 18;
	wait time 2;

	set enemy "canon01" 41 14;

	set event "ev07" 37 13 3 6;	//イベント起動範囲(rect)
}
event "ev07"{
	set enemy "sil01" 45 33;
	set enemy "sil02" 51 36;
	set enemy "sil01" 51 37 false;
	set enemy "sil02" 51 38 false;
	wait time 2;

	set enemy "sil01" 40 29 false;
	set enemy "sil01" 40 30 false;
	set enemy "sil01" 40 31 false;
	set enemy "sil02" 40 32;
	wait time 2;

	set enemy "canon01" 44 33;
	set enemy "canon01" 46 33;

	set event "ev08" 41 26 10 2;	//イベント起動範囲(rect)
}
event "ev08"{
	set enemy "sil01" 44 49;
	set enemy "sil02" 45 49 false;
	set enemy "sil02" 44 50 false;
	set enemy "sil01" 45 50 false;
	wait time 2;

	set enemy "sil01" 56 50;
	set enemy "sil02" 57 50 false;
	set enemy "sil02" 56 51 false;
	set enemy "sil01" 57 51 false;
	wait time 2;
	set enemy "sil01" 59 50;
	set enemy "sil02" 60 50 false;
	set enemy "sil02" 59 51 false;
	set enemy "sil01" 60 51 false;

	wait time 2;
	set enemy "gold" 45 38;
	set event "ev09" 40 40 10 2;	//イベント起動範囲(rect)
}
event "ev09"{

	set enemy "sil01" 47 54 false;
	set enemy "sil01" 47 55 false;
	set enemy "sil01" 47 56 false;
	set enemy "sil01" 48 54 false;
	set enemy "sil01" 48 55;
	set enemy "sil01" 48 56 false;
	wait time 2;

	set enemy "sil01" 53 54 false;
	set enemy "sil01" 53 55;
	set enemy "sil01" 53 56 false;
	set enemy "sil01" 54 54 false;
	set enemy "sil01" 54 55 false;
	set enemy "sil01" 54 56 false;
	wait time 2;

	set enemy "canoRol" 48 48;
	set enemy "canoRol" 53 48 rb;

	set event "ev10" 50 60 2 2;	//イベント起動範囲(rect)
}
event "ev10"{//goal
	player action false;	//操作不可
	fade out 30;		// 
	load map "m022";	// マップデータの読み込み
	set goto 8 63;		//コンパス

	player pos 68 16;	//プレイヤーの位置設定
	cam dir 0 0;
	fade in 30;		// 30frmでフェードイン
	wait time 10;
	player action true;	//操作可能


	//----------------------------------
	//next map
	set enemy "canon01" 8 15;
	set enemy "canofix01" 7 16 down;
	set enemy "canofix01" 9 16 down;

	set enemy "sil01" 5 19;
	set enemy "sil01" 8 19;
	set enemy "sil01" 11 19;
	set enemy "sil01" 5 24;
	set enemy "sil01" 8 24;
	set enemy "sil01" 11 24;
	wait time 2;
	set enemy "sil02" 5 20;
	set enemy "sil02" 6 20;
	set enemy "sil02" 7 20;
	set enemy "sil02" 9 23;
	set enemy "sil02" 10 23;
	set enemy "sil02" 11 23;
	wait time 2;

	set enemy "sil01" 5 25;
	set enemy "sil01" 5 26;
	set enemy "sil01" 5 27;
	set enemy "sil02" 11 26;
	set enemy "sil02" 11 27;
	set enemy "sil02" 11 28;

	wait time 2;
	set enemy "pil01" 6 29;
	set enemy "sil01" 7 29;
	set enemy "sil02" 8 29;
	set enemy "sil02" 9 29;
	set enemy "pil01" 10 29;
	set enemy "canoRol" 8 21;

	set event "ev11" 1 20 15 2;	//イベント起動範囲(rect)
}


event "ev11"{

	set enemy "sil02" 4 36;
	set enemy "sil02" 5 36;
	set enemy "sil02" 6 36;
	set enemy "sil01" 10 36;
	set enemy "sil01" 11 36;
	set enemy "sil01" 12 36;
	wait time 5;
	set enemy "sil01" 3 42;
	set enemy "sil01" 4 42;
	set enemy "sil01" 5 42;
	set enemy "sil02" 11 42;
	set enemy "sil02" 12 42;
	set enemy "sil02" 13 42;
	set enemy "canon02" 5 30;
	set enemy "canon02" 11 30;

	wait time 2;
	set enemy "canon01" 5 39;
	set enemy "canon01" 11 39;
	set enemy "canoRol" 5 35;
	set enemy "canoRol" 11 37 rb;
	wait time 2;
	set enemy "canon02" 7 40;
	set enemy "canon02" 9 40;
	set enemy "bcanon01" 8 44;
	set enemy "gold" 8 34;

	set move 0 8 46;
	set event "ev12" 5 61 8 2;	//イベント起動範囲(rect)
}
event "ev12"{
	player action false;	//操作不可
	fade out 30;		// 
	load map "m023";	// マップデータの読み込み
	set goto 8 20;		//コンパス

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

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

	move up 52;
	wait time 30;

	text{	//テキストボックス表示、閉じるまでwait
		text 	"　　　？？？「そこで止まれ」";
		wait;
	}
	wait move;
	set enemy "aneras" 13 13;
	wait time 30;

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

		img load 1 "aneras/f1";	img uv 1 , 0 2 32 32;	img set 1 , 384 0 256 480;
		text 	"………";
		wait;
		img 0 col 120;
		text 	"出て行け";
		wait;
		img 0 col 255;	img 1 col 120;
		text 	"………"
			"ここに迷い込んだ調査員……ではなさそうね";
		wait;
		img load 1 "aneras/f2";
		img 0 col 120;	img 1 col 255;
		text 	"ここはアタシのテリトリーだ"
			"好き勝手に暴れやがって";
		wait;
		img load 0 "riz/f1";
		img 0 col 255;	img 1 col 120;
		text 	"お騒がせして悪いと思ってるわ"
			"知り合いがここに入ったまま出てこないのよ"
			"何か知らないかしら？";
		wait;
		img load 1 "aneras/f3";
		img 0 col 120;	img 1 col 255;
		text 	"まったく……次から次へとうっとおしい……"
			"アタシには関係ないね、そんなことは";
		wait;
		img load 1 "aneras/f1";
		text 	"ナイアシスカの穢れを浄化するのがアタシの役目だ"
			"くだらん話はその後にしろ" "とりあえず死ね";
		wait;
		img load 0 , "riz/f3";
		img 0 col 255;	img 1 col 120;
		text	"……話にならないわねー";
		wait;
	}

	bgm load "aneras.ogg" 70 60;
	player action true;	//操作可能

	wait boss;
	player action false;	//操作不可
	wait time 50;
	text{	//テキストボックス表示、閉じるまでwait
		img load 0 , "riz/f7";	img uv 0 , 0 2 32 32;	img set 0 , 0 0 256 480;
		text 	"ここまでね";
		wait;

		img 0 col 120;
		img load 1 , "aneras/f1";	img uv 1 , 0 2 32 32;	img set 1 , 384 0 256 480;
		text 	"く……";
		wait;
	}

	fade out 15;		// 
	load map "m023";	// マップデータの読み込み

	player pos 108 68;	//プレイヤーの位置設定
	cam dir 0 0;
	bgm fade 55 60;
	wait time 2;
	set enemy "aneras" 13 13 wait;
	fade in 15;		// 30frmでフェードイン

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


		text 	"さっきの話の続きだけど"
			"私は人を探しに来てるの";
		wait;
		text 	"何か知らない？";
		wait;
		img 0 col 120;	img 1 col 255;
		text 	"うぜぇ……";
		wait;
		img load 0 "riz/f6";
		img 0 col 255;	img 1 col 120;
		text	"もう少し、この辺で暴れとこうかしら？";
		wait;
		text	"そうすれば、向こうが私に気付いてくれるかもね";
		wait;
		img load 1 "aneras/f2";	
		img 0 col 120;	img 1 col 255;
		text	"………てめー！"  "性格悪いぞ！";
		wait;
		img load 0 , "riz/f1";
		img 0 col 255;	img 1 col 120;
		text 	"別にここを荒らしに来た訳じゃないんだから"
			"見つかればすぐに出て行くわよ"
			"知らないならそれでいいから";
		wait;
		img load 1 , "aneras/f1";	
		img 0 col 120;	img 1 col 255;
		text 	"…………"
			"アタシが実際に見たわけじゃない";
		wait;
		text 	"が、この先の下層区域で"
			"数日前から派手にドンパチやらかしてる奴がいるらしい";
		wait;
		img load 1 , "aneras/f3";	
		text 	"知りたいことがあるなら"
			"そこの管理人のババアにでも聞くんだな";
		wait;
		img 0 col 255;	img 1 col 120;
		text 	"この先の下層区域ね……"
			"ありがとう"
			"参考にさせてもらうわ";
		wait;
	}
	out script;
}
//end