<?xml version="1.0" encoding="shift-jis"?>
<exbulletml>

<!-- ********************************************************************* -->
<!-- *** 中ボス戦                                                      *** -->
<!-- ***                                                               *** -->

<action label="stage_middle_boss_action">

	<!-- *** 第 N 形態 *** -->
	<global name="boss_state">1</global>
	
	<!-- *** ボスの初期ライフ *** -->
	<global name="boss_life">3</global>

	<!-- *** ５面中ボス用カウンター *** -->
	<global name="temp_counter">0</global>
	<global name="temp_multi4">0</global>
	<global name="enemy1_flag">0</global>
	<global name="enemy2_flag">0</global>
	<global name="enemy1_crystal">0</global>
	<global name="enemy2_crystal">0</global>
	<global name="f3_mboss_judge">0</global>


	<setSharedVitalNum>
		<num>1</num><vital>15500+($__grank*200)</vital>
	</setSharedVitalNum>

<!-- debug -->
<!--
	<setSharedVitalNum>
		<num>2</num><vital>14500+($__grank*300)</vital>
	</setSharedVitalNum>
	<setSharedVitalNum>
		<num>3</num><vital>14500+($__grank*300)</vital>
	</setSharedVitalNum>
	<setSharedVitalNum>
		<num>4</num><vital>14500+($__grank*300)</vital>
	</setSharedVitalNum>
	<setSharedVitalNum>
		<num>5</num><vital>14500+($__grank*300)</vital>
	</setSharedVitalNum>
-->
<!-- -->

	<!-- *** 最初のボスオブジェクト作成 *** -->
	<!-- ｘ座標、y座標、体力、inv、スコア、侵食率 -->
	<createRef label="enemy_create_middle_boss">
		<p>380</p>
		<p>-12</p>
		<p>13500+$__temp_grank*200</p>
		<p>0</p>
		<p>95000+$__temp_grank*2000</p>
		<p>$__middle_boss_prate</p>
	</createRef>
	<wait>1</wait>

	<createRef label="enemy_create_middle_boss2">
		<p>260</p>
		<p>-12</p>
		<p>13500+$__temp_grank*200</p>
		<p>0</p>
		<p>95000+$__temp_grank*2000</p>
		<p>$__middle_boss_prate</p>
	</createRef>
	<wait>1</wait>

	<!-- *** ボスのライフ表示オブジェクト作成 *** -->
	<createRef label="boss_life_create"></createRef>

	<!-- *** ボス戦が終わるまで待機                  *** -->	
	<!-- *** 最終形態が終わると Lock 10 が開放される *** -->
	<setLock><num>10</num></setLock>
	<waitLock><num>10</num></waitLock>

</action>

<!-- ********************************************************************* -->
<!-- *** 中ボスオブジェクト作成                                        *** -->
<!-- ***                                                               *** -->
<create label="enemy_create_middle_boss">
	<speed>0</speed><dir>0</dir>
	<cx>$1</cx><cy>$2</cy>
<!--	<vital>$3</vital> -->
	<inv>$4</inv>
	<score>$5</score>
	<prate>$6</prate>
	<enemyRef label="enemy_middle_boss"></enemyRef>
</create>

<create label="enemy_create_middle_boss2">
	<speed>0</speed><dir>0</dir>
	<cx>$1</cx><cy>$2</cy>
<!--	<vital>$3</vital> -->
	<inv>$4</inv>
	<score>$5</score>
	<prate>$6</prate>
	<enemyRef label="enemy_middle_boss2"></enemyRef>
</create>

<!-- ********************************************************************* -->
<!-- *** 中ボスオブジェクト                                            *** -->
<enemy label="enemy_middle_boss">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<presentRef label="stage_middle_boss_present_01"></presentRef>

	<!-- *** VITAL ゲージはボスの子オブジェクトなのでここで作成 *** -->
	<createRef label="boss_vital_create"></createRef>

	<!-- *** 画面下のボス表示を作成 *** -->
	<createRef label="boss_underbar_create"></createRef>

	<!-- タイマー差分初期化 -->
	<global name="end_offset">0</global>
	<global name="end_flag">0</global>
	<global name="enemy1_flag">0</global>
	<global name="enemy1_crystal">0</global>
<!--
	<debugstr><string>ecrystal2</string></debugstr>
	<debugval><num>$_ecrystal2</num></debugval>
-->
	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<shareVital><num>1</num></shareVital>
		<eval name="cross_over">80</eval>
		<revengeRef label="stage_middle_boss_01_revenge"><p>$cross_over</p></revengeRef>

		<global name="timer">12</global>
		<global name="timerwait">255</global>
		<actionRef  label="create_timer0"></actionRef>
		<actionRef  label="stage_middle_boss_01_action"><p>$cross_over</p></actionRef> 
	</repeat>

	<repeat><times>$__boss_state-eq2</times>
		<shareVital><num>2</num></shareVital>
		<aRef l="p_avrage_add"/>
		<eval name="cross_over">90</eval>
		<revengeRef label="stage_middle_boss_02_revenge"><p>$cross_over</p></revengeRef>

		<global name="timer">12</global>
		<global name="timerwait">235</global>
<!--		<actionRef  label="create_timer"></actionRef> -->
		<actionRef  label="stage_middle_boss_02_action"><p>$cross_over</p></actionRef> 
	</repeat>

	<repeat><times>$__boss_state-eq3</times>
		<shareVital><num>3</num></shareVital>
		<aRef l="p_avrage_add"/>
		<eval name="cross_over">100</eval>
		<revengeRef label="stage_middle_boss_03_revenge"><p>$cross_over</p></revengeRef>

		<global name="timer">12</global>
		<global name="timerwait">200</global>
<!--		<actionRef  label="create_timer"></actionRef> -->
		<actionRef  label="stage_middle_boss_03_action"><p>$cross_over</p></actionRef> 
	</repeat>

	<repeat><times>$__boss_state-eq4</times>
		<shareVital><num>4</num></shareVital>
		<aRef l="p_avrage_add"/>
		<eval name="cross_over">90</eval>
		<revengeRef label="stage_middle_boss_04_revenge"><p>$cross_over</p></revengeRef>

		<global name="timer">12</global>
		<global name="timerwait">263</global>
<!--		<actionRef  label="create_timer"></actionRef> -->
		<actionRef  label="stage_middle_boss_04_action"><p>$cross_over</p></actionRef> 
	</repeat>

	<repeat><times>$__boss_state-eq5</times>
		<shareVital><num>5</num></shareVital>
		<aRef l="p_avrage_add"/>
		<eval name="cross_over">110</eval>
		<revengeRef label="stage_middle_boss_05_revenge"><p>$cross_over</p></revengeRef>

		<global name="timer">12</global>
		<global name="timerwait">250</global>
<!--		<actionRef  label="create_timer"></actionRef> -->
		<actionRef  label="stage_middle_boss_05_action"><p>$cross_over</p></actionRef> 
	</repeat>

</enemy>


<enemy label="enemy_middle_boss2">

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>0</radius></collision>
	<presentRef label="stage_middle_boss_present_02"></presentRef>

	<!-- *** 画面下のボス表示を作成 *** -->
	<createRef label="boss_underbar_create"></createRef>

	<global name="enemy2_flag">0</global>
	<global name="enemy2_crystal">0</global>

	<!-- *** 第 N 形態ごとのアクション *** -->
	<repeat><times>$__boss_state-eq1</times>
		<shareVital><num>1</num></shareVital>
		<eval name="cross_over">80</eval>
		<revengeRef label="stage_middle_boss_01_2_revenge"><p>$cross_over</p></revengeRef>

		<actionRef  label="stage_middle_boss_01_2_action"><p>$cross_over</p></actionRef> 
	</repeat>

	<repeat><times>$__boss_state-eq2</times>
		<shareVital><num>2</num></shareVital>
		<eval name="cross_over">90</eval>
		<revengeRef label="stage_middle_boss_02_2_revenge"><p>$cross_over</p></revengeRef>

		<actionRef  label="stage_middle_boss_02_2_action"><p>$cross_over</p></actionRef> 
	</repeat>

	<repeat><times>$__boss_state-eq3</times>
		<shareVital><num>3</num></shareVital>
		<eval name="cross_over">100</eval>
		<revengeRef label="stage_middle_boss_03_2_revenge"><p>$cross_over</p></revengeRef>

		<actionRef  label="stage_middle_boss_03_2_action"><p>$cross_over</p></actionRef> 
	</repeat>

	<repeat><times>$__boss_state-eq4</times>
		<shareVital><num>4</num></shareVital>
		<eval name="cross_over">110</eval>
		<revengeRef label="stage_middle_boss_04_2_revenge"><p>$cross_over</p></revengeRef>

		<actionRef  label="stage_middle_boss_04_2_action"><p>$cross_over</p></actionRef> 
	</repeat>

	<repeat><times>$__boss_state-eq5</times>
		<shareVital><num>5</num></shareVital>
		<eval name="cross_over">110</eval>
		<revengeRef label="stage_middle_boss_05_2_revenge"><p>$cross_over</p></revengeRef>

		<actionRef  label="stage_middle_boss_05_2_action"><p>$cross_over</p></actionRef> 
	</repeat>

</enemy>


<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第１形態　                                *** -->
<!-- ***                                                               *** -->

<action  label="stage_middle_boss_01_action">
	<changeSpeed>
		<speed>4</speed><tm>0</tm>
	</changeSpeed>
	<changeDirection>
		<dir type="abs">221</dir><tm>0</tm>
	</changeDirection>
	<wait>34</wait>


	<changeSpeed>
		<speed>0</speed><tm>40</tm>
	</changeSpeed>
	<wait>45</wait>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>0</p></createRef>

	<!-- 弾幕開始 -->
	<actionRef label="start_boss_bullet"/>

	<eval name="mv_dir">1</eval>
	<eval name="wind">1</eval>

<repeat><times>3</times>

	<debugstr><string>midboss1_place1</string></debugstr>
	<debugval><num>$_self_cx</num></debugval>
	<debugval><num>$_self_cy</num></debugval>

	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>
	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>

	<repeat><times>$__temp_grank-lt2</times>
		<aRef l="5way_act0"><p>0</p><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="5way_act1"><p>0</p><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="5way_act2"><p>0</p><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="5way_act3"><p>0</p><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="5way_act4"><p>0</p><p>0</p></aRef>
	</repeat>

	<chD><dir type="abs">90*$mv_dir</dir><tm>1</tm></chD>
	<chS><sp>1.0</sp><tm>10</tm></chS>
	<w>20</w>
	<chS><sp>0</sp><tm>10</tm></chS>
	<w>80</w>
	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>
	<w>10</w>	

	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_02"><p>-80</p><p>0</p><p>$wind</p></fRef>
	<w>35</w>
	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_02s"><p>40</p><p>0</p><p>$wind</p></fRef>
	<w>35</w>
	<repeat><times>$__temp_grank-gt2</times>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_02s"><p>40</p><p>0</p><p>$wind</p></fRef>
	</repeat>
	<w>35</w>
	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_02s"><p>40</p><p>0</p><p>$wind</p></fRef>
	<w>35</w>
	<repeat><times>$__temp_grank-gt0</times>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_02s"><p>40</p><p>0</p><p>$wind</p></fRef>
	</repeat>

	<chD><dir type="abs">-90*$mv_dir</dir><tm>1</tm></chD>
	<chS><sp>1.0</sp><tm>10</tm></chS>
	<w>40</w>
	<chS><sp>0</sp><tm>10</tm></chS>
	<w>160</w>
	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>
	<w>10</w>

	<aRef l="7way"><p>1*$mv_dir</p><p>0</p></aRef>

	<w>51</w>

	<chD><dir type="abs">90*$mv_dir</dir><tm>1</tm></chD>
	<chS><sp>2.0</sp><tm>10</tm></chS>
	<w>18</w>
	<repeat><times>$__temp_grank-gt2</times>
		<aRef l="7way"><p>-1*$mv_dir</p><p>0</p></aRef>
	</repeat>
	<repeat><times>1-($__temp_grank-gt2)</times>
		<aRef l="7way_2"><p>-1*$mv_dir</p><p>0</p></aRef>
	</repeat>
	<w>18</w>
	<chS><sp>0</sp><tm>10</tm></chS>

	<w>120</w>
	<eval name="mv_dir">-1*$mv_dir</eval>
	<eval name="wind">-1*$wind</eval>


	<!-- タイマー場所チェック -->
	<eval name="time_check2">$_stageplayframe-$time_check1</eval>
	<debugstr><string>midboss1</string></debugstr>
	<debugval><num>$time_check2</num></debugval>
	<debugstr><string>midboss1_place2</string></debugstr>
	<debugval><num>$_self_cx</num></debugval>
	<debugval><num>$_self_cy</num></debugval>


</repeat>
<global name="end_flag">1</global>

</action>

<action  label="stage_middle_boss_01_2_action">
	<changeSpeed>
		<speed>4</speed><tm>0</tm>
	</changeSpeed>
	<changeDirection>
		<dir type="abs">139</dir><tm>0</tm>
	</changeDirection>
	<wait>34</wait>


	<changeSpeed>
		<speed>0</speed><tm>40</tm>
	</changeSpeed>
	<wait>45</wait>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>1</p></createRef>

	<!-- 弾幕開始 -->

	<eval name="mv_dir">1</eval>
	<eval name="wind">1</eval>

<repeat><times>3</times>
	<!-- 難易度調整 -->

	<repeat><times>$__temp_grank-lt2</times>
		<aRef l="5way_act0"><p>2</p><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="5way_act1"><p>2</p><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="5way_act2"><p>2</p><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="5way_act3"><p>2</p><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="5way_act4"><p>2</p><p>1</p></aRef>
	</repeat>

	<chD><dir type="abs">-90*$mv_dir</dir><tm>1</tm></chD>
	<chS><sp>1.0</sp><tm>10</tm></chS>
	<w>20</w>
	<chS><sp>0</sp><tm>10</tm></chS>
	<w>80</w>
	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>
	<w>10</w>	

	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_02"><p>-80</p><p>1</p><p>$wind</p></fRef>
	<w>35</w>
	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_02s"><p>40</p><p>1</p><p>$wind</p></fRef>
	<w>35</w>
	<repeat><times>$__temp_grank-gt2</times>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_02s"><p>40</p><p>1</p><p>$wind</p></fRef>
	</repeat>
	<w>35</w>
	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_02s"><p>40</p><p>1</p><p>$wind</p></fRef>
	<w>35</w>
	<repeat><times>$__temp_grank-gt0</times>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_02s"><p>40</p><p>1</p><p>$wind</p></fRef>
	</repeat>

	<chD><dir type="abs">90*$mv_dir</dir><tm>1</tm></chD>
	<chS><sp>1.0</sp><tm>10</tm></chS>
	<w>40</w>
	<chS><sp>0</sp><tm>10</tm></chS>
	<w>160</w>
	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>
	<w>10</w>

	<aRef l="7way"><p>-1*$mv_dir</p><p>1</p></aRef>

	<w>51-2</w>

	<chD><dir type="abs">-90*$mv_dir</dir><tm>1</tm></chD>
	<chS><sp>2.0</sp><tm>10</tm></chS>
	<w>18</w>
	<repeat><times>$__temp_grank-gt2</times>
		<aRef l="7way"><p>1*$mv_dir</p><p>1</p></aRef>
	</repeat>
	<repeat><times>1-($__temp_grank-gt2)</times>
		<aRef l="7way_2"><p>1*$mv_dir</p><p>1</p></aRef>
	</repeat>
	<w>18</w>
	<chS><sp>0</sp><tm>10</tm></chS>

	<w>120</w>
	<eval name="mv_dir">-1*$mv_dir</eval>
	<eval name="wind">-1*$wind</eval>

	<!-- タイマーチェック -->

</repeat>

</action>

<a l="5way_act0">
	<eval name="sp">1.7+($__temp_grank*0.15)</eval>
	<eval name="chd_tm">120</eval>
	<eval name="dir_off">40+($__temp_grank)*4</eval>
	<w>2+$1</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_01"><p>-6</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<repeat><times>5</times>
	<w>1</w>
	<fRef l="enemy_fire_mb_01s"><p>51</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	</repeat>
	<w>31</w>

	<eval name="chd_tm">180</eval>
	<repeat><times>5</times>
		<evaladd name="chd_tm">-8-($_player_cy%3)</evaladd>
		<aRef l="enemy_bullet_action8"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_01s"><p>13+($_player_cx)%3</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<repeat><times>5</times>
		<w>1</w>
		<fRef l="enemy_fire_mb_01s"><p>51</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		</repeat>
		<w>31</w>
	</repeat>

</a>

<!-- wait  -->
<a l="5way_act1">
	<eval name="sp">1.7+($__temp_grank*0.15)</eval>
	<eval name="chd_tm">120</eval>
	<eval name="dir_off">40+($__temp_grank)*4</eval>
	<w>2+$1</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_01"><p>-6</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<repeat><times>7</times>
	<w>1</w>
	<fRef l="enemy_fire_mb_01s"><p>33</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	</repeat>
	<w>29</w>

	<eval name="chd_tm">180</eval>
	<repeat><times>5</times>
		<evaladd name="chd_tm">-8-($_player_cy%3)</evaladd>
		<aRef l="enemy_bullet_action8"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_01s"><p>13+($_player_cx)%3</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<repeat><times>7</times>
		<w>1</w>
		<fRef l="enemy_fire_mb_01s"><p>33</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		</repeat>
		<w>29</w>
	</repeat>

</a>
<a l="5way_act2">
	<eval name="sp">1.7+($__temp_grank*0.15)</eval>
	<eval name="chd_tm">120</eval>
	<eval name="dir_off">40+($__temp_grank)*4</eval>
	<w>2+$1</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_01"><p>-6</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<repeat><times>8</times>
	<w>1</w>
	<fRef l="enemy_fire_mb_01s"><p>28</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	</repeat>
	<w>28</w>

	<eval name="chd_tm">180</eval>
	<repeat><times>5</times>
		<evaladd name="chd_tm">-8-($_player_cy%3)</evaladd>
		<aRef l="enemy_bullet_action8"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_01s"><p>13+($_player_cx)%3</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<repeat><times>8</times>
		<w>1</w>
		<fRef l="enemy_fire_mb_01s"><p>28</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		</repeat>
		<w>28</w>
	</repeat>

</a>
<a l="5way_act3">
	<eval name="sp">1.7+($__temp_grank*0.15)</eval>
	<eval name="chd_tm">180</eval>
	<eval name="dir_off">52+($__temp_grank)*3</eval>
	<w>2+$1</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_01"><p>-6</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<repeat><times>9</times>
	<w>1</w>
	<fRef l="enemy_fire_mb_01s"><p>24</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	</repeat>
	<w>27</w>

	<eval name="chd_tm">180</eval>
	<repeat><times>5</times>
		<evaladd name="chd_tm">-8-($_player_cy%3)</evaladd>
		<aRef l="enemy_bullet_action8"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_01s"><p>13+($_player_cx)%3</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<repeat><times>9</times>
		<w>1</w>
		<fRef l="enemy_fire_mb_01s"><p>24</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		</repeat>
		<w>27</w>
	</repeat>

</a>

<a l="5way_act4">
	<eval name="sp">1.7+($__temp_grank*0.15)</eval>
	<eval name="chd_tm">180</eval>
	<eval name="dir_off">52+($__temp_grank)*3</eval>
	<w>2+$1</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_01"><p>-6</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<repeat><times>11</times>
	<w>1</w>
	<fRef l="enemy_fire_mb_01s"><p>18</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	</repeat>
	<w>25</w>

	<eval name="chd_tm">180</eval>
	<repeat><times>5</times>
		<evaladd name="chd_tm">-8-($_player_cy%3)</evaladd>
		<aRef l="enemy_bullet_action8"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_01s"><p>13+($_player_cx)%3</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<repeat><times>11</times>
		<w>1</w>
		<fRef l="enemy_fire_mb_01s"><p>18</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/2</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		</repeat>
		<w>25</w>
	</repeat>

</a>

<!--
<a l="5way_act5">
	<eval name="sp">1.7+($__temp_grank*0.15)</eval>
	<eval name="chd_tm">180</eval>
	<eval name="dir_off">64+($__temp_grank)*3</eval>
	<w>2+$1</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_01"><p>-6</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off*2/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off*2/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<repeat><times>11</times>
	<w>1</w>
	<fRef l="enemy_fire_mb_01s"><p>12</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off*2/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off*2/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
	</repeat>
	<w>25</w>

	<eval name="chd_tm">60</eval>
	<repeat><times>5</times>
		<evaladd name="chd_tm">-8-($_player_cy%3)</evaladd>
		<aRef l="enemy_bullet_action8"><p>64</p></aRef>
		<fRef l="enemy_fire_mb_01s"><p>13+($_player_cx)%3</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off*2/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off*2/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<repeat><times>11</times>
		<w>1</w>
		<fRef l="enemy_fire_mb_01s"><p>12</p><p>$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off*2/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>$dir_off/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>0</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off*2/3</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		<fRef l="enemy_fire_mb_01s"><p>3</p><p>-1*$dir_off</p><p>$sp</p><p>$2</p><p>$chd_tm</p></fRef>
		</repeat>
		<w>25</w>
	</repeat>

</a>
-->


<!-- wait 54 -->
<a l="7way">
	<eval name="sp">2.5+($__temp_grank*0.15)</eval>
	<eval name="off">(0.5+($__temp_grank*0.3))*$1</eval>
	<eval name="rp_tm">11+($__temp_grank)</eval>
	<w>2</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_03"><p>-90</p><p>$2</p><p>$sp</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_03s"><p>30</p><p>$2</p><p>$sp</p></fRef>
	</repeat>
	<repeat><times>$rp_tm</times>
	<w>3</w>
	<add name="sp">-0.12</add>
	<fRef l="enemy_fire_mb_03s"><p>-180+$off</p><p>$2</p><p>$sp</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_03s"><p>30</p><p>$2</p><p>$sp</p></fRef>
	</repeat>
	</repeat>
	<w>1+((17-$rp_tm)*3)</w>
</a>

<a l="7way_2">
	<eval name="sp">2.5+($__temp_grank*0.15)</eval>
	<eval name="off">(0.5+($__temp_grank*0.3))*$1</eval>
	<eval name="rp_tm">6+($__temp_grank)</eval>
	<w>2</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_03"><p>-90</p><p>$2</p><p>$sp</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_03s"><p>30</p><p>$2</p><p>$sp</p></fRef>
	</repeat>
	<repeat><times>$rp_tm</times>
	<w>3</w>
	<add name="sp">-0.12</add>
	<fRef l="enemy_fire_mb_03s"><p>-180+$off</p><p>$2</p><p>$sp</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_03s"><p>30</p><p>$2</p><p>$sp</p></fRef>
	</repeat>
	</repeat>
	<w>1+((17-$rp_tm)*3)</w>
</a>

<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第２形態　                                *** -->
<!-- ***                                                               *** -->

<action  label="stage_middle_boss_02_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>280</x><y>160</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>

	<global name="enemy1_flag">1</global>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy2_flag-eq0)</times>
	<repeat><times>($__enemy2_flag-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>0</p></createRef>

	<!-- 弾幕開始 -->
	<actionRef label="start_boss_bullet"/>

	<wait>1</wait>

	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>
	<eval name="off">8.2-($__temp_grank)+($__temp_grank-gt3)+($__temp_grank-gt4)</eval>

	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>

	<fRef l="enemy_fire_mb_04d"><p>60</p><p>0</p></fRef>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>2</times>
	<repeat><times>2</times>
		<w>8</w>
		<fRef l="enemy_fire_mb_04ds"><p>$off</p><p>0</p></fRef>
	</repeat>
	<eval name="off_b">360/(5+$__temp_grank-($__temp_grank-lt3)-($__temp_grank-lt2))</eval>
	<fRef l="enemy_fire_mb_04d2s"><p>$off_b</p><p>0</p></fRef>
	</repeat>


	<!-- 難易度調整用 -->
	<repeat><times>10</times>
	<global name="temp_grank">$__grank</global>
	<eval name="off">8.2-$__temp_grank+($__temp_grank-gt3)+($__temp_grank-gt4)</eval>
	<repeat><times>9</times>
		<aRef l="enemy_bullet_action8"><p>64</p></aRef>
		<repeat><times>2</times>
		<repeat><times>2</times>
			<w>8</w>
			<fRef l="enemy_fire_mb_04ds"><p>$off</p><p>0</p></fRef>
		</repeat>
		<eval name="off_b">360/(5+$__temp_grank-($__temp_grank-lt3)-($__temp_grank-lt2))</eval>
		<fRef l="enemy_fire_mb_04d2s"><p>$off_b</p><p>0</p></fRef>
		</repeat>
	</repeat>
	</repeat>



	<!-- タイマーチェック -->
<!--	<eval name="time_check2">$_stageplayframe</eval>
	<debugstr><string>midboss2</string></debugstr>
	<debugval><num>$time_check2-$time_check1</num></debugval>
-->
<global name="end_flag">1</global>

</action>


<action  label="stage_middle_boss_02_2_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>360</x><y>160</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
	<global name="enemy2_flag">1</global>

	<!-- 相方待ち最大60フレーム -->
	
	<repeat><times>6</times>
	<repeat><times>10*($__enemy1_flag-eq0)</times>
	<repeat><times>($__enemy1_flag-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>1</p></createRef>

	<!-- 弾幕開始 -->
	<wait>1</wait>

	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>

	<!-- wait2ずらし -->
	<w>2</w>

	<eval name="off">-8.2+($__temp_grank)-($__temp_grank-gt3)-($__temp_grank-gt4)</eval>

	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>

	<fRef l="enemy_fire_mb_04d"><p>60</p><p>1</p></fRef>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>2</times>
	<repeat><times>2</times>
		<w>8</w>
		<fRef l="enemy_fire_mb_04ds"><p>$off</p><p>1</p></fRef>
	</repeat>
	<eval name="off_b">360/(5+$__temp_grank-($__temp_grank-lt3)-($__temp_grank-lt2))</eval>
	<fRef l="enemy_fire_mb_04d2s"><p>$off_b</p><p>1</p></fRef>
	</repeat>


	<repeat><times>10</times>
	<eval name="off">-8.2+($__temp_grank)-($__temp_grank-gt3)-($__temp_grank-gt4)</eval>
	<repeat><times>9</times>
		<aRef l="enemy_bullet_action8"><p>64</p></aRef>
		<repeat><times>2</times>
		<repeat><times>2</times>
			<w>8</w>
			<fRef l="enemy_fire_mb_04ds"><p>$off</p><p>1</p></fRef>
		</repeat>
		<eval name="off_b">360/(5+$__temp_grank-($__temp_grank-lt3)-($__temp_grank-lt2))</eval>
		<fRef l="enemy_fire_mb_04d2s"><p>$off_b</p><p>1</p></fRef>
		</repeat>
	</repeat>
	</repeat>


	<!-- タイマーチェック -->
<!--	<eval name="time_check2">$_stageplayframe</eval>
	<debugstr><string>midboss2</string></debugstr>
	<debugval><num>$time_check2-$time_check1</num></debugval>
-->
</action>

<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第３形態　                                *** -->
<!-- ***                                                               *** -->

<action  label="stage_middle_boss_03_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>420</x><y>150</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>

	<global name="enemy1_flag">1</global>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy2_flag-eq0)</times>
	<repeat><times>($__enemy2_flag-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>0</p></createRef>

	<!-- 弾幕開始 -->
	<actionRef label="start_boss_bullet"/>

	<wait>1</wait>
	<eval name="item">0</eval>
	<eval name="ch_vital">64</eval>
	<eval name="ad_vital">64</eval>

<repeat><times>4</times>
	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>

	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>

	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="wide_aim0"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="wide_aim1"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="wide_aim2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5"><p>0</p></aRef>
	</repeat>
	
	<w>45</w>
	<!-- 方向　アイテム　色　体力 弾dirランダム用 -->
	<cRef l="enemy_create_mb3_01"><p>-10</p><p>1</p><p>0</p><p>$ch_vital</p><p>16</p></cRef>
	<w>5</w>
	<cRef l="enemy_create_mb3_01s"><p>10</p><p>($item%2)</p><p>0</p><p>$ch_vital</p><p>38</p></cRef>
	<w>5</w>
	<repeat><times>$__temp_grank-gt2</times>
		<cRef l="enemy_create_mb3_01s"><p>10</p><p>1</p><p>0</p><p>$ch_vital</p><p>53</p></cRef>
	</repeat>
	<add name="item">1</add>
	<add name="ch_vital">$ad_vital</add>


	<aRef l="lr_move2"/>

	<w>26</w>
	<repeat><times>$__temp_grank-lt3</times>
		<w>14</w>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3_2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4_2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5_2"><p>0</p></aRef>
	</repeat>
	<w>5</w>

	<chS><sp>1.0</sp><tm>10</tm></chS>
	<w>20</w>
	<chS><sp>0</sp><tm>10</tm></chS>
	<w>60</w>
	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>
	<w>5</w>

	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="wide_aim0"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="wide_aim1"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="wide_aim2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5"><p>0</p></aRef>
	</repeat>

	<w>23</w>
	<repeat><times>$__temp_grank-lt3</times>
		<w>14</w>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3_2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4_2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5_2"><p>0</p></aRef>
	</repeat>
	<w>23</w>

	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="wide_aim0"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="wide_aim1"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="wide_aim2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5"><p>0</p></aRef>
	</repeat>

	<w>120</w>

	<!-- タイマーチェック -->
	<eval name="time_check2">$_stageplayframe</eval>
	<debugstr><string>midboss2</string></debugstr>
	<debugval><num>$time_check2-$time_check1</num></debugval>

</repeat>
<global name="end_flag">1</global>

</action>


<action  label="stage_middle_boss_03_2_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>220</x><y>150</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
	<global name="enemy2_flag">1</global>

	<!-- 相方待ち最大60フレーム -->
	
	<repeat><times>6</times>
	<repeat><times>10*($__enemy1_flag-eq0)</times>
	<repeat><times>($__enemy1_flag-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>1</p></createRef>

	<!-- 弾幕開始 -->
	<wait>1</wait>
	<eval name="item">0</eval>
	<eval name="ch_vital">64</eval>
	<eval name="ad_vital">64</eval>

<repeat><times>4</times>
	<!-- 難易度調整用 -->

	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>

	<!-- wait2ずらし -->
	<w>2</w>

	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="wide_aim0"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="wide_aim1"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="wide_aim2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5"><p>1</p></aRef>
	</repeat>

	<w>45</w>
	<!-- 方向　アイテム　色　体力 弾dirランダム -->
	<cRef l="enemy_create_mb3_01"><p>-10</p><p>1</p><p>1</p><p>$ch_vital</p><p>53</p></cRef>
	<w>5</w>
	<cRef l="enemy_create_mb3_01s"><p>10</p><p>($item+1)%2</p><p>1</p><p>$ch_vital</p><p>29</p></cRef>
	<w>5</w>
	<repeat><times>$__temp_grank-gt2</times>
		<cRef l="enemy_create_mb3_01s"><p>10</p><p>1</p><p>1</p><p>$ch_vital</p><p>13</p></cRef>
	</repeat>
	<add name="item">1</add>
	<add name="ch_vital">$ad_vital</add>

	<w>26</w>
	<repeat><times>$__temp_grank-lt3</times>
		<w>14</w>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3_2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4_2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5_2"><p>1</p></aRef>
	</repeat>
	<w>5</w>

	<aRef l="lr_move2"/>

	<chS><sp>1.0</sp><tm>10</tm></chS>
	<w>20</w>
	<chS><sp>0</sp><tm>10</tm></chS>
	<w>65</w>


	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="wide_aim0"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="wide_aim1"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="wide_aim2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5"><p>1</p></aRef>
	</repeat>

	<w>23</w>
	<repeat><times>$__temp_grank-lt3</times>
		<w>14</w>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3_2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4_2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5_2"><p>1</p></aRef>
	</repeat>
	<w>23</w>

	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="wide_aim0"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="wide_aim1"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="wide_aim2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="wide_aim3"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="wide_aim4"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="wide_aim5"><p>1</p></aRef>
	</repeat>

	<w>120-2</w>

	<!-- タイマーチェック -->
<!--	<eval name="time_check2">$_stageplayframe</eval>
	<debugstr><string>midboss2</string></debugstr>
	<debugval><num>$time_check2-$time_check1</num></debugval>
-->
</repeat>
</action>


<a l="wide_aim0">
	<eval name="sp">1.3+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-90</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>4</times>
		<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>36</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>4</times>
		<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>8</w>

	<repeat><times>2</times>
		<add name="sp">-0.25</add>
		<fRef l="enemy_fire_mb_05s"><p>-180</p><p>$1</p><p>$sp</p><p>2</p></fRef>
		<repeat><times>4</times>
			<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<fRef l="enemy_fire_mb_05s"><p>36</p><p>$1</p><p>$sp</p><p>1</p></fRef>
		<repeat><times>4</times>
			<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>8</w>
	</repeat>
	<w>46</w>
	<aRef l="enemy_bullet_action2"><p>64</p></aRef>
	<eval name="sp">2.0+($__temp_grank*0.2)</eval>
	<fRef l="enemy_fire_mb_05_2"><p>-6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>2</times>
		<fRef l="enemy_fire_mb_05_2s"><p>6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
</a>

<a l="wide_aim1">
	<eval name="sp">1.3+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-75</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>4</times>
		<fRef l="enemy_fire_mb_05s"><p>15</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>30</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>4</times>
		<fRef l="enemy_fire_mb_05s"><p>15</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>8</w>

	<repeat><times>2</times>
		<add name="sp">-0.25</add>
		<fRef l="enemy_fire_mb_05s"><p>-150</p><p>$1</p><p>$sp</p><p>2</p></fRef>
		<repeat><times>4</times>
			<fRef l="enemy_fire_mb_05s"><p>15</p><p>$1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<fRef l="enemy_fire_mb_05s"><p>30</p><p>$1</p><p>$sp</p><p>1</p></fRef>
		<repeat><times>4</times>
			<fRef l="enemy_fire_mb_05s"><p>15</p><p>$1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>8</w>
	</repeat>
	<w>46</w>
	<aRef l="enemy_bullet_action2"><p>64</p></aRef>
	<eval name="sp">2.0+($__temp_grank*0.2)</eval>
	<fRef l="enemy_fire_mb_05_2"><p>-6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>2</times>
		<fRef l="enemy_fire_mb_05_2s"><p>6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
</a>

<a l="wide_aim2">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-72</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>5</times>
		<fRef l="enemy_fire_mb_05s"><p>12</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>24</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>5</times>
		<fRef l="enemy_fire_mb_05s"><p>12</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>8</w>

	<repeat><times>2</times>
		<add name="sp">-0.25</add>
		<fRef l="enemy_fire_mb_05s"><p>-144</p><p>$1</p><p>$sp</p><p>2</p></fRef>
		<repeat><times>5</times>
			<fRef l="enemy_fire_mb_05s"><p>12</p><p>$1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<fRef l="enemy_fire_mb_05s"><p>20</p><p>$1</p><p>$sp</p><p>1</p></fRef>
		<repeat><times>5</times>
			<fRef l="enemy_fire_mb_05s"><p>12</p><p>$1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>8</w>
	</repeat>
	<w>46</w>
	<aRef l="enemy_bullet_action2"><p>64</p></aRef>
	<eval name="sp">2.0+($__temp_grank*0.2)</eval>
	<fRef l="enemy_fire_mb_05_2"><p>-6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>2</times>
		<fRef l="enemy_fire_mb_05_2s"><p>6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
</a>

<a l="wide_aim3">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-70</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05s"><p>10</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>20</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05s"><p>10</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>

	<repeat><times>3</times>
	<add name="sp">-0.2</add>
	<fRef l="enemy_fire_mb_05s"><p>-140</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05s"><p>10</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>20</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05s"><p>10</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>
	</repeat>
	<w>45</w>
	<aRef l="enemy_bullet_action2"><p>64</p></aRef>
	<eval name="sp">2.0+($__temp_grank*0.2)</eval>
	<fRef l="enemy_fire_mb_05_2"><p>-6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>2</times>
		<fRef l="enemy_fire_mb_05_2s"><p>6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
</a>

<!-- wait14 -->
<a l="wide_aim3_2">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-70</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05s"><p>10</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>20</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05s"><p>10</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>

	<add name="sp">-0.2</add>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-140</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05s"><p>10</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>20</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05s"><p>10</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>
</a>


<a l="wide_aim4">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-72</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>

	<repeat><times>3</times>
	<add name="sp">-0.2</add>
	<fRef l="enemy_fire_mb_05s"><p>-144</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>
	</repeat>
	<w>45</w>
	<aRef l="enemy_bullet_action2"><p>64</p></aRef>
	<eval name="sp">2.0+($__temp_grank*0.2)</eval>
	<fRef l="enemy_fire_mb_05_2"><p>-6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>2</times>
		<fRef l="enemy_fire_mb_05_2s"><p>6</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
</a>

<!-- wait14 -->
<a l="wide_aim4_2">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-72</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>

	<add name="sp">-0.2</add>
	<fRef l="enemy_fire_mb_05s"><p>-144</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>
</a>

<a l="wide_aim5">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-72</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>

	<repeat><times>4</times>
	<add name="sp">-0.2</add>
	<fRef l="enemy_fire_mb_05s"><p>-144</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>
	</repeat>
	<w>38</w>
	<aRef l="enemy_bullet_action2"><p>64</p></aRef>
	<eval name="sp">2.0+($__temp_grank*0.2)</eval>
	<fRef l="enemy_fire_mb_05_2"><p>-8</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>4</times>
		<fRef l="enemy_fire_mb_05_2s"><p>4</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
</a>

<!-- wait 14 -->
<a l="wide_aim5_2">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-72</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>

	<add name="sp">-0.2</add>
	<fRef l="enemy_fire_mb_05s"><p>-144</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>18</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_05s"><p>9</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>
</a>
<!--
<a l="wide_aim5">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-72</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_05s"><p>8</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>16</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_05s"><p>8</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>

	<repeat><times>4</times>
	<add name="sp">-0.2</add>
	<fRef l="enemy_fire_mb_05s"><p>-144</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_05s"><p>8</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>16</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_05s"><p>8</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>
	</repeat>
	<w>38</w>
	<aRef l="enemy_bullet_action2"><p>64</p></aRef>
	<eval name="sp">2.0+($__temp_grank*0.2)</eval>
	<fRef l="enemy_fire_mb_05_2"><p>-12</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_05_2s"><p>4</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
</a>

<a l="wide_aim5_2">
	<eval name="sp">1.2+($__temp_grank*0.2)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_05"><p>-72</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_05s"><p>8</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>16</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_05s"><p>8</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>

	<add name="sp">-0.2</add>
	<fRef l="enemy_fire_mb_05s"><p>-144</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_05s"><p>8</p><p>$1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<fRef l="enemy_fire_mb_05s"><p>16</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_05s"><p>8</p><p>$1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>6</w>
</a>
-->
<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第４形態　                                *** -->
<!-- ***                                                               *** -->

<action  label="stage_middle_boss_04_action">
<!-- SECRET MAGIC 演出 0:mid enemy magic  1:mid secret magic 2:boss enemy magic 3:boss secret magic -->
<actionRef label="enemy_magic_action"><p>0</p><p>50</p><p>95</p><p>55</p><p>125</p></actionRef>

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>500-16</x><y>16</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
	<global name="enemy1_flag">1</global>

	<wait>55</wait>

	<!-- 相方待ち最大120フレーム -->
	<repeat><times>12</times>
	<repeat><times>10*($__enemy2_flag-eq0)</times>
	<repeat><times>($__enemy2_flag-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>0</p></createRef>

<!-- 弾幕開始 -->
	<actionRef label="start_boss_bullet"/>

	<!-- 難易度調整用 -->
	<eval name="trank">$__grank</eval>

	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>
	<eval name="off">0</eval>

	<chD><dir type="abs">180</dir><tm>1</tm></chD>
	<chS><sp type="abs">4</sp><tm>1</tm></chS>
	<!-- 112 -->
	<repeat><times>$trank-eq0</times>
		<aRef l="112_act1"><p>$off</p></aRef>
	</repeat>
	<repeat><times>($trank-eq1)</times>
		<aRef l="112_act2"><p>$off</p></aRef>
	</repeat>
	<repeat><times>($trank-eq2)+($trank-eq3)</times>
		<aRef l="112_act3"><p>$off</p></aRef>
	</repeat>
	<repeat><times>($trank-eq4)+($trank-eq5)</times>
		<aRef l="112_act4"><p>$off</p></aRef>
	</repeat>

	<add name="off">1+($_player_cx%2)</add>

	<repeat><times>15</times>
		<!-- 難易度調整用 -->
		<eval name="trank">$__grank</eval>

		<repeat><times>$trank-eq0</times>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="82_act1"><p>$off</p></aRef>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="112_act1"><p>$off</p></aRef>
			<eval name="off">($off+1+($_player_cx%2))%6</eval>
		</repeat>

		<repeat><times>$trank-eq1</times>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="82_act1"><p>$off</p></aRef>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="112_act2"><p>$off</p></aRef>
			<eval name="off">($off+1+($_player_cx%2))%6</eval>
		</repeat>

		<repeat><times>$trank-eq2</times>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="82_act2"><p>$off</p></aRef>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="112_act3"><p>$off</p></aRef>
			<eval name="off">($off+1+($_player_cx%2))%6</eval>
		</repeat>
		<repeat><times>$trank-eq3</times>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="82_act3"><p>$off</p></aRef>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="112_act3"><p>$off</p></aRef>
			<eval name="off">($off+1+($_player_cx%2))%6</eval>
		</repeat>
		<repeat><times>$trank-eq4</times>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="82_act3"><p>$off</p></aRef>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="112_act4"><p>$off</p></aRef>
			<eval name="off">($off+1+($_player_cx%2))%6</eval>
		</repeat>
		<repeat><times>$trank-eq5</times>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="82_act3"><p>$off</p></aRef>
			<chD><dir type="rel">90</dir><tm>1</tm></chD>
			<aRef l="112_act4"><p>$off</p></aRef>
			<eval name="off">($off+1+($_player_cx%2))%6</eval>
		</repeat>

	</repeat>

	<chD><dir type="rel">90</dir><tm>1</tm></chD>
	<chS><sp type="abs">0</sp><tm>60</tm></chS>

<!--
	<repeat><times>$trank-eq0</times>
	</repeat>
-->

	<!-- タイマーチェック -->
	<eval name="time_check2">$_stageplayframe</eval>
	<debugstr><string>midboss3</string></debugstr>
	<debugval><num>$time_check2-$time_check1</num></debugval>

<global name="end_flag">1</global>
</action>

<a l="112_act1">
	<w>102-19*$1</w>
	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef label="enemy_fire_mb_08dr"><p>90</p></fRef>
	<w>10+19*$1</w>
</a>

<a l="82_act1">
	<w>70-13*$1</w>
	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef label="enemy_fire_mb_08dr"><p>90</p></fRef>
	<w>12+13*$1</w>
</a>


<a l="112_act2">
	<repeat><times>2</times>
		<w>46-8*$1</w>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef label="enemy_fire_mb_08dr"><p>90</p></fRef>
		<w>10+8*$1</w>
	</repeat>
</a>

<a l="82_act2">
	<repeat><times>2</times>
		<w>30-5*$1</w>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef label="enemy_fire_mb_08dr"><p>90</p></fRef>
		<w>11+5*$1</w>
	</repeat>
</a>


<a l="112_act3">
	<repeat><times>3</times>
		<w>32-6*$1</w>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef label="enemy_fire_mb_08dr"><p>90</p></fRef>
		<w>5+6*$1</w>
	</repeat>
	<w>1</w>
</a>

<a l="82_act3">
	<repeat><times>3</times>
		<w>22-4*$1</w>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef label="enemy_fire_mb_08dr"><p>90</p></fRef>
		<w>5+4*$1</w>
	</repeat>
	<w>1</w>
</a>

<a l="112_act4">
	<repeat><times>4</times>
		<w>26-5*$1</w>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef label="enemy_fire_mb_08dr"><p>90</p></fRef>
		<w>2+5*$1</w>
	</repeat>
	<w>1</w>
</a>

<a l="82_act4">
	<repeat><times>4</times>
		<w>18-3*$1</w>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef label="enemy_fire_mb_08dr"><p>90</p></fRef>
		<w>2+3*$1</w>
	</repeat>
	<w>2</w>
</a>







<action  label="stage_middle_boss_04_2_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>150</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>2</term>
	</changeSpeed>

	<wait>2</wait>
	<global name="enemy2_flag">1</global>

	<wait>55</wait>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>12</times>
	<repeat><times>10*($__enemy1_flag-eq0)</times>
	<repeat><times>($__enemy1_flag-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>1</p></createRef>

<!-- 弾幕開始 -->


<repeat><times>6</times>

	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>

	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>

	<repeat><times>$__temp_grank-lt2</times>
		<aRef l="middle_boss_04_2_act1_0"/>
	</repeat>
	<repeat><times>($__temp_grank-eq2)+($__temp_grank-eq3)</times>
		<aRef l="middle_boss_04_2_act1_1"/>
	</repeat>
	<repeat><times>($__temp_grank-eq4)</times>
		<aRef l="middle_boss_04_2_act1_2"/>
	</repeat>
	<repeat><times>($__temp_grank-eq5)</times>
		<aRef l="middle_boss_04_2_act1_3"/>
	</repeat>
	<!-- 47*7  329 -->

	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>

	<repeat><times>$__temp_grank-lt2</times>
		<aRef l="middle_boss_04_2_act2_0"/>
	</repeat>
	<repeat><times>($__temp_grank-eq2)+($__temp_grank-eq3)</times>
		<aRef l="middle_boss_04_2_act2_1"/>
	</repeat>
	<repeat><times>($__temp_grank-eq4)</times>
		<aRef l="middle_boss_04_2_act2_2"/>
	</repeat>
	<repeat><times>($__temp_grank-eq5)</times>
		<aRef l="middle_boss_04_2_act2_3"/>
	</repeat>
	<!-- 47*11  517 -->

	<!-- タイマーチェック -->
	<eval name="time_check2">$_stageplayframe</eval>
	<debugstr><string>midboss3</string></debugstr>
	<debugval><num>$time_check2-$time_check1</num></debugval>


</repeat>
</action>


<a l="middle_boss_04_2_act1_0">
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>
	<eval name="off">1.0+($__temp_grank*0.3)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_07ab"><p>0</p><p>1</p><p>$sp</p><p>3</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
	</repeat>

	<repeat><times>6</times>
		<w>3</w>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
	</repeat>

	<w>22</w>
	<!-- 47 -->

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>7</times>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>19</w>
	</repeat>
	<!-- 47*3  141 -->

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>24+$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>19</w>
	</repeat>

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>24+$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>19</w>
	</repeat>

</a>

<a l="middle_boss_04_2_act1_1">
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>
	<eval name="off">1.0+($__temp_grank*0.3)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_07ab"><p>0</p><p>1</p><p>$sp</p><p>3</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
	</repeat>

	<repeat><times>7</times>
		<w>3</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
	</repeat>

	<w>18</w>
	<!-- 47 -->

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>8</times>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>15</w>
	</repeat>
	<!-- 47*3  141 -->

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20+$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>15</w>
	</repeat>

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20+$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>15</w>
	</repeat>

</a>

<a l="middle_boss_04_2_act1_2">
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>
	<eval name="off">1.0+($__temp_grank*0.3)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_07ab"><p>0</p><p>1</p><p>$sp</p><p>3</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
	</repeat>

	<repeat><times>8</times>
		<w>3</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
	</repeat>

	<w>14</w>
	<!-- 47 -->

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>11</w>
	<!-- 47*2  94 -->

	<repeat><times>3</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20+$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>11</w>
	</repeat>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20+$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>11</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>11</w>

</a>


<a l="middle_boss_04_2_act1_3">
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>
	<eval name="off">1.2+($__temp_grank*0.3)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_07ab"><p>0</p><p>1</p><p>$sp</p><p>3</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
	</repeat>

	<repeat><times>8</times>
		<w>2</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
	</repeat>

	<w>13</w>
	<!-- 47 -->

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>2</w>
	</repeat>
	<w>11</w>
	<!-- 47*2  94 -->

	<repeat><times>3</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>18+$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>2</w>
	</repeat>
	<w>11</w>
	</repeat>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>18+$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>2</w>
	</repeat>
	<w>11</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>18-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>2</w>
	</repeat>
	<w>11</w>

</a>


<a l="middle_boss_04_2_act2_0">
	<eval name="off">1.0+($__temp_grank*0.3)</eval>
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_07s"><p>32</p><p>1</p><p>$sp</p><p>3</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>3</w>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_07s"><p>24-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>19</w>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>24-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>19</w>

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>24-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>24</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>19</w>
	</repeat>

</a>

<a l="middle_boss_04_2_act2_1">
	<eval name="off">1.0+($__temp_grank*0.3)</eval>
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_07s"><p>32</p><p>1</p><p>$sp</p><p>3</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>3</w>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>20-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>15</w>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>15</w>

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>15</w>
	</repeat>

</a>

<a l="middle_boss_04_2_act2_2">
	<eval name="off">1.0+($__temp_grank*0.3)</eval>
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_07s"><p>32</p><p>1</p><p>$sp</p><p>3</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>3</w>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>20-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>11</w>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>11</w>

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>20-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_07s"><p>20</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>3</w>
	</repeat>
	<w>11</w>
	</repeat>

</a>

<a l="middle_boss_04_2_act2_3">
	<eval name="off">1.2+($__temp_grank*0.3)</eval>
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_07s"><p>32</p><p>1</p><p>$sp</p><p>3</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
	</repeat>
	<w>2</w>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_07s"><p>18-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>2</w>
	</repeat>
	<w>11</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>18-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>2</w>
	</repeat>
	<w>11</w>

	<repeat><times>2</times>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_07s"><p>18-$off</p><p>1</p><p>$sp</p><p>3</p></fRef>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>3</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>2</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_07s"><p>18</p><p>1</p><p>$sp</p><p>1</p></fRef>
		</repeat>
		<w>2</w>
	</repeat>
	<w>11</w>
	</repeat>

</a>



<!-- ********************************************************************* -->
<!-- *** 中ボスのアクション　第５形態　                                *** -->
<!-- ***                                                               *** -->

<action  label="stage_middle_boss_05_action">
<!-- SECRET MAGIC 演出 0:mid enemy magic  1:mid secret magic 2:boss enemy magic 3:boss secret magic -->
<actionRef label="enemy_magic_action"><p>1</p><p>50</p><p>95</p><p>55</p><p>125</p></actionRef>

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>200</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>

	<wait>2</wait>
	<global name="enemy1_flag">1</global>
	<wait>55</wait>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy2_flag-eq0)</times>
	<repeat><times>($__enemy2_flag-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>
	<createRef l="boss_ring"><p>$1</p><p>0</p></createRef>

<!-- 弾幕開始 -->
	<actionRef label="start_boss_bullet"/>


<repeat><times>6</times>

	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>
	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>


	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef label="enemy_fire_mb_10d"><p>15</p><p>0</p></fRef>
	<w>1</w>
	<fRef label="enemy_fire_mb_10ds"><p>120</p><p>0</p></fRef>
	<w>1</w>
	<fRef label="enemy_fire_mb_10ds"><p>120</p><p>0</p></fRef>
	<w>1</w>
	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="mb_05_circle0"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="mb_05_circle1"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="mb_05_circle2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="mb_05_circle3"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="mb_05_circle4"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="mb_05_circle5"><p>0</p></aRef>
	</repeat>

	<w>5</w>
	<repeat><times>$__temp_grank-gt1</times>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef label="enemy_fire_mb_10d"><p>60</p><p>0</p></fRef>
		<w>1</w>
		<fRef label="enemy_fire_mb_10ds"><p>120</p><p>0</p></fRef>
		<w>1</w>
		<fRef label="enemy_fire_mb_10ds"><p>120</p><p>0</p></fRef>
	</repeat>
	<repeat><times>1-($__temp_grank-gt1)</times>
	<w>2</w>
	</repeat>

	<w>12</w>

	<!-- タイマーチェック -->
	<eval name="time_check2">$_stageplayframe</eval>
	<debugstr><string>midboss3</string></debugstr>
	<debugval><num>$time_check2-$time_check1</num></debugval>


</repeat>

	<!-- 難易度調整用 -->
	<global name="temp_grank">$__grank</global>
	<!-- タイマーチェック -->
	<eval name="time_check1">$_stageplayframe</eval>


	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef label="enemy_fire_mb_10d"><p>15</p><p>0</p></fRef>
	<w>1</w>
	<fRef label="enemy_fire_mb_10ds"><p>120</p><p>0</p></fRef>
	<w>1</w>
	<fRef label="enemy_fire_mb_10ds"><p>120</p><p>0</p></fRef>
	<w>1</w>
	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="mb_05_circle0"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="mb_05_circle1"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="mb_05_circle2"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="mb_05_circle3"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="mb_05_circle4"><p>0</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="mb_05_circle5"><p>0</p></aRef>
	</repeat>

<global name="end_flag">1</global>
</action>


<action  label="stage_middle_boss_05_2_action">

<!-- センターポイントへ移動 -->
	<changeSpeed>
		<speed type="absolute">2</speed><term>25</term>
	</changeSpeed>

	<changePosition type="center">
		<x>320</x><y>200</y>
	</changePosition>
	<changeSpeed>
		<speed type="absolute">0</speed><term>1</term>
	</changeSpeed>

	<wait>2</wait>
	<global name="enemy2_flag">1</global>

	<wait>55</wait>
	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy1_flag-eq0)</times>
	<repeat><times>($__enemy1_flag-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision> -->
	<createRef l="boss_ring"><p>$1</p><p>1</p></createRef>

<!-- 弾幕開始 -->


<repeat><times>6</times>

	<!-- wait 2ずらし -->
	<w>2</w>

	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef label="enemy_fire_mb_10d"><p>-15</p><p>1</p></fRef>
	<w>1</w>
	<fRef label="enemy_fire_mb_10ds"><p>120</p><p>1</p></fRef>
	<w>1</w>
	<fRef label="enemy_fire_mb_10ds"><p>120</p><p>1</p></fRef>
	<w>1</w>

	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="mb_05_circle0"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="mb_05_circle1"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="mb_05_circle2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="mb_05_circle3"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="mb_05_circle4"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="mb_05_circle5"><p>1</p></aRef>
	</repeat>

	<w>5</w>
	<repeat><times>$__temp_grank-gt1</times>
		<aRef l="enemy_bullet_action"><p>64</p></aRef>
		<fRef label="enemy_fire_mb_10d"><p>-45</p><p>1</p></fRef>
		<w>1</w>
		<fRef label="enemy_fire_mb_10ds"><p>120</p><p>1</p></fRef>
		<w>1</w>
		<fRef label="enemy_fire_mb_10ds"><p>120</p><p>1</p></fRef>
	</repeat>
	<repeat><times>1-($__temp_grank-gt1)</times>
	<w>2</w>
	</repeat>
	<w>12-2</w>


</repeat>
	<!-- wait 2ずらし -->
	<w>2</w>

	<aRef l="enemy_bullet_action"><p>64</p></aRef>
	<fRef label="enemy_fire_mb_10d"><p>-15</p><p>1</p></fRef>
	<w>1</w>
	<fRef label="enemy_fire_mb_10ds"><p>120</p><p>1</p></fRef>
	<w>1</w>
	<fRef label="enemy_fire_mb_10ds"><p>120</p><p>1</p></fRef>
	<w>1</w>

	<repeat><times>$__temp_grank-eq0</times>
		<aRef l="mb_05_circle0"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq1</times>
		<aRef l="mb_05_circle1"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq2</times>
		<aRef l="mb_05_circle2"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq3</times>
		<aRef l="mb_05_circle3"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq4</times>
		<aRef l="mb_05_circle4"><p>1</p></aRef>
	</repeat>
	<repeat><times>$__temp_grank-eq5</times>
		<aRef l="mb_05_circle5"><p>1</p></aRef>
	</repeat>

</action>


<a l="mb_05_circle0">
	<eval name="sp">1.8+($__temp_grank*0.1)</eval>
	<w>10</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_09"><p>0</p><p>$1</p><p>$sp</p><p>72</p></fRef>
	<repeat><times>5</times>
		<fRef l="enemy_fire_mb_09s"><p>60</p><p>$1</p><p>$sp</p><p>72</p></fRef>
	</repeat>
	<repeat><times>5</times>
		<w>9</w>
		<fRef l="enemy_fire_mb_09s"><p>83</p><p>$1</p><p>$sp</p><p>72</p></fRef>
		<repeat><times>5</times>
			<fRef l="enemy_fire_mb_09s"><p>60</p><p>$1</p><p>$sp</p><p>72</p></fRef>
		</repeat>
	</repeat>

	<repeat><times>4</times>
	<w>40</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>5</times>
		<w>9</w>
		<fRef l="enemy_fire_mb_09s"><p>83</p><p>$1</p><p>$sp</p><p>72</p></fRef>
		<repeat><times>5</times>
			<fRef l="enemy_fire_mb_09s"><p>60</p><p>$1</p><p>$sp</p><p>72</p></fRef>
		</repeat>
	</repeat>
	</repeat>
</a>

<a l="mb_05_circle1">
	<eval name="sp">1.8+($__temp_grank*0.1)</eval>
	<w>1</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_09"><p>0</p><p>$1</p><p>$sp</p><p>72</p></fRef>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_09s"><p>360/7</p><p>$1</p><p>$sp</p><p>72</p></fRef>
	</repeat>
	<repeat><times>6</times>
		<w>9</w>
		<fRef l="enemy_fire_mb_09s"><p>69</p><p>$1</p><p>$sp</p><p>72</p></fRef>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_09s"><p>360/7</p><p>$1</p><p>$sp</p><p>72</p></fRef>
		</repeat>
	</repeat>

	<repeat><times>4</times>
	<w>31</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>6</times>
		<w>9</w>
		<fRef l="enemy_fire_mb_09s"><p>69</p><p>$1</p><p>$sp</p><p>72</p></fRef>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_09s"><p>360/7</p><p>$1</p><p>$sp</p><p>72</p></fRef>
		</repeat>
	</repeat>
	</repeat>
</a>


<a l="mb_05_circle2">
	<eval name="sp">1.9+($__temp_grank*0.1)</eval>
	<w>1</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_09"><p>0</p><p>$1</p><p>$sp</p><p>80</p></fRef>
	<repeat><times>7</times>
		<fRef l="enemy_fire_mb_09s"><p>45</p><p>$1</p><p>$sp</p><p>80</p></fRef>
	</repeat>
	<repeat><times>6</times>
		<w>9</w>
		<fRef l="enemy_fire_mb_09s"><p>58</p><p>$1</p><p>$sp</p><p>80</p></fRef>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_09s"><p>45</p><p>$1</p><p>$sp</p><p>80</p></fRef>
		</repeat>
	</repeat>

	<repeat><times>4</times>
	<w>31</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>6</times>
		<w>9</w>
		<fRef l="enemy_fire_mb_09s"><p>58</p><p>$1</p><p>$sp</p><p>80</p></fRef>
		<repeat><times>7</times>
			<fRef l="enemy_fire_mb_09s"><p>45</p><p>$1</p><p>$sp</p><p>80</p></fRef>
		</repeat>
	</repeat>
	</repeat>
</a>

<a l="mb_05_circle3">
	<eval name="sp">2.0+($__temp_grank*0.1)</eval>
	<w>7</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_09"><p>0</p><p>$1</p><p>$sp</p><p>88</p></fRef>
	<repeat><times>8</times>
		<fRef l="enemy_fire_mb_09s"><p>40</p><p>$1</p><p>$sp</p><p>88</p></fRef>
	</repeat>
	<repeat><times>6</times>
		<w>8</w>
		<fRef l="enemy_fire_mb_09s"><p>55</p><p>$1</p><p>$sp</p><p>88</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_09s"><p>40</p><p>$1</p><p>$sp</p><p>88</p></fRef>
		</repeat>
	</repeat>

	<repeat><times>4</times>
	<w>29</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>7</times>
		<w>8</w>
		<fRef l="enemy_fire_mb_09s"><p>55</p><p>$1</p><p>$sp</p><p>88</p></fRef>
		<repeat><times>8</times>
			<fRef l="enemy_fire_mb_09s"><p>40</p><p>$1</p><p>$sp</p><p>88</p></fRef>
		</repeat>
	</repeat>
	</repeat>
</a>

<a l="mb_05_circle4">
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>
	<w>7</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_09"><p>0</p><p>$1</p><p>$sp</p><p>106</p></fRef>
	<repeat><times>9</times>
		<fRef l="enemy_fire_mb_09s"><p>36</p><p>$1</p><p>$sp</p><p>106</p></fRef>
	</repeat>
	<repeat><times>6</times>
		<w>8</w>
		<fRef l="enemy_fire_mb_09s"><p>51</p><p>$1</p><p>$sp</p><p>106</p></fRef>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_09s"><p>36</p><p>$1</p><p>$sp</p><p>106</p></fRef>
		</repeat>
	</repeat>

	<repeat><times>4</times>
	<w>29</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>7</times>
		<w>8</w>
		<fRef l="enemy_fire_mb_09s"><p>51</p><p>$1</p><p>$sp</p><p>106</p></fRef>
		<repeat><times>9</times>
			<fRef l="enemy_fire_mb_09s"><p>36</p><p>$1</p><p>$sp</p><p>106</p></fRef>
		</repeat>
	</repeat>
	</repeat>
</a>

<a l="mb_05_circle5">
	<eval name="sp">2.1+($__temp_grank*0.1)</eval>
	<w>6</w>

	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<fRef l="enemy_fire_mb_09"><p>0</p><p>$1</p><p>$sp</p><p>114</p></fRef>
	<repeat><times>5</times>
		<fRef l="enemy_fire_mb_09s"><p>30</p><p>$1</p><p>$sp</p><p>114</p></fRef>
	</repeat>
	<w>1</w>
	<repeat><times>6</times>
		<fRef l="enemy_fire_mb_09s"><p>30</p><p>$1</p><p>$sp</p><p>114</p></fRef>
	</repeat>
	<repeat><times>6</times>
		<w>7</w>
		<fRef l="enemy_fire_mb_09s"><p>43</p><p>$1</p><p>$sp</p><p>114</p></fRef>
		<repeat><times>5</times>
			<fRef l="enemy_fire_mb_09s"><p>30</p><p>$1</p><p>$sp</p><p>114</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_09s"><p>30</p><p>$1</p><p>$sp</p><p>114</p></fRef>
		</repeat>
	</repeat>

	<repeat><times>4</times>
	<w>21</w>
	<aRef l="enemy_bullet_action8"><p>64</p></aRef>
	<repeat><times>8</times>
		<w>7</w>
		<fRef l="enemy_fire_mb_09s"><p>43</p><p>$1</p><p>$sp</p><p>114</p></fRef>
		<repeat><times>5</times>
			<fRef l="enemy_fire_mb_09s"><p>30</p><p>$1</p><p>$sp</p><p>114</p></fRef>
		</repeat>
		<w>1</w>
		<repeat><times>6</times>
			<fRef l="enemy_fire_mb_09s"><p>30</p><p>$1</p><p>$sp</p><p>114</p></fRef>
		</repeat>
	</repeat>
	</repeat>
</a>



<!-- ********************************************************************* -->
<!-- *** 中ボスのリベンジ　第１形態                                    *** -->
<!-- ***                                                               *** -->

<revenge label="stage_middle_boss_01_revenge">
	<global name="temp_counter">$_counter</global>

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">2000*($_difficulty+1)</eval>
	<eval name="crystal">(10+$_difficulty*2)</eval>
	<eval name="red_crystal">26</eval>
	<global name="temp_multi4">1200</global>
	<eval name="distance">$1</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>

	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフ減少 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<targetRevenge label="enemy_middle_boss2"></targetRevenge>
		<w>1</w>
	</repeat>

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>

		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<addRank><num>-2*$rank_inc</num></addRank>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>

	<global name="enemy1_crystal">1</global>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy2_crystal-eq0)</times>
	<repeat><times>($__enemy2_crystal-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<setSharedVitalNum>
		<num>2</num><vital>15500+($__grank*200)</vital>
	</setSharedVitalNum>

	<wait>60</wait>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="enemy_create_middle_boss">
		<p>$_self_cx</p><p>$_self_cy</p><p>1</p><p>0</p><p>85000+1000*$__grank</p><p>$__middle_boss_prate2</p>
	</createRef>

	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>


<revenge label="stage_middle_boss_01_2_revenge">

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">0</eval>
	<eval name="crystal">(10+$_difficulty*2)</eval>
	<eval name="red_crystal">26</eval>
	<eval name="multi4">0</eval>
	<eval name="distance">$1</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>

	<!-- *** 弾幕のアイテム化 *** -->
	<wait>2</wait>

	<repeat><times>$_revenge_state-eq1</times>

		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>
	<global name="enemy2_crystal">1</global>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy1_crystal-eq0)</times>
	<repeat><times>($__enemy1_crystal-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<wait>60</wait>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="enemy_create_middle_boss2">
		<p>$_self_cx</p><p>$_self_cy</p><p>1</p><p>0</p><p>85000+1000*$__grank</p><p>0</p>
	</createRef>

	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>

<!-- ********************************************************************* -->
<!-- *** 中ボスのリベンジ　第２形態                                    *** -->
<!-- ***                                                               *** -->

<revenge label="stage_middle_boss_02_revenge">
	<global name="temp_counter">$_counter</global>

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">2000*($_difficulty+1)</eval>
	<eval name="crystal">(10+$_difficulty*2)</eval>
	<eval name="red_crystal">26</eval>
	<global name="temp_multi4">1200</global>
	<eval name="distance">$1</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>

	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフ減少 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<targetRevenge label="enemy_middle_boss2"></targetRevenge>
		<w>1</w>
	</repeat>

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>

		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<addRank><num>-2*$rank_inc</num></addRank>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>

	<global name="enemy1_crystal">1</global>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy2_crystal-eq0)</times>
	<repeat><times>($__enemy2_crystal-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<setSharedVitalNum>
		<num>3</num><vital>8500+($__grank*100)</vital>
	</setSharedVitalNum>

	<wait>60</wait>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="enemy_create_middle_boss">
		<p>$_self_cx</p><p>$_self_cy</p><p>1</p><p>0</p><p>87500+1000*$__grank</p><p>$__middle_boss_prate3</p>
	</createRef>

	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>


<revenge label="stage_middle_boss_02_2_revenge">

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">0</eval>
	<eval name="crystal">(10+$_difficulty*2)</eval>
	<eval name="red_crystal">26</eval>
	<eval name="multi4">0</eval>
	<eval name="distance">$1</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_1"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>

	<!-- *** 弾幕のアイテム化 *** -->
	<wait>2</wait>

	<repeat><times>$_revenge_state-eq1</times>

		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>

	<global name="enemy2_crystal">1</global>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy1_crystal-eq0)</times>
	<repeat><times>($__enemy1_crystal-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<wait>60</wait>

	<!-- *** 次の形態のボスの作成 *** -->
	<createRef label="enemy_create_middle_boss2">
		<p>$_self_cx</p><p>$_self_cy</p><p>1</p><p>0</p><p>87500+1000*$__grank</p><p>0</p>
	</createRef>

	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>






<!-- ********************************************************************* -->
<!-- *** 中ボスのリベンジ　第３形態                                    *** -->
<!-- ***                                                               *** -->

<revenge label="stage_middle_boss_03_revenge">
	<global name="temp_counter">$_counter</global>

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">2000*($_difficulty+1)</eval>
	<eval name="crystal">(12+$_difficulty*2)</eval>
	<eval name="red_crystal">30</eval>
	<global name="temp_multi4">720</global>
	<eval name="distance">$1</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_2"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>

	<!-- *** 形態変数の増加 *** -->
	<global name="boss_state">$__boss_state+1</global>

	<!-- *** 表示ライフ減少 *** -->
	<global name="boss_life">$__boss_life-1</global>

	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<targetRevenge label="enemy_middle_boss2"></targetRevenge>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>
		
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<addRank><num>-2*$rank_inc</num></addRank>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>

	<global name="enemy1_crystal">1</global>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy2_crystal-eq0)</times>
	<repeat><times>($__enemy2_crystal-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>

	<setSharedVitalNum>
		<num>4</num><vital>19200+($__grank*300)</vital>
	</setSharedVitalNum>
	<setSharedVitalNum>
		<num>5</num><vital>19200+($__grank*300)</vital>
	</setSharedVitalNum>

	<wait>40</wait>

	<!-- *** 双子使用率 48,49,50,51,52 より大きいで第４形態へ *** -->

	<debugstr><string>secret_debug</string></debugstr>
	<debugval><num>$_twinsrate</num></debugval>

	<eval name="base">2</eval>
	<global name="f3_mboss_judge">((($_twinsrate-gt47)+($_twinsrate-lt53))-eq$base)*($_stagemisscount-eq0)</global>
	<global name="boss_state">$__boss_state+$__f3_mboss_judge</global>
	<w>20</w>

	<!-- *** 次の形態のボスの作成 EM *** -->
	<repeat><times>($__f3_mboss_judge)*1</times>
		<!-- *** 形態数5 secret *** -->
		<sysvar name="secret">$_secret+1</sysvar>
		<aRef l="secret_hint"><p>$base</p></aRef>
		<createRef label="enemy_create_middle_boss">
			<p>$_self_cx</p><p>$_self_cy</p><p>1</p><p>0</p><p>175000+1000*$__grank</p><p>$__middle_boss_prate4</p>
		</createRef>
	</repeat>
	<repeat><times>1-$__f3_mboss_judge</times>
		<!-- *** 形態数4 *** -->
		<createRef label="enemy_create_middle_boss">
			<p>$_self_cx</p><p>$_self_cy</p><p>1</p><p>0</p><p>140000+1000*$__grank</p><p>$__middle_boss_prate4</p>
		</createRef>
	</repeat>

	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>



<revenge label="stage_middle_boss_03_2_revenge">

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">0</eval>
	<eval name="crystal">(12+$_difficulty*2)</eval>
	<eval name="red_crystal">30</eval>
	<eval name="multi4">0</eval>
	<eval name="distance">$1</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_2"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>

	<wait>2</wait>

	<repeat><times>$_revenge_state-eq1</times>
		
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>
	<global name="enemy2_crystal">1</global>

	<!-- 相方待ち最大60フレーム -->
	<repeat><times>6</times>
	<repeat><times>10*($__enemy1_crystal-eq0)</times>
	<repeat><times>($__enemy1_crystal-eq0)</times>
		<w>1</w>
	</repeat>
	</repeat>
	</repeat>


	<wait>60</wait>

	<!-- *** 次の形態のボスの作成 EM *** -->
	<repeat><times>1*($__f3_mboss_judge)</times>
		<!-- *** 形態数5 secret *** -->
		<w>2</w>
		<createRef label="enemy_create_middle_boss2">
			<p>$_self_cx</p><p>$_self_cy</p><p>0</p><p>0</p><p>175000+1000*$__grank</p><p>0</p>
		</createRef>
	</repeat>
	<repeat><times>1-$__f3_mboss_judgee</times>
		<!-- *** 形態数4 *** -->
		<createRef label="enemy_create_middle_boss2">
			<p>$_self_cx</p><p>$_self_cy</p><p>0</p><p>0</p><p>140000+1000*$__grank</p><p>0</p>
		</createRef>
	</repeat>

	<!-- *** 最後に自殺 *** -->
	<vanish></vanish>	
</revenge>

<!-- ********************************************************************* -->
<!-- *** 中ボスのリベンジ　第４形態                                    *** -->
<!-- ***                                                               *** -->

<revenge label="stage_middle_boss_04_revenge">
	<global name="temp_counter">$_counter</global>
	<eval name="ttc_end">$_ttc_frame</eval>

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">2900*($_difficulty+1)</eval>
	<eval name="crystal">(14+$_difficulty*2)</eval>
	<eval name="red_crystal">34</eval>
	<global name="temp_multi4">1260+($__grank-gt3)*70</global>
	<eval name="distance">$1</eval>

	<!-- Enemy Magic Break -->
	<eval name="emb_prate">-18000-($__grank-gt3)*2000-($__grank-gt4)*2000</eval>
	<eval name="emb_prate_tmp1">((-1*$emb_prate)/10000)%10</eval>
	<eval name="emb_prate_tmp2">((-1*$emb_prate)/1000)%10</eval>
	<eval name="emb_score">260000+($__grank-gt3)*20000+($__grank-gt4)*20000</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_4"></actionRef>
	<actionRef label="bg_bossend_action"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>


	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<targetRevenge label="enemy_middle_boss2"></targetRevenge>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>
	<eval name="etb_j">0</eval>

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>
		<!-- *** ノーミスノーボムチェック *** -->
		<eval name="etb_j">(($ttc_end-$__ttc_start)-eq($__temp_counter-$__counter_tmp))*($__ttc_start-gt((300*$_magic_rate/100)-60))</eval>
		<repeat><times>$etb_j</times>
			<actionRef label="emb_letter"><p>$emb_prate_tmp1</p><p>$emb_prate_tmp2</p></actionRef>
			<addPRate><num>$emb_prate</num></addPRate>
			<addScore><score>$emb_score</score></addScore>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
			<addRank><num>$rank_inc</num></addRank>
		</repeat>

		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<addRank><num>-3*$rank_inc</num></addRank>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>
	<wait>60-3*$etb_j</wait>

	<actionRef label="stage_middle_boss_final_revenge_action"></actionRef>
</revenge>


<revenge label="stage_middle_boss_04_2_revenge">

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">0</eval>
	<eval name="crystal">(14+$_difficulty*2)</eval>
	<eval name="red_crystal">34</eval>
	<eval name="multi4">0</eval>
	<eval name="distance">$1</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_4"></actionRef>
	<actionRef label="bg_bossend_action"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>


	<wait>2</wait>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>
	<wait>60</wait>

	<vanish/>
</revenge>


<!-- ********************************************************************* -->
<!-- *** 中ボスのリベンジ　第５形態                                    *** -->
<!-- ***                                                               *** -->

<revenge label="stage_middle_boss_05_revenge">
	<global name="temp_counter">$_counter</global>
	<eval name="ttc_end">$_ttc_frame</eval>

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">3400*($_difficulty+1)</eval>
	<eval name="crystal">(16+$_difficulty*2)</eval>
	<eval name="red_crystal">34</eval>
	<global name="temp_multi4">1200+($__grank-gt3)*60</global>
	<eval name="distance">$1</eval>

	<!-- Enemy Magic Break -->
	<eval name="emb_prate">-19000-($__grank-gt3)*2000-($__grank-gt4)*2000</eval>
	<eval name="emb_prate_tmp1">((-1*$emb_prate)/10000)%10</eval>
	<eval name="emb_prate_tmp2">((-1*$emb_prate)/1000)%10</eval>
	<eval name="emb_score">300000+($__grank-gt3)*20000+($__grank-gt4)*20000</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_4"></actionRef>
	<actionRef label="bg_bossend_action"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>


	<!-- *** 弾幕のアイテム化 *** -->
	<!-- *** 自爆の場合は、弾けし *** -->
	<repeat><times>$_revenge_state-eq1</times>
		<wait>1</wait>
		<changeBulletToItem/>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<targetRevenge label="enemy_middle_boss2"></targetRevenge>
		<wait>1</wait>
		<create>
			<speed>0</speed><direction>0</direction>
			<cx>320</cx><cy>240</cy><vital>0</vital>
			<bombRef label="bomb_clearbomb"></bombRef>
		</create>
	</repeat>
	<eval name="etb_j">0</eval>

	<wait>1</wait>

	<repeat><times>$_revenge_state-eq1</times>
		<!-- *** ノーミスノーボムチェック *** -->
		<eval name="etb_j">(($ttc_end-$__ttc_start)-eq($__temp_counter-$__counter_tmp))*($__ttc_start-gt((300*$_magic_rate/100)-60))</eval>
		<repeat><times>$etb_j</times>
			<actionRef label="emb_letter"><p>$emb_prate_tmp1</p><p>$emb_prate_tmp2</p></actionRef>
			<addPRate><num>$emb_prate</num></addPRate>
			<addScore><score>$emb_score</score></addScore>
			<sysvar name="tbchain">$_tbchain+1</sysvar>
			<addRank><num>$rank_inc</num></addRank>
		</repeat>

		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<addRank><num>-3*$rank_inc</num></addRank>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>
	<wait>60-3*$etb_j</wait>

	<actionRef label="stage_middle_boss_final_revenge_action"></actionRef>
</revenge>


<revenge label="stage_middle_boss_05_2_revenge">

	<!-- ランク変動値、ボーナススピリット、スピリット桁数、クリスタル基本値、赤クリスタル基本値、４倍タイマー -->
	<eval name="rank_inc">0</eval>
	<eval name="crystal">(16+$_difficulty*2)</eval>
	<eval name="red_crystal">34</eval>
	<eval name="multi4">0</eval>
	<eval name="distance">$1</eval>

	<changeSpeed>
		<speed>0</speed><tm>1</tm>
	</changeSpeed>

	<!-- 爆発アクション -->
	<actionRef label="boss_revenge_present_4"></actionRef>
	<actionRef label="bg_bossend_action"></actionRef>
	<presentRef label="stage_middle_boss_revnege_present_01"></presentRef>


	<wait>2</wait>

	<repeat><times>$_revenge_state-eq1</times>
		<eval name="counter_e">$__counter_tmp</eval>
		<actionRef label="item_counter_01_boss_stageF">
		<param>$crystal</param><param>$counter_e</param><param>($__temp_multi4)*1</param><param>24</param><param>($__temp_counter)*1</param><param>$rank_inc</param><param>$distance</param>
		</actionRef>
	</repeat>
	<repeat><times>$_revenge_state-eq3</times>
		<actionRef label="item_counter_01_red"><param>$red_crystal</param></actionRef>
	</repeat>
	<wait>60</wait>

	<vanish/>
</revenge>



<!-- ********************************************************************* -->
<!-- *** 中ボスのリベンジ・サブアクション　最終形態                    *** -->
<!-- ***                                                               *** -->
<action label="stage_middle_boss_final_revenge_action">
	<createRef label="item_create_05"><param>0</param><param>-64+128*($_self_cy-lt90)</param></createRef>

	<!-- 画像の後始末 -->
	<targetRevenge label="stage_boss_timer_fig"></targetRevenge>
	<targetRevenge label="namebox"></targetRevenge>

	<targetRevenge label="boss_life"></targetRevenge>
	<actionRef l="bg_midbossend_action"></actionRef>

	<!-- *** ボス戦ロックを解除 *** -->
	<releaseLock><num>10</num></releaseLock>

	<!-- *** 終了 *** -->
	<vanish></vanish>	
</action>
	


</exbulletml>
