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

<exbulletml>


<!-- stage6A stageend -->

<action label="stageend_EX_action">
<!--
	<wait>120</wait>
-->
	<actionRef label="calc_stage_prate"></actionRef>
	<system><command>disablecollision</command></system>
	<system><command>playermovedisable</command></system>
	<wait>40</wait>
	
	<actionRef label="bg_fadeout_action"></actionRef>
	<wait>60</wait>
	<global name="prate_check">1</global>

	<setLock><num>1</num></setLock>
	<wait>30</wait>
	<create>
		<speed>0</speed>
		<direction type="absolute">0</direction>
		<cx>320</cx><cy>430</cy>
		<object label="6C_text_object">

			<actionRef label="stageend_action_EX"></actionRef>

		</object>
	</create>
	<waitLock><num>1</num></waitLock>

</action>

<action label="stageend_action_EX">
	<actionRef label="stageend_6C_bonusstr_ecrystal_create_action"><param>150</param><param>20</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>200</param><param>$_ecrystal2</param><param>40</param></actionRef>

	<wait>2</wait>
	<actionRef label="stageend_6C_bonusstr_life_create_action"><param>150</param><param>70</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>100000</param><param>$_life</param><param>90</param></actionRef>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_nomiss_create_action"><param>150</param><param>120</param></actionRef>
	<repeat><times>$_stagemisscount-eq0</times>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>1</param><param>140</param></actionRef>
	</repeat>
	<repeat><times>1-($_stagemisscount-eq0)</times>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>0</param><param>140</param></actionRef>
	</repeat>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_tbc_create_action"><param>150</param><param>170</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>300000</param><param>$_tbchain</param><param>190</param></actionRef>
	<wait>2</wait>

	<eval name="subbonus">(200*$_ecrystal2)+(100000*$_life)+(300000*$_tbchain)</eval>
	<repeat><times>$_stagemisscount-eq0</times>
		<evaladd name="subbonus">500000</evaladd>
	</repeat>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_prate_create_action"><param>150</param><param>220</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_prate_create_action"><param>$subbonus</param><param>240</param></actionRef>
	<wait>20</wait>
	
	<actionRef label="stageend_6C_bonusstr_subbonus_create_action"><param>150</param><param>310</param></actionRef>
	<wait>2</wait>
<!--
	<actionRef label="stageend_6C_bonusstr_buzz_create_action"><param>150</param><param>380</param></actionRef>
	<actionRef label="stageend_6C_bonusstr_buzz_ecrystal_create_action"><param>250</param><param>400</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_buzz_create_action"><param>1</param><param>$_buzz</param><param>400</param></actionRef>

	<addItem>
		<flag>1</flag><num>$_buzz</num>
	</addItem>
-->
	<wait>2</wait>

	<eval name="gonextstageflag">0</eval>
	<sysvar name="tbchain">$_tbchain+$__prate_average_total</sysvar>

	<!-- プラクティスなら次の面に進まない -->
	<repeat><times>$_practice_mode-eq1</times>
		<system><command>commitstagescore</command></system>
		<repeat><times>$_replay_mode-eq0</times>
			<eval name="gonextstageflag">1</eval>
		</repeat>	
		<repeat><times>$_replay_mode-eq1</times>
			<eval name="gonextstageflag">2</eval>
		</repeat>	

		<changeTargetVolume label="flash_se"> 
			<num>-10000</num><term>30</term>	
		</changeTargetVolume>

		<wait>30</wait>
		<targetVanish label="flash_se"></targetVanish>
	</repeat>

	<repeat><times>1-($gonextstageflag-eq0)</times>
		<create>
			<x>0</x><y>0</y>
			<cursor>
				<decidedRef    label="cursor_stageend_decided"></decidedRef>
				<selectedRef   label="cursor_stageend_selected"></selectedRef>
				<actionRef	   label="cursor_stageend_action"></actionRef>
			</cursor>
		</create>
		
		<repeat><times>$gonextstageflag-eq1</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_practice_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
			
		</repeat>
		
		<repeat><times>$gonextstageflag-eq2</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend_6A"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>
				
		<repeat><times>$gonextstageflag-eq3</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_trial_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

		<repeat><times>$gonextstageflag-eq4</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend_6A"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

	</repeat>

	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="cursor_stageend_decided_6C"></decidedRef>
			<selectedRef   label="cursor_stageend_selected_6C"></selectedRef>
			<actionRef	   label="cursor_stageend_action_6C"></actionRef>
		</cursor>
	</create>
	<create>
		<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_stageend_6C"></selectableRef>
	</create>

</action>

<!-- ******* All stage 6A End action ********* -->
<action label="stageend_action_all_EX">

	<!-- プラクティスでは表示しない -->
	<repeat><times>$_practice_mode-eq0</times>
		<setLock><num>1</num></setLock>
		<wait>30</wait>
		<create>
			<speed>0</speed>
			<direction type="absolute">0</direction>
			<cx>320</cx><cy>430</cy>
			<object label="all_text_object">

				<actionRef label="stageend_action_all_EXob"></actionRef>

			</object>
		</create>
		<waitLock><num>1</num></waitLock>
	</repeat>
</action>


<action label="stageend_action_all_EXob">

		<sysvar name="_arg0">71</sysvar><eval name="f71">$_gameflag</eval>			
		<sysvar name="_arg0">75</sysvar><eval name="f75">$_gameflag</eval>			

		<eval name="route_score">500000</eval>

		<repeat><times>$f71-eq1</times>
			<evaladd name="route_score">1000000</evaladd>
		</repeat>
		<repeat><times>$f75-eq1</times>
			<evaladd name="route_score">1500000</evaladd>
		</repeat>


		<global name="prate_average_total">$__prate_average_total%1000000</global>

		<wait>1</wait>

		<actionRef label="stageend_all_bonusstr_create_action"><param>235</param><param>50</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_6C_bonusstr_life_create_action"><param>150</param><param>100</param></actionRef>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>250000</param><param>$_life</param><param>120</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_all_bonusstr_mlife_create_action"><param>150</param><param>150</param></actionRef>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>$_maxlife</param><param>170</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_all_bonusstr_route_create_action"><param>150</param><param>200</param></actionRef>
		<actionRef label="stageend_all_bonusfig_create_action_routeEX"><param>170</param><param>220</param><param>$route_score</param></actionRef>
		<wait>2</wait>

		<eval name="sub_score">(250000*$_life)+(500000*$_maxlife)+$route_score</eval>

		<actionRef label="stageend_all_bonusstr_avarage_create_action"><param>150</param><param>250</param></actionRef>
		<actionRef label="stageend_all_bonusfig_create_action_averageEX"><param>$sub_score</param><param>270</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_6C_bonusstr_subbonus_create_action"><param>150</param><param>340</param></actionRef>

	<wait>2</wait>

	<eval name="gonextstageflag">0</eval>
	<system><command>commitstagescore</command></system>


	<!-- リプレイで７面ならエピローグに進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<repeat><times>$_stagenum-eq7</times>
				<eval name="gonextstageflag">4</eval>		
			</repeat>
		</repeat>	
	</repeat>
	
	<!-- リプレイで次の面データがないなら進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<sysvar name="_arg0">$_stagenum+1</sysvar>
			<repeat><times>$_replay_eachstage-eq0</times>
				<eval name="gonextstageflag">4</eval>	
			</repeat>
		</repeat>
		
		<!-- 体験版 -->
		<!--
		<repeat><times>$_replay_mode-eq0</times>
			<repeat><times>$_stagenum-eq3</times>
				<eval name="gonextstageflag">3</eval>				
			</repeat>
		</repeat>
		-->
	</repeat>
		
	<repeat><times>1-($gonextstageflag-eq0)</times>
		<create>
			<x>0</x><y>0</y>
			<cursor>
				<decidedRef    label="cursor_stageend_decided"></decidedRef>
				<selectedRef   label="cursor_stageend_selected"></selectedRef>
				<actionRef	   label="cursor_stageend_action"></actionRef>
			</cursor>
		</create>
		
		<repeat><times>$gonextstageflag-eq1</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_practice_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
			
		</repeat>
		
		<repeat><times>$gonextstageflag-eq2</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>
				
		<repeat><times>$gonextstageflag-eq3</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_trial_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

		<repeat><times>$gonextstageflag-eq4</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend_6A"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

	</repeat>
	
	<actionRef label="common_scenetrans_nextstage_judge"></actionRef>


	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="cursor_stageend_decided"></decidedRef>
			<selectedRef   label="cursor_stageend_selected"></selectedRef>
			<actionRef	   label="cursor_stageend_action"></actionRef>
		</cursor>
	</create>
	<create>
		<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_stageend_6A"></selectableRef>
	</create>

</action>





<!-- ******* All stage 6A End action ********* -->
<action label="stageend_action_all_6A">

	<!-- プラクティスでは表示しない -->
	<repeat><times>$_practice_mode-eq0</times>
		<setLock><num>1</num></setLock>
		<wait>30</wait>
		<create>
			<speed>0</speed>
			<direction type="absolute">0</direction>
			<cx>320</cx><cy>430</cy>
			<object label="all_text_object">

				<actionRef label="stageend_action_all_6Aob"></actionRef>

			</object>
		</create>
		<waitLock><num>1</num></waitLock>
	</repeat>
</action>


<action label="stageend_action_all_6Aob">

		<sysvar name="_arg0">53</sysvar><eval name="f53">$_gameflag</eval>			
		<sysvar name="_arg0">52</sysvar><eval name="f52">$_gameflag</eval>			
		<sysvar name="_arg0">51</sysvar><eval name="f51">$_gameflag</eval>			
		<sysvar name="_arg0">49</sysvar><eval name="f49">$_gameflag</eval>			

		<eval name="route_score">0</eval>

		<repeat><times>$f53-eq1</times>
			<evaladd name="route_score">100000</evaladd>
		</repeat>
		<repeat><times>$f52-eq1</times>
			<evaladd name="route_score">100000</evaladd>
		</repeat>
		<repeat><times>$f52-eq2</times>
			<evaladd name="route_score">400000</evaladd>
		</repeat>
		<repeat><times>$f51-eq1</times>
			<evaladd name="route_score">100000</evaladd>
		</repeat>
		<repeat><times>$f51-eq2</times>
			<evaladd name="route_score">400000</evaladd>
		</repeat>
		<repeat><times>$f49-eq0</times>
			<global name="prate_average_total">($__prate_average_total/6)%1000000</global>
		</repeat>
		<repeat><times>$f49-eq1</times>
			<evaladd name="route_score">100000</evaladd>
			<global name="prate_average_total">($__prate_average_total/7)%1000000</global>
		</repeat>
		<repeat><times>$f49-eq2</times>
			<evaladd name="route_score">1400000</evaladd>
			<global name="prate_average_total">($__prate_average_total/7)%1000000</global>
		</repeat>


		<wait>1</wait>

		<actionRef label="stageend_all_bonusstr_create_action"><param>235</param><param>50</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_6C_bonusstr_life_create_action"><param>150</param><param>100</param></actionRef>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>250000</param><param>$_life</param><param>120</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_all_bonusstr_mlife_create_action"><param>150</param><param>150</param></actionRef>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>$_maxlife</param><param>170</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_all_bonusstr_route_create_action"><param>150</param><param>200</param></actionRef>
		<actionRef label="stageend_all_bonusfig_create_action_route"><param>170</param><param>220</param><param>$route_score</param></actionRef>
		<wait>2</wait>

		<eval name="sub_score">(250000*$_life)+(500000*$_maxlife)+$route_score</eval>

		<actionRef label="stageend_all_bonusstr_avarage_create_action"><param>150</param><param>250</param></actionRef>
		<actionRef label="stageend_all_bonusfig_create_action_average"><param>$sub_score</param><param>270</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_6C_bonusstr_subbonus_create_action"><param>150</param><param>340</param></actionRef>

	<wait>2</wait>

	<eval name="gonextstageflag">0</eval>
	<system><command>commitstagescore</command></system>


	<!-- リプレイで７面ならエピローグに進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<repeat><times>$_stagenum-eq7</times>
				<eval name="gonextstageflag">4</eval>		
			</repeat>
		</repeat>	
	</repeat>
	
	<!-- リプレイで次の面データがないなら進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<sysvar name="_arg0">$_stagenum+1</sysvar>
			<repeat><times>$_replay_eachstage-eq0</times>
				<eval name="gonextstageflag">4</eval>	
			</repeat>
		</repeat>
		
		<!-- 体験版 -->
		<!--
		<repeat><times>$_replay_mode-eq0</times>
			<repeat><times>$_stagenum-eq3</times>
				<eval name="gonextstageflag">3</eval>				
			</repeat>
		</repeat>
		-->
	</repeat>
		
	<repeat><times>1-($gonextstageflag-eq0)</times>
		<create>
			<x>0</x><y>0</y>
			<cursor>
				<decidedRef    label="cursor_stageend_decided"></decidedRef>
				<selectedRef   label="cursor_stageend_selected"></selectedRef>
				<actionRef	   label="cursor_stageend_action"></actionRef>
			</cursor>
		</create>
		
		<repeat><times>$gonextstageflag-eq1</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_practice_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
			
		</repeat>
		
		<repeat><times>$gonextstageflag-eq2</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>
				
		<repeat><times>$gonextstageflag-eq3</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_trial_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

		<repeat><times>$gonextstageflag-eq4</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend_6A"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

	</repeat>
	
	<actionRef label="common_scenetrans_nextstage_judge"></actionRef>


	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="cursor_stageend_decided"></decidedRef>
			<selectedRef   label="cursor_stageend_selected"></selectedRef>
			<actionRef	   label="cursor_stageend_action"></actionRef>
		</cursor>
	</create>
	<create>
		<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_stageend_6A"></selectableRef>
	</create>

</action>

<!-- ダミー選択肢 -->
<selectable label="selectable_stageend_6A">
	<decidedRef    label="selectable_stageend_decided_6A"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_stageend_decided_6A">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>

	<changeTargetVolume label="flash_se">
		<num>-10000</num><term>30</term>	
	</changeTargetVolume>
	
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>disablepause</command></system>
	<system><command>endreplay</command></system>
	
	<actionRef label="stageend_whitebg_create_action"/>
	<actionRef label="common_scenetrans_stage_async_action"></actionRef>

	<wait>120</wait>
	<actionRef label="common_scenetrans_stage_action"></actionRef>
</decided>

<!-- リプレイ終了用ダミー選択肢 -->
<selectable label="selectable_replay_stageend_6A">
	<decidedRef    label="selectable_replay_stageend_decided_6A"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_replay_stageend_decided_6A">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>endreplay</command></system>
	<system><command>disablepause</command></system>

	<actionRef label="stageend_whitebg_create_action"/>
<!--	<actionRef label="stageend_blackbg_create_action"></actionRef> -->
	<wait>30</wait>
	<actionRef label="common_scenetrans_goto_replay_back_action"></actionRef>
</decided>



<!-- ******* All stage 7 End action ********* -->
<action label="stageend_action_all_7">

	<!-- プラクティスでは表示しない -->
	<repeat><times>$_practice_mode-eq0</times>
		<setLock><num>1</num></setLock>
		<wait>30</wait>
		<create>
			<speed>0</speed>
			<direction type="absolute">0</direction>
			<cx>320</cx><cy>430</cy>
			<object label="all_text_object">

				<actionRef label="stageend_action_all_7ob"></actionRef>

			</object>
		</create>
		<waitLock><num>1</num></waitLock>
	</repeat>
</action>


<action label="stageend_action_all_7ob">

		<sysvar name="_arg0">53</sysvar><eval name="f53">$_gameflag</eval>			
		<sysvar name="_arg0">52</sysvar><eval name="f52">$_gameflag</eval>			
		<sysvar name="_arg0">51</sysvar><eval name="f51">$_gameflag</eval>			
		<sysvar name="_arg0">49</sysvar><eval name="f49">$_gameflag</eval>			

		<eval name="route_score">0</eval>

		<repeat><times>$f53-eq1</times>
			<evaladd name="route_score">100000</evaladd>
		</repeat>
		<repeat><times>$f52-eq1</times>
			<evaladd name="route_score">100000</evaladd>
		</repeat>
		<repeat><times>$f52-eq2</times>
			<evaladd name="route_score">400000</evaladd>
		</repeat>
		<repeat><times>$f51-eq1</times>
			<evaladd name="route_score">100000</evaladd>
		</repeat>
		<repeat><times>$f51-eq2</times>
			<evaladd name="route_score">400000</evaladd>
		</repeat>
		<repeat><times>$f49-eq0</times>
			<global name="prate_average_total">($__prate_average_total/6)%1000000</global>
		</repeat>
		<repeat><times>$f49-eq1</times>
			<evaladd name="route_score">100000</evaladd>
			<global name="prate_average_total">($__prate_average_total/7)%1000000</global>
		</repeat>
		<repeat><times>$f49-eq2</times>
			<evaladd name="route_score">1400000</evaladd>
			<global name="prate_average_total">($__prate_average_total/7)%1000000</global>
		</repeat>
		<wait>1</wait>

		<actionRef label="stageend_all_bonusstr_create_action"><param>235</param><param>50</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_6C_bonusstr_life_create_action"><param>150</param><param>100</param></actionRef>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>250000</param><param>$_life</param><param>120</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_all_bonusstr_mlife_create_action"><param>150</param><param>150</param></actionRef>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>$_maxlife</param><param>170</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_all_bonusstr_route_create_action"><param>150</param><param>200</param></actionRef>
		<actionRef label="stageend_all_bonusfig_create_action_route"><param>170</param><param>220</param><param>$route_score</param></actionRef>
		<wait>2</wait>

		<eval name="sub_score">(250000*$_life)+(500000*$_maxlife)+$route_score</eval>

		<actionRef label="stageend_all_bonusstr_avarage_create_action"><param>150</param><param>250</param></actionRef>
		<actionRef label="stageend_all_bonusfig_create_action_average"><param>$sub_score</param><param>270</param></actionRef>
		<wait>2</wait>
		<actionRef label="stageend_6C_bonusstr_subbonus_create_action"><param>150</param><param>340</param></actionRef>

	<wait>2</wait>

	<eval name="gonextstageflag">0</eval>
	<sysvar name="tbchain">$_tbchain+$__prate_average_total</sysvar>
	<system><command>commitstagescore</command></system>


	<!-- リプレイで７面ならエピローグに進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<repeat><times>$_stagenum-eq7</times>
				<eval name="gonextstageflag">4</eval>		
			</repeat>
		</repeat>	
	</repeat>
	
	<!-- リプレイで次の面データがないなら進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<sysvar name="_arg0">$_stagenum+1</sysvar>
			<repeat><times>$_replay_eachstage-eq0</times>
				<eval name="gonextstageflag">4</eval>	
			</repeat>
		</repeat>
		
		<!-- 体験版 -->
		<!--
		<repeat><times>$_replay_mode-eq0</times>
			<repeat><times>$_stagenum-eq3</times>
				<eval name="gonextstageflag">3</eval>				
			</repeat>
		</repeat>
		-->
	</repeat>
		
	<repeat><times>1-($gonextstageflag-eq0)</times>
		<create>
			<x>0</x><y>0</y>
			<cursor>
				<decidedRef    label="cursor_stageend_decided"></decidedRef>
				<selectedRef   label="cursor_stageend_selected"></selectedRef>
				<actionRef	   label="cursor_stageend_action"></actionRef>
			</cursor>
		</create>
		
		<repeat><times>$gonextstageflag-eq1</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_practice_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
			
		</repeat>
		
		<repeat><times>$gonextstageflag-eq2</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>
				
		<repeat><times>$gonextstageflag-eq3</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_trial_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

		<repeat><times>$gonextstageflag-eq4</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend_7"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

	</repeat>
	
	<actionRef label="common_scenetrans_nextstage_judge"></actionRef>


	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="cursor_stageend_decided"></decidedRef>
			<selectedRef   label="cursor_stageend_selected"></selectedRef>
			<actionRef	   label="cursor_stageend_action"></actionRef>
		</cursor>
	</create>
	<create>
		<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_stageend_7"></selectableRef>
	</create>

</action>

<!-- ダミー選択肢 -->
<selectable label="selectable_stageend_7">
	<decidedRef    label="selectable_stageend_decided_7"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_stageend_decided_7">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>disablepause</command></system>
	<system><command>endreplay</command></system>
	
	<actionRef label="stageend_whitebg_create_action"/>
	<actionRef label="common_scenetrans_stage_async_action"></actionRef>

	<wait>120</wait>
	<actionRef label="common_scenetrans_stage_action"></actionRef>
</decided>

<!-- リプレイ終了用ダミー選択肢 -->
<selectable label="selectable_replay_stageend_7">
	<decidedRef    label="selectable_replay_stageend_decided_7"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_replay_stageend_decided_7">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>endreplay</command></system>
	<system><command>disablepause</command></system>

	<actionRef label="stageend_whitebg_create_action"/>
<!--	<actionRef label="stageend_blackbg_create_action"></actionRef> -->
	<wait>30</wait>
	<actionRef label="common_scenetrans_goto_replay_back_action"></actionRef>
</decided>



<action label="stageend_all_bonusstr_create_action">
	<createRef label="str_create_child_green"><param>$1+12*0</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*1</param><param>$2</param><param>76</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*2</param><param>$2</param><param>76</param><param>32</param></createRef>

	<createRef label="str_create_child_green"><param>$1+12*4</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*5</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*6</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*7</param><param>$2</param><param>71</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*8</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<createRef label="str_create_child_green"><param>$1+12*10</param><param>$2</param><param>67</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*11</param><param>$2</param><param>76</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*12</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*13</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*14</param><param>$2</param><param>82</param><param>32</param></createRef>	
</action>

<action label="stageend_all_bonusstr_mlife_create_action">

	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>77</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>88</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>76</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>70</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*10</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*11</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*12</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_all_bonusstr_route_create_action">

	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*10</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_all_bonusfig_create_action_route">

	<sysvar name="_arg0">53</sysvar><eval name="f53">$_gameflag</eval>			
	<sysvar name="_arg0">52</sysvar><eval name="f52">$_gameflag</eval>			
	<sysvar name="_arg0">51</sysvar><eval name="f51">$_gameflag</eval>			
	<sysvar name="_arg0">49</sysvar><eval name="f49">$_gameflag</eval>			

	<!-- ２面 -->
	<createRef label="str_create_child_blue"><param>$1+12*1</param><param>$2</param><param>50</param><param>32</param></createRef>
	<createRef label="str_create_child_blue"><param>$1+12*2</param><param>$2</param><param>65+$f53</param><param>32</param></createRef>

	<!-- ４面 -->
	<createRef label="str_create_child_blue"><param>$1+12*4</param><param>$2</param><param>52</param><param>32</param></createRef>
	<createRef label="str_create_child_blue"><param>$1+12*5</param><param>$2</param><param>65+$f52</param><param>32</param></createRef>

	<!-- ５面 -->
	<createRef label="str_create_child_blue"><param>$1+12*7</param><param>$2</param><param>53</param><param>32</param></createRef>
	<createRef label="str_create_child_blue"><param>$1+12*8</param><param>$2</param><param>65+$f51</param><param>32</param></createRef>

	<!-- ６面 -->
	<createRef label="str_create_child_blue"><param>$1+12*10</param><param>$2</param><param>54</param><param>32</param></createRef>
	<createRef label="str_create_child_blue"><param>$1+12*11</param><param>$2</param><param>65+$f49</param><param>32</param></createRef>


	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$3</param><param>140+360-10</param><param>$2</param></actionRef>	

</action>

<action label="stageend_all_bonusfig_create_action_routeEX">

	<sysvar name="_arg0">71</sysvar><eval name="f71">$_gameflag</eval>			
	<sysvar name="_arg0">75</sysvar><eval name="f75">$_gameflag</eval>			

	<!-- 真 -->
	<createRef label="str_create_child_blue"><param>$1+12*1</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_child_blue"><param>$1+12*2</param><param>$2</param><param>88</param><param>32</param></createRef>
	<createRef label="str_create_child_blue"><param>$1+12*3</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_blue"><param>$1+12*4</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_blue"><param>$1+12*5</param><param>$2</param><param>65</param><param>32</param></createRef>

	<repeat><times>$f71</times>
		<createRef label="str_create_child_blue"><param>$1+12*7</param><param>$2</param><param>84</param><param>32</param></createRef>
		<createRef label="str_create_child_blue"><param>$1+12*8</param><param>$2</param><param>82</param><param>32</param></createRef>
		<createRef label="str_create_child_blue"><param>$1+12*9</param><param>$2</param><param>85</param><param>32</param></createRef>
		<createRef label="str_create_child_blue"><param>$1+12*10</param><param>$2</param><param>69</param><param>32</param></createRef>

	</repeat>
	<repeat><times>$f75</times>
		<createRef label="str_create_child_blue"><param>$1+12*11</param><param>$2</param><param>43</param><param>32</param></createRef>
	</repeat>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$3</param><param>140+360-10</param><param>$2</param></actionRef>	

</action>

<action label="stageend_all_bonusstr_avarage_create_action">

	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>80</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>45</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>69</param><param>32</param></createRef>

	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>86</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*10</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*11</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*12</param><param>$2</param><param>71</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*13</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*15</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*16</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*17</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*18</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*19</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_all_bonusfig_create_action_average">


	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>150</param><param>140+11*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+13*12-10</param><param>$2</param><param>45</param><param>32</param></createRef>
	<eval name="tmprate">($__prate_average_total/10000)%1000000</eval>
	<eval name="tmprate2">($__prate_average_total/100)%1000000</eval>
	<eval name="tmprate3">$tmprate2-100*$tmprate</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$tmprate</param><param>140+16*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action2"><param>$tmprate3</param><param>140+19*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+20*12-10</param><param>$2</param><param>37</param><param>32</param></createRef>

	<eval name="tmprate4">((15000-$tmprate2)/100)%1000</eval>
	<eval name="tmprate5">(15000-$tmprate2)-100*$tmprate4</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action_red"><param>$tmprate4</param><param>140+360-10-12*4</param><param>$2</param></actionRef>	
	<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action_red2"><param>$tmprate5</param><param>140+360-10-12*1</param><param>$2</param></actionRef>	
	<createRef label="str_create_child_red"><param>140+360-10</param><param>$2</param><param>37</param><param>32</param></createRef>


	<eval name="tmpbonus">$1*(1.5-$tmprate2/10000)</eval>
<!-- rank -->
	<actionRef label="stageend_6C_bonusstr_rank_create_action"><param>150</param><param>$2+30</param></actionRef>
	<repeat><times>$_difficulty-eq0</times>
		<createRef label="str_create_child_blue"><param>140+16*12-10</param><param>$2+50</param><param>69</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+18*12-10</param><param>$2+50</param><param>83</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+19*12-10</param><param>$2+50</param><param>89</param><param>28</param></createRef>

		<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>48</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*0</param><param>$2+50</param><param>53</param><param>32</param></createRef>
		<eval name="tmpbonus">$tmpbonus*0.5</eval>
	</repeat>
	<repeat><times>$_difficulty-eq1</times>
		<createRef label="str_create_child_blue"><param>140+14*12-10</param><param>$2+50</param><param>78</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+15*12-10</param><param>$2+50</param><param>79</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+16*12-10</param><param>$2+50</param><param>82</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2+50</param><param>77</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+18*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+19*12-10</param><param>$2+50</param><param>76</param><param>28</param></createRef>

		<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>49</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*0</param><param>$2+50</param><param>48</param><param>32</param></createRef>
	</repeat>
	<repeat><times>$_difficulty-eq2</times>
		<createRef label="str_create_child_blue"><param>140+16*12-10</param><param>$2+50</param><param>72</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+18*12-10</param><param>$2+50</param><param>82</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+19*12-10</param><param>$2+50</param><param>68</param><param>28</param></createRef>

		<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>49</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*0</param><param>$2+50</param><param>53</param><param>32</param></createRef>
		<eval name="tmpbonus">$tmpbonus*1.5</eval>
	</repeat>

	<eval name="tmpbonus">($tmpbonus/10)%200000000</eval>
	<eval name="tmpbonus">$tmpbonus*10</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$tmpbonus</param><param>140+360-10</param><param>$2+50+40</param></actionRef>

	<!-- *** 実際にスコアに加算する ********************************************** -->
	<addScore>
		<score>$tmpbonus</score>	
	</addScore>

	<actionRef label="stageend_6C_bonusstr_total_sc_create_action"><param>150</param><param>$2+140</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action_all"><param>0</param><param>140+360-10-12*0</param><param>$2+160</param></actionRef>

</action>


<action label="stageend_all_bonusfig_create_action_averageEX">


	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>150</param><param>140+11*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+13*12-10</param><param>$2</param><param>45</param><param>32</param></createRef>
	<eval name="tmprate">($__prate_average_total/10000)%1000000</eval>
	<eval name="tmprate2">($__prate_average_total/100)%1000000</eval>
	<eval name="tmprate3">$tmprate2-100*$tmprate</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$tmprate</param><param>140+16*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action2"><param>$tmprate3</param><param>140+19*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+20*12-10</param><param>$2</param><param>37</param><param>32</param></createRef>

	<eval name="tmprate4">((15000-$tmprate2)/100)%1000</eval>
	<eval name="tmprate5">(15000-$tmprate2)-100*$tmprate4</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action_red"><param>$tmprate4</param><param>140+360-10-12*4</param><param>$2</param></actionRef>	
	<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action_red2"><param>$tmprate5</param><param>140+360-10-12*1</param><param>$2</param></actionRef>	
	<createRef label="str_create_child_red"><param>140+360-10</param><param>$2</param><param>37</param><param>32</param></createRef>


	<eval name="tmpbonus">$1*(1.5-$tmprate2/10000)</eval>
<!-- rank -->
	<actionRef label="stageend_6C_bonusstr_rank_create_action"><param>150</param><param>$2+30</param></actionRef>
		<createRef label="str_create_child_blue"><param>140+16*12-10</param><param>$2+50</param><param>69</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2+50</param><param>88</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+18*12-10</param><param>$2+50</param><param>84</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+19*12-10</param><param>$2+50</param><param>82</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+20*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>

		<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>50</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*0</param><param>$2+50</param><param>48</param><param>32</param></createRef>
		<eval name="tmpbonus">$tmpbonus*2.0</eval>

	<eval name="tmpbonus">($tmpbonus/10)%200000000</eval>
	<eval name="tmpbonus">$tmpbonus*10</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$tmpbonus</param><param>140+360-10</param><param>$2+50+40</param></actionRef>

	<!-- *** 実際にスコアに加算する ********************************************** -->
	<addScore>
		<score>$tmpbonus</score>	
	</addScore>

	<actionRef label="stageend_6C_bonusstr_total_sc_create_action"><param>150</param><param>$2+140</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action_all"><param>0</param><param>140+360-10-12*0</param><param>$2+160</param></actionRef>

</action>


<action label="stageend_6C_bonusfig_create_sub_action_all">


	<eval name="localnum">$_score_figure</eval>
	<eval name="i">0</eval>

	<repeat><times>$localnum</times>
		<sysvar name="_arg0">$i</sysvar>
		<eval name="localscore">$_score_numfignum</eval>				

		<createRef label="str_create_child_blue"><param>$2-12*$i</param><param>$3</param><param>48+($localscore%10)</param><param>32</param></createRef>
		<evaladd name="i">1</evaladd>
	</repeat>


</action>

<action label="stageend_all_bonusfig_create_action_average_debug">
<!--
	<eval name="tmprate">($__prate_average_total/10000)%1000000</eval>
	<eval name="tmprate2">($__prate_average_total/100)%1000000</eval>
	<eval name="tmprate3">$tmprate2-100*$tmprate</eval>
-->
	<eval name="tmprate">($_tbchain/10000)%1000000</eval>
	<eval name="tmprate2">($_tbchain/100)%1000000</eval>
	<eval name="tmprate3">$tmprate2-100*$tmprate</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$tmprate</param><param>140+16*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action2"><param>$tmprate3</param><param>140+19*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+20*12-10</param><param>$2</param><param>37</param><param>32</param></createRef>


</action>

<!-- ******* stage6C End action ********* -->
<action label="stageend_action_6C_1">
<!--
	<wait>120</wait>
-->
	<actionRef label="calc_stage_prate"></actionRef>

	<system><command>disablecollision</command></system>
	<system><command>playermovedisable</command></system>
	<wait>40</wait>
	
	<actionRef label="bg_fadeout_action"></actionRef>
	<wait>60</wait>
	<global name="prate_check">1</global>

	<setLock><num>1</num></setLock>
	<wait>30</wait>
	<create>
		<speed>0</speed>
		<direction type="absolute">0</direction>
		<cx>320</cx><cy>430</cy>
		<object label="6C_text_object">

			<actionRef label="stageend_action_6C"></actionRef>

		</object>
	</create>
	<waitLock><num>1</num></waitLock>

</action>

<action label="stageend_action_6C">

	<actionRef label="stageend_6C_bonusstr_ecrystal_create_action"><param>150</param><param>20</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>200</param><param>$_ecrystal2</param><param>40</param></actionRef>

	<wait>2</wait>
	<actionRef label="stageend_6C_bonusstr_life_create_action"><param>150</param><param>70</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>100000</param><param>$_life</param><param>90</param></actionRef>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_nomiss_create_action"><param>150</param><param>120</param></actionRef>
	<repeat><times>$_stagemisscount-eq0</times>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>1</param><param>140</param></actionRef>
	</repeat>
	<repeat><times>1-($_stagemisscount-eq0)</times>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>0</param><param>140</param></actionRef>
	</repeat>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_tbc_create_action"><param>150</param><param>170</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>300000</param><param>$_tbchain</param><param>190</param></actionRef>
	<wait>2</wait>

	<eval name="subbonus">(200*$_ecrystal2)+(100000*$_life)+(300000*$_tbchain)</eval>
	<repeat><times>$_stagemisscount-eq0</times>
		<evaladd name="subbonus">500000</evaladd>
	</repeat>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_prate_create_action"><param>150</param><param>220</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_prate_create_action"><param>$subbonus</param><param>240</param></actionRef>
	<wait>20</wait>
	
	<actionRef label="stageend_6C_bonusstr_subbonus_create_action"><param>150</param><param>310</param></actionRef>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_buzz_create_action"><param>150</param><param>380</param></actionRef>
	<actionRef label="stageend_6C_bonusstr_buzz_ecrystal_create_action"><param>250</param><param>400</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_buzz_create_action"><param>1</param><param>$_buzz</param><param>400</param></actionRef>
	<!-- BUZZ の分 E-Crystal 増加 -->
	<addItem>
		<flag>1</flag><num>$_buzz</num>
	</addItem>

	<wait>2</wait>

	<sysvar name="tbchain">$_tbchain+$__prate_average_total</sysvar>


	<system><command>commitstagescore</command></system>

	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="cursor_stageend_decided_6C"></decidedRef>
			<selectedRef   label="cursor_stageend_selected_6C"></selectedRef>
			<actionRef	   label="cursor_stageend_action_6C"></actionRef>
		</cursor>
	</create>
	<create>
		<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_stageend_6C"></selectableRef>
	</create>
</action>

<!-- ダミーカーソル -->
<action label="cursor_stageend_action_6C"></action>
<selected label="cursor_stageend_selected_6C"></selected>
<decided label="cursor_stageend_decided_6C"><vanish></vanish></decided>

<!-- ダミー選択肢 -->
<selectable label="selectable_stageend_6C">
	<decidedRef    label="selectable_stageend_decided_6C"></decidedRef>
	<selectedRef   label="selectable_stageend_selected_6C"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected_6C"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge_6C"></revengeRef>
	<actionRef	   label="selectable_stageend_action_6C"></actionRef>
</selectable>

<decided    label="selectable_stageend_decided_6C">
<!--
	<sound type="se">
		<track><file type="ogg">cursor_sel</file></track>
		<play><flag>0</flag><loop>0</loop></play>
	</sound>
-->
	<targetRevenge label="6C_text_object"></targetRevenge>
	<wait>90</wait>
	<releaseLock><num>1</num></releaseLock>
	<vanish></vanish>
</decided>
<selected   label="selectable_stageend_selected_6C"></selected>
<unselected label="selectable_stageend_unselected_6C"></unselected>
<revenge	label="selectable_stageend_revenge_6C">
	<vanish></vanish>
</revenge>
<action	    label="selectable_stageend_action_6C"></action>

<action label="stageend_6C_nextstage_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>88</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>84</param><param>32</param></createRef>

	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>71</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<repeat><times>$_nextstage-eq20</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>50</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>65</param><param>32</param></createRef>		
	</repeat>
	<repeat><times>$_nextstage-eq21</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>50</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>66</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq30</times>
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>51</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq40</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>52</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>65</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq41</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>52</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>66</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq42</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>52</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>67</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq50</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>53</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>65</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq51</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>53</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>66</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq52</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>53</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>67</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq60</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>54</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>65</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq61</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>54</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>66</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq62</times>
		<createRef label="str_create_child_blue"><param>140+360-12*2-10</param><param>$2</param><param>54</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>67</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq70</times>
		<createRef label="str_create_child_blue"><param>140+360-12*0-10</param><param>$2</param><param>55</param><param>32</param></createRef>		
	</repeat>

</action>


<action label="stageend_6C_bonusstr_ecrystal_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>45</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>67</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2</param><param>89</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>76</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*10</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*11</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*12</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*13</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*14</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_6C_bonusstr_buzz_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>90</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>90</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_6C_bonusstr_buzz_ecrystal_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>45</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>67</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2</param><param>89</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>76</param><param>32</param></createRef>
</action>

<action label="stageend_6C_bonusstr_life_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>76</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>70</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_6C_bonusstr_nomiss_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>77</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>83</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*10</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*11</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_6C_bonusstr_tbc_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>78</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*10</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*11</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*12</param><param>$2</param><param>75</param><param>32</param></createRef>	

	<createRef label="str_create_child_red"><param>$1+12*14</param><param>$2</param><param>67</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*15</param><param>$2</param><param>72</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*16</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*17</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*18</param><param>$2</param><param>78</param><param>32</param></createRef>	

	<createRef label="str_create_child_red"><param>$1+12*20</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*21</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*22</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*23</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*24</param><param>$2</param><param>83</param><param>32</param></createRef>	

</action>

<action label="stageend_6C_bonusstr_subbonus_create_action">
	<eval name="i">0</eval>
	<repeat><times>29</times>
		<createRef label="str_create_child_red"><param>$1+12*$i</param><param>$2</param><param>104</param><param>32</param></createRef>
		<evaladd name="i">1</evaladd>
	</repeat>	
	<createRef label="str_create_child_red"><param>140+360-10</param><param>$2</param><param>104</param><param>32</param></createRef>

	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2+20</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2+20</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2+20</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2+20</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2+20</param><param>76</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2+20</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2+20</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2+20</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2+20</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*10</param><param>$2+20</param><param>83</param><param>32</param></createRef>	

</action>



<action label="stageend_6C_bonusfig_subbonus_create_action">
	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$1</param><param>140+360-10</param><param>$3</param></actionRef>	
</action>


<action label="stageend_6C_bonusstr_prate_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>80</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>45</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*4</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*10</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*11</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>


<action label="stageend_6C_bonusstr_rank_create_action">
	<createRef label="str_create_child_red"><param>$1+12*0</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*1</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*2</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*3</param><param>$2</param><param>75</param><param>32</param></createRef>
	
	<createRef label="str_create_child_red"><param>$1+12*5</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*6</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*7</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*8</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_child_red"><param>$1+12*9</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_6C_bonusstr_total_sc_create_action">
	<createRef label="str_create_child_green"><param>$1+12*0</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*1</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*2</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*3</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*4</param><param>$2</param><param>76</param><param>32</param></createRef>

	<createRef label="str_create_child_green"><param>$1+12*6</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*7</param><param>$2</param><param>67</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*8</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*9</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_child_green"><param>$1+12*10</param><param>$2</param><param>69</param><param>32</param></createRef>
</action>


<action label="stageend_6C_bonusfig_prate_create_action">
	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>150</param><param>140+11*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+13*12-10</param><param>$2</param><param>45</param><param>32</param></createRef>
	<eval name="tmprate">($_prate/10000)%1000000</eval>
<!--
	<eval name="tmprate2">($_prate/1000)%1000000</eval>
	<eval name="tmprate3">$tmprate2-10*$tmprate</eval>
-->
	<eval name="tmprate2">($_prate/100)%1000000</eval>
	<eval name="tmprate3">$tmprate2-100*$tmprate</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$tmprate</param><param>140+16*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action2"><param>$tmprate3</param><param>140+19*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+20*12-10</param><param>$2</param><param>37</param><param>32</param></createRef>

	<eval name="tmprate4">((15000-$tmprate2)/100)%1000</eval>
	<eval name="tmprate5">(15000-$tmprate2)-100*$tmprate4</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action_red"><param>$tmprate4</param><param>140+360-10-12*4</param><param>$2</param></actionRef>	
	<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action_red2"><param>$tmprate5</param><param>140+360-10-12*1</param><param>$2</param></actionRef>	
	<createRef label="str_create_child_red"><param>140+360-10</param><param>$2</param><param>37</param><param>32</param></createRef>


	<eval name="tmpbonus">$1*(1.5-$tmprate2/10000)</eval>
<!-- rank -->
	<actionRef label="stageend_6C_bonusstr_rank_create_action"><param>150</param><param>$2+30</param></actionRef>
	<repeat><times>$_difficulty-eq0</times>
		<createRef label="str_create_child_blue"><param>140+16*12-10</param><param>$2+50</param><param>69</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+18*12-10</param><param>$2+50</param><param>83</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+19*12-10</param><param>$2+50</param><param>89</param><param>28</param></createRef>

		<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>48</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*0</param><param>$2+50</param><param>53</param><param>32</param></createRef>
		<eval name="tmpbonus">$tmpbonus*0.5</eval>
	</repeat>
	<repeat><times>$_difficulty-eq1</times>
		<createRef label="str_create_child_blue"><param>140+14*12-10</param><param>$2+50</param><param>78</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+15*12-10</param><param>$2+50</param><param>79</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+16*12-10</param><param>$2+50</param><param>82</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2+50</param><param>77</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+18*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+19*12-10</param><param>$2+50</param><param>76</param><param>28</param></createRef>

		<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>49</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*0</param><param>$2+50</param><param>48</param><param>32</param></createRef>
	</repeat>
	<repeat><times>$_difficulty-eq2</times>
		<createRef label="str_create_child_blue"><param>140+16*12-10</param><param>$2+50</param><param>72</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+18*12-10</param><param>$2+50</param><param>82</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+19*12-10</param><param>$2+50</param><param>68</param><param>28</param></createRef>

		<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>49</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*0</param><param>$2+50</param><param>53</param><param>32</param></createRef>
		<eval name="tmpbonus">$tmpbonus*1.5</eval>
	</repeat>

	<repeat><times>($_stagenum-eq9)</times>
		<createRef label="str_create_child_blue"><param>140+16*12-10</param><param>$2+50</param><param>69</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+17*12-10</param><param>$2+50</param><param>88</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+18*12-10</param><param>$2+50</param><param>84</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+19*12-10</param><param>$2+50</param><param>82</param><param>28</param></createRef>
		<createRef label="str_create_child_blue"><param>140+20*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>

		<createRef label="str_create_child_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>50</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_child_red"><param>140+360-10-12*0</param><param>$2+50</param><param>48</param><param>32</param></createRef>
		<eval name="tmpbonus">$tmpbonus*2.0</eval>
	</repeat>
	<eval name="tmpbonus">($tmpbonus/10)%200000000</eval>
	<eval name="tmpbonus">$tmpbonus*10</eval>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$tmpbonus</param><param>140+360-10</param><param>$2+50+40</param></actionRef>

	<!-- *** 実際にスコアに加算する ********************************************** -->
	<addScore>
		<score>$tmpbonus</score>	
	</addScore>

</action>


<action label="stageend_6C_bonusfig_create_action">
	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$1</param><param>140+11*12-10</param><param>$3</param></actionRef>
	<createRef label="str_create_child_blue"><param>140+13*12-10</param><param>$3</param><param>108</param><param>32</param></createRef>

	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$2</param><param>140+19*12-10</param><param>$3</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_sub_action"><param>$1*$2</param><param>140+360-10</param><param>$3</param></actionRef>	
</action>

<action label="stageend_6C_bonusfig_buzz_create_action">
	<eval name="tmp_buzz">($2/$1)%1000000</eval>
	<actionRef label="stageend_6C_bonusfig_buzz_create_sub_action"><param>$tmp_buzz</param><param>140+360-10</param><param>$3</param></actionRef>	
</action>


<action label="stageend_6C_bonusfig_create_sub_action">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_child_blue"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">1</eval>
	
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>


	<repeat><times>$j</times>
		<createRef label="str_create_child_blue"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
</action>

<action label="stageend_6C_bonusfig_create_sub_action2">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_child_blue"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<createRef label="str_create_child_blue"><param>$2-12</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">2</eval>
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>

	<repeat><times>$j</times>
		<createRef label="str_create_child_blue"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
</action>

<action label="stageend_6C_bonusfig_create_sub_action_red">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_child_red"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">1</eval>
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>

	<repeat><times>$j</times>
		<createRef label="str_create_child_red"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
</action>

<action label="stageend_6C_bonusfig_create_sub_action_red2">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_child_red"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<createRef label="str_create_child_red"><param>$2-12</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">2</eval>
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>

	<repeat><times>$j</times>
		<createRef label="str_create_child_red"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
</action>

<action label="stageend_6C_bonusfig_buzz_create_sub_action">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_child_blue"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">1</eval>
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>

	<repeat><times>$j</times>
		<createRef label="str_create_child_blue"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
		<createRef label="str_create_child_blue"><param>$2-12*$i-12</param><param>$3</param><param>43</param><param>32</param></createRef>

</action>


<action label="stageend_action_6C_2">

	<eval name="gonextstageflag">0</eval>


	<!-- プラクティスなら次の面に進まない -->
	<repeat><times>$_practice_mode-eq1</times>
		<repeat><times>$_replay_mode-eq0</times>
			<eval name="gonextstageflag">1</eval>
		</repeat>	
		<repeat><times>$_replay_mode-eq1</times>
			<eval name="gonextstageflag">2</eval>
		</repeat>	
	</repeat>
	
	<!-- リプレイで次の面データがないなら進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<sysvar name="_arg0">$_stagenum+1</sysvar>
			<repeat><times>$_replay_eachstage-eq0</times>
				<eval name="gonextstageflag">4</eval>	
			</repeat>
		</repeat>
		
		<!-- 体験版 -->
		<!--
		<repeat><times>$_replay_mode-eq0</times>
			<repeat><times>$_stagenum-eq3</times>
				<eval name="gonextstageflag">3</eval>				
			</repeat>
		</repeat>
		-->
	</repeat>
		
	<repeat><times>1-($gonextstageflag-eq0)</times>
<!--
		<create>
			<x>0</x><y>0</y>
			<cursor>
				<decidedRef    label="cursor_stageend_decided"></decidedRef>
				<selectedRef   label="cursor_stageend_selected"></selectedRef>
				<actionRef	   label="cursor_stageend_action"></actionRef>
			</cursor>
		</create>
-->		
		<repeat><times>$gonextstageflag-eq1</times>
<!--
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_practice_stageend"></selectableRef>
			</create>
-->
				<wait>60</wait>
			
		</repeat>
		
		<repeat><times>$gonextstageflag-eq2</times>
<!--
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend"></selectableRef>
			</create>
-->
				<wait>60</wait>
		</repeat>
				
		<repeat><times>$gonextstageflag-eq3</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<actionRef label="stageend_nextstage_create_action"><param>140+360-12*14</param><param>480-10</param></actionRef>
<!--
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_trial_stageend"></selectableRef>
			</create>
-->
				<wait>60</wait>
		</repeat>

		<repeat><times>$gonextstageflag-eq4</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<actionRef label="stageend_nextstage_create_action"><param>140+360-12*14</param><param>480-10</param></actionRef>
<!--
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend"></selectableRef>
			</create>
-->
				<wait>60</wait>
		</repeat>

	</repeat>
	
	<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

	<actionRef label="stageend_nextstage_create_action"><param>140+360-12*14</param><param>480-10</param></actionRef>


	<wait>120</wait>

	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>disablepause</command></system>
	<system><command>endreplay</command></system>
	
	<actionRef label="stageend_blackbg_create_action"></actionRef>
	<actionRef label="common_scenetrans_stage_async_action"></actionRef>

	<wait>30</wait>
	<actionRef label="common_scenetrans_stage_action"></actionRef>
<!--
	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="cursor_stageend_decided"></decidedRef>
			<selectedRef   label="cursor_stageend_selected"></selectedRef>
			<actionRef	   label="cursor_stageend_action"></actionRef>
		</cursor>
	</create>
	<create>
		<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_stageend"></selectableRef>
	</create>
-->
</action>


<!-- stage6A stageend -->

<action label="stageend_6A_action">
<!--
	<wait>120</wait>
-->
	<actionRef label="calc_stage_prate"></actionRef>
	<system><command>disablecollision</command></system>
	<system><command>playermovedisable</command></system>
	<wait>40</wait>
	
	<actionRef label="bg_fadeout_action"></actionRef>
	<wait>60</wait>
	<global name="prate_check">1</global>

	<setLock><num>1</num></setLock>
	<wait>30</wait>
	<create>
		<speed>0</speed>
		<direction type="absolute">0</direction>
		<cx>320</cx><cy>430</cy>
		<object label="6C_text_object">

			<actionRef label="stageend_action_6A"></actionRef>

		</object>
	</create>
	<waitLock><num>1</num></waitLock>

</action>

<action label="stageend_action_6A">
	<actionRef label="stageend_6C_bonusstr_ecrystal_create_action"><param>150</param><param>20</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>200</param><param>$_ecrystal2</param><param>40</param></actionRef>

	<wait>2</wait>
	<actionRef label="stageend_6C_bonusstr_life_create_action"><param>150</param><param>70</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>100000</param><param>$_life</param><param>90</param></actionRef>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_nomiss_create_action"><param>150</param><param>120</param></actionRef>
	<repeat><times>$_stagemisscount-eq0</times>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>1</param><param>140</param></actionRef>
	</repeat>
	<repeat><times>1-($_stagemisscount-eq0)</times>
		<actionRef label="stageend_6C_bonusfig_create_action"><param>500000</param><param>0</param><param>140</param></actionRef>
	</repeat>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_tbc_create_action"><param>150</param><param>170</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_create_action"><param>300000</param><param>$_tbchain</param><param>190</param></actionRef>
	<wait>2</wait>

	<eval name="subbonus">(200*$_ecrystal2)+(100000*$_life)+(300000*$_tbchain)</eval>
	<repeat><times>$_stagemisscount-eq0</times>
		<evaladd name="subbonus">500000</evaladd>
	</repeat>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_prate_create_action"><param>150</param><param>220</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_prate_create_action"><param>$subbonus</param><param>240</param></actionRef>
	<wait>20</wait>
	
	<actionRef label="stageend_6C_bonusstr_subbonus_create_action"><param>150</param><param>310</param></actionRef>
	<wait>2</wait>

	<actionRef label="stageend_6C_bonusstr_buzz_create_action"><param>150</param><param>380</param></actionRef>
	<actionRef label="stageend_6C_bonusstr_buzz_ecrystal_create_action"><param>250</param><param>400</param></actionRef>
	<actionRef label="stageend_6C_bonusfig_buzz_create_action"><param>1</param><param>$_buzz</param><param>400</param></actionRef>
	<!-- BUZZ の分 E-Crystal 増加 -->
	<addItem>
		<flag>1</flag><num>$_buzz</num>
	</addItem>

	<wait>2</wait>

	<eval name="gonextstageflag">0</eval>
	<sysvar name="tbchain">$_tbchain+$__prate_average_total</sysvar>

	<!-- プラクティスなら次の面に進まない -->
	<repeat><times>$_practice_mode-eq1</times>
		<system><command>commitstagescore</command></system>
		<repeat><times>$_replay_mode-eq0</times>
			<eval name="gonextstageflag">1</eval>
		</repeat>	
		<repeat><times>$_replay_mode-eq1</times>
			<eval name="gonextstageflag">2</eval>
		</repeat>	

		<changeTargetVolume label="flash_se"> 
			<num>-10000</num><term>30</term>	
		</changeTargetVolume>

		<wait>30</wait>
		<targetVanish label="flash_se"></targetVanish>
	</repeat>

	<repeat><times>1-($gonextstageflag-eq0)</times>
		<create>
			<x>0</x><y>0</y>
			<cursor>
				<decidedRef    label="cursor_stageend_decided"></decidedRef>
				<selectedRef   label="cursor_stageend_selected"></selectedRef>
				<actionRef	   label="cursor_stageend_action"></actionRef>
			</cursor>
		</create>
		
		<repeat><times>$gonextstageflag-eq1</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_practice_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
			
		</repeat>
		
		<repeat><times>$gonextstageflag-eq2</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend_6A"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>
				
		<repeat><times>$gonextstageflag-eq3</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_trial_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

		<repeat><times>$gonextstageflag-eq4</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend_6A"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

	</repeat>

	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="cursor_stageend_decided_6C"></decidedRef>
			<selectedRef   label="cursor_stageend_selected_6C"></selectedRef>
			<actionRef	   label="cursor_stageend_action_6C"></actionRef>
		</cursor>
	</create>
	<create>
		<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_stageend_6C"></selectableRef>
	</create>

</action>


<!-- リプレイ終了用ダミー選択肢 -->
<selectable label="selectable_replay_stageend_6A">
	<decidedRef    label="selectable_replay_stageend_decided_6A"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_replay_stageend_decided_6A">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>endreplay</command></system>
	<system><command>disablepause</command></system>

	<actionRef label="stageend_whitebg_create_action"/>
<!--	<actionRef label="stageend_blackbg_create_action"></actionRef> -->
	<wait>30</wait>
	<actionRef label="common_scenetrans_goto_replay_back_action"></actionRef>
</decided>


<!-- original stageend -->

<action label="stageend_action">

	<actionRef label="calc_stage_prate"></actionRef>
	<system><command>disablecollision</command></system>
	<system><command>playermovedisable</command></system>
	<wait>40</wait>
	
	<actionRef label="bg_fadeout_action"></actionRef>
	<wait>60</wait>
	<global name="prate_check">1</global>



	<actionRef label="stageend_bonusstr_ecrystal_create_action"><param>150</param><param>20</param></actionRef>
	<actionRef label="stageend_bonusfig_create_action"><param>200</param><param>$_ecrystal2</param><param>40</param></actionRef>

	<wait>2</wait>
	<actionRef label="stageend_bonusstr_life_create_action"><param>150</param><param>70</param></actionRef>
	<actionRef label="stageend_bonusfig_create_action"><param>100000</param><param>$_life</param><param>90</param></actionRef>
	<wait>2</wait>

	<actionRef label="stageend_bonusstr_nomiss_create_action"><param>150</param><param>120</param></actionRef>
	<repeat><times>$_stagemisscount-eq0</times>
		<actionRef label="stageend_bonusfig_create_action"><param>500000</param><param>1</param><param>140</param></actionRef>
	</repeat>
	<repeat><times>1-($_stagemisscount-eq0)</times>
		<actionRef label="stageend_bonusfig_create_action"><param>500000</param><param>0</param><param>140</param></actionRef>
	</repeat>
	<wait>2</wait>

	<actionRef label="stageend_bonusstr_tbc_create_action"><param>150</param><param>170</param></actionRef>
	<actionRef label="stageend_bonusfig_create_action"><param>300000</param><param>$_tbchain</param><param>190</param></actionRef>
	<wait>2</wait>

	<eval name="subbonus">(200*$_ecrystal2)+(100000*$_life)+(300000*$_tbchain)</eval>
	<repeat><times>$_stagemisscount-eq0</times>
		<evaladd name="subbonus">500000</evaladd>
	</repeat>
	<wait>2</wait>

	<actionRef label="stageend_bonusstr_prate_create_action"><param>150</param><param>220</param></actionRef>
	<actionRef label="stageend_bonusfig_prate_create_action"><param>$subbonus</param><param>240</param></actionRef>
	<wait>20</wait>
	
	<actionRef label="stageend_bonusstr_subbonus_create_action"><param>150</param><param>310</param></actionRef>
	<wait>2</wait>

	<actionRef label="stageend_bonusstr_buzz_create_action"><param>150</param><param>380</param></actionRef>
	<actionRef label="stageend_bonusstr_buzz_ecrystal_create_action"><param>250</param><param>400</param></actionRef>
	<actionRef label="stageend_bonusfig_buzz_create_action"><param>1</param><param>$_buzz</param><param>400</param></actionRef>
	<!-- BUZZ の分 E-Crystal 増加 -->
	<addItem>
		<flag>1</flag><num>$_buzz</num>
	</addItem>

	<wait>2</wait>
	<sysvar name="tbchain">$_tbchain+$__prate_average_total</sysvar>

	<system><command>commitstagescore</command></system>


	<eval name="gonextstageflag">0</eval>


	<!-- プラクティスなら次の面に進まない -->
	<repeat><times>$_practice_mode-eq1</times>
		<repeat><times>$_replay_mode-eq0</times>
			<eval name="gonextstageflag">1</eval>
		</repeat>	
		<repeat><times>$_replay_mode-eq1</times>
			<eval name="gonextstageflag">2</eval>
		</repeat>	
	</repeat>

	<!-- リプレイで７面ならエピローグに進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<repeat><times>$_stagenum-eq7</times>
				<eval name="gonextstageflag">4</eval>		
			</repeat>
		</repeat>	
	</repeat>
	
	<!-- EXTRA (９面) なら次の面に進まない -->
	<repeat><times>$_stagenum-eq9</times>
		<eval name="gonextstageflag">5</eval>		
	</repeat>

	<!-- リプレイで次の面データがないなら進まない -->
	<repeat><times>$_practice_mode-eq0</times>
		<repeat><times>$_replay_mode-eq1</times>
			<sysvar name="_arg0">$_stagenum+1</sysvar>
			<repeat><times>$_replay_eachstage-eq0</times>
				<eval name="gonextstageflag">4</eval>	
			</repeat>
		</repeat>
		
		<!-- 体験版 -->
		<!--
		<repeat><times>$_replay_mode-eq0</times>
			<repeat><times>$_stagenum-eq3</times>
				<eval name="gonextstageflag">3</eval>				
			</repeat>
		</repeat>
		-->
	</repeat>
		
	<repeat><times>1-($gonextstageflag-eq0)</times>
		<create>
			<x>0</x><y>0</y>
			<cursor>
				<decidedRef    label="cursor_stageend_decided"></decidedRef>
				<selectedRef   label="cursor_stageend_selected"></selectedRef>
				<actionRef	   label="cursor_stageend_action"></actionRef>
			</cursor>
		</create>
		
		<repeat><times>$gonextstageflag-eq1</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_practice_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
			
		</repeat>
		
		<repeat><times>$gonextstageflag-eq2</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>
				
		<repeat><times>$gonextstageflag-eq3</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<actionRef label="stageend_nextstage_create_action"><param>140+360-12*14</param><param>480-10</param></actionRef>

			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_trial_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

		<repeat><times>$gonextstageflag-eq4</times>
			<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

			<actionRef label="stageend_nextstage_create_action"><param>140+360-12*14</param><param>480-10</param></actionRef>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_replay_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>

		<repeat><times>$gonextstageflag-eq5</times>
			<create>
				<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
				<x>0</x><y>0</y>
				<selectableRef label="selectable_trial_stageend"></selectableRef>
			</create>
			<repeat><times>-1</times>
				<wait>60</wait>
			</repeat>
		</repeat>
	</repeat>
	
	<actionRef label="common_scenetrans_nextstage_judge"></actionRef>

	<!-- debug -->
<!--
	<actionRef label="stageend_all_bonusfig_create_action_average_debug"><param>0</param><param>430</param></actionRef>
-->
	<actionRef label="stageend_nextstage_create_action"><param>140+360-12*14</param><param>480-10</param></actionRef>


	<wait>30</wait>

	<create>
		<x>0</x><y>0</y>
		<cursor>
			<decidedRef    label="cursor_stageend_decided"></decidedRef>
			<selectedRef   label="cursor_stageend_selected"></selectedRef>
			<actionRef	   label="cursor_stageend_action"></actionRef>
		</cursor>
	</create>
	<create>
		<cx>0</cx><cy>0</cy><speed>0</speed><direction>0</direction>
		<x>0</x><y>0</y>
		<selectableRef label="selectable_stageend"></selectableRef>
	</create>
</action>

<!-- ダミーカーソル -->
<action label="cursor_stageend_action"></action>
<selected label="cursor_stageend_selected"></selected>
<decided label="cursor_stageend_decided"><vanish></vanish></decided>

<!-- ダミー選択肢 -->
<selectable label="selectable_stageend">
	<decidedRef    label="selectable_stageend_decided"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_stageend_decided">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>disablepause</command></system>
	<system><command>endreplay</command></system>
	
	<actionRef label="stageend_blackbg_create_action"></actionRef>
	<actionRef label="common_scenetrans_stage_async_action"></actionRef>

	<wait>30</wait>
	<actionRef label="common_scenetrans_stage_action"></actionRef>
</decided>
<selected   label="selectable_stageend_selected"></selected>
<unselected label="selectable_stageend_unselected"></unselected>
<revenge	label="selectable_stageend_revenge">
	<vanish></vanish>
</revenge>
<action	    label="selectable_stageend_action"></action>


<!-- プラクティス用ダミー選択肢 -->
<selectable label="selectable_practice_stageend">
	<decidedRef    label="selectable_practice_stageend_decided"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_practice_stageend_decided">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>endreplay</command></system>
	<system><command>disablepause</command></system>

	<create>
		<speed>0</speed><direction>0</direction><cx>320</cx><cy>240</cy>
		<object>
			<pause>1</pause>
			
			<repeat><times>$_continuenum-eq0</times>
				<actionRef label="stageend_savereplay_blackbg_create_action"></actionRef>
				<actionRef label="gameover_practice_savereplay_string_create_action"></actionRef>
				<actionRef label="gameover_practice_savereplay_selectable_create_action"></actionRef>
			</repeat>
			
			<repeat><times>1-($_continuenum-eq0)</times>
				<system><command>clearreplay</command></system>
				<actionRef label="common_scenetrans_goto_title_action"></actionRef>
			</repeat>
			
		</object>
	</create>
	
	<system><command>switchpause</command></system>

	<vanish></vanish>
</decided>

<!-- 体験版用ダミー選択肢 -->
<selectable label="selectable_trial_stageend">
	<decidedRef    label="selectable_trial_stageend_decided"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_trial_stageend_decided">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>endreplay</command></system>
	<system><command>disablepause</command></system>

	<create>
		<speed>0</speed><direction>0</direction><cx>320</cx><cy>240</cy>
		<object>
			<pause>1</pause>
			
			<repeat><times>$_continuenum-eq0</times>
				<actionRef label="stageend_savereplay_blackbg_create_action"></actionRef>
				<actionRef label="gameover_practice_savereplay_string_create_action"></actionRef>
				<actionRef label="gameover_practice_savereplay_selectable_create_action"></actionRef>	
			</repeat>

			<repeat><times>1-($_continuenum-eq0)</times>
				<system><command>clearreplay</command></system>
				<actionRef label="common_scenetrans_goto_title_action"></actionRef>
			</repeat>

		</object>
	</create>
	
	<system><command>switchpause</command></system>
	<vanish></vanish>
</decided>

<!-- リプレイ終了用ダミー選択肢 -->
<selectable label="selectable_replay_stageend">
	<decidedRef    label="selectable_replay_stageend_decided"></decidedRef>
	<selectedRef   label="selectable_stageend_selected"></selectedRef>
	<unselectedRef label="selectable_stageend_unselected"></unselectedRef>
	<revengeRef	   label="selectable_stageend_revenge"></revengeRef>
	<actionRef	   label="selectable_stageend_action"></actionRef>
</selectable>

<decided    label="selectable_replay_stageend_decided">
	<changeTargetVolume label="bgm">
		<num>-10000</num><term>60</term>
	</changeTargetVolume>
	<wait>10</wait>

	<!-- リプレイ終了はここ -->
	<system><command>endreplay</command></system>
	<system><command>disablepause</command></system>

	<actionRef label="stageend_blackbg_create_action"></actionRef>
	<wait>30</wait>
	<actionRef label="common_scenetrans_goto_replay_back_action"></actionRef>
</decided>


<action label="stageend_nextstage_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>88</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>84</param><param>32</param></createRef>

	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*6</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>71</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*9</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<repeat><times>$_nextstage-eq20</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>50</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>65</param><param>32</param></createRef>		
	</repeat>
	<repeat><times>$_nextstage-eq21</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>50</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>66</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq30</times>
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>51</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq40</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>52</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>65</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq41</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>52</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>66</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq42</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>52</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>67</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq50</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>53</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>65</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq51</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>53</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>66</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq52</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>53</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>67</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq60</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>54</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>65</param><param>32</param></createRef>		
	</repeat>
	
	<repeat><times>$_nextstage-eq61</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>54</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>66</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq62</times>
		<createRef label="str_create_blue"><param>140+360-12*2-10</param><param>$2</param><param>54</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*1-10</param><param>$2</param><param>45</param><param>32</param></createRef>		
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>67</param><param>32</param></createRef>		
	</repeat>

	<repeat><times>$_nextstage-eq70</times>
		<createRef label="str_create_blue"><param>140+360-12*0-10</param><param>$2</param><param>55</param><param>32</param></createRef>		
	</repeat>

</action>


<action label="stageend_bonusstr_ecrystal_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>45</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>67</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*4</param><param>$2</param><param>89</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*6</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>76</param><param>32</param></createRef>
	
	<createRef label="str_create_red"><param>$1+12*10</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*11</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*12</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*13</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*14</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_bonusstr_buzz_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>90</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>90</param><param>32</param></createRef>
	
	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*6</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*9</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_bonusstr_buzz_ecrystal_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>45</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>67</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*4</param><param>$2</param><param>89</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*6</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>76</param><param>32</param></createRef>
</action>

<action label="stageend_bonusstr_life_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>76</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>70</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*6</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*9</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_bonusstr_nomiss_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>77</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*4</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>83</param><param>32</param></createRef>
	
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*9</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*10</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*11</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>

<action label="stageend_bonusstr_tbc_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>83</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*4</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*6</param><param>$2</param><param>78</param><param>32</param></createRef>
	
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*9</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*10</param><param>$2</param><param>69</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*11</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*12</param><param>$2</param><param>75</param><param>32</param></createRef>	

	<createRef label="str_create_red"><param>$1+12*14</param><param>$2</param><param>67</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*15</param><param>$2</param><param>72</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*16</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*17</param><param>$2</param><param>73</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*18</param><param>$2</param><param>78</param><param>32</param></createRef>	

	<createRef label="str_create_red"><param>$1+12*20</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*21</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*22</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*23</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*24</param><param>$2</param><param>83</param><param>32</param></createRef>	

</action>

<action label="stageend_bonusstr_subbonus_create_action">
	<eval name="i">0</eval>
	<repeat><times>29</times>
		<createRef label="str_create_red"><param>$1+12*$i</param><param>$2</param><param>104</param><param>32</param></createRef>
		<evaladd name="i">1</evaladd>
	</repeat>	
	<createRef label="str_create_red"><param>140+360-10</param><param>$2</param><param>104</param><param>32</param></createRef>

	<createRef label="str_create_red"><param>$1+12*0</param><param>$2+20</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2+20</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2+20</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2+20</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*4</param><param>$2+20</param><param>76</param><param>32</param></createRef>
	
	<createRef label="str_create_red"><param>$1+12*6</param><param>$2+20</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2+20</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2+20</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*9</param><param>$2+20</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*10</param><param>$2+20</param><param>83</param><param>32</param></createRef>	

</action>



<action label="stageend_bonusfig_subbonus_create_action">
	<actionRef label="stageend_bonusfig_create_sub_action"><param>$1</param><param>140+360-10</param><param>$3</param></actionRef>	
</action>


<action label="stageend_bonusstr_prate_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>80</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>45</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*4</param><param>$2</param><param>84</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>69</param><param>32</param></createRef>
	
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*9</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*10</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*11</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>


<action label="stageend_bonusstr_rank_create_action">
	<createRef label="str_create_red"><param>$1+12*0</param><param>$2</param><param>82</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*1</param><param>$2</param><param>65</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*2</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*3</param><param>$2</param><param>75</param><param>32</param></createRef>
	
	<createRef label="str_create_red"><param>$1+12*5</param><param>$2</param><param>66</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*6</param><param>$2</param><param>79</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*7</param><param>$2</param><param>78</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*8</param><param>$2</param><param>85</param><param>32</param></createRef>
	<createRef label="str_create_red"><param>$1+12*9</param><param>$2</param><param>83</param><param>32</param></createRef>	
</action>


<action label="stageend_bonusfig_prate_create_action">
	<actionRef label="stageend_bonusfig_create_sub_action"><param>150</param><param>140+11*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_blue"><param>140+13*12-10</param><param>$2</param><param>45</param><param>32</param></createRef>
	<eval name="tmprate">($_prate/10000)%1000000</eval>
<!--
	<eval name="tmprate2">($_prate/1000)%1000000</eval>
	<eval name="tmprate3">$tmprate2-10*$tmprate</eval>
-->
	<eval name="tmprate2">($_prate/100)%1000000</eval>
	<eval name="tmprate3">$tmprate2-100*$tmprate</eval>

	<actionRef label="stageend_bonusfig_create_sub_action"><param>$tmprate</param><param>140+16*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_blue"><param>140+17*12-10</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_bonusfig_create_sub_action2"><param>$tmprate3</param><param>140+19*12-10</param><param>$2</param></actionRef>
	<createRef label="str_create_blue"><param>140+20*12-10</param><param>$2</param><param>37</param><param>32</param></createRef>

	<eval name="tmprate4">((15000-$tmprate2)/100)%1000</eval>
	<eval name="tmprate5">(15000-$tmprate2)-100*$tmprate4</eval>

	<actionRef label="stageend_bonusfig_create_sub_action_red"><param>$tmprate4</param><param>140+360-10-12*4</param><param>$2</param></actionRef>	
	<createRef label="str_create_red"><param>140+360-10-12*3</param><param>$2</param><param>46</param><param>32</param></createRef>
	<actionRef label="stageend_bonusfig_create_sub_action_red2"><param>$tmprate5</param><param>140+360-10-12*1</param><param>$2</param></actionRef>	
	<createRef label="str_create_red"><param>140+360-10</param><param>$2</param><param>37</param><param>32</param></createRef>


	<eval name="tmpbonus">$1*(1.5-$tmprate2/10000)</eval>
<!-- rank -->
	<actionRef label="stageend_bonusstr_rank_create_action"><param>150</param><param>$2+30</param></actionRef>
	<repeat><times>$_difficulty-eq0</times>
		<createRef label="str_create_blue"><param>140+16*12-10</param><param>$2+50</param><param>69</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+17*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+18*12-10</param><param>$2+50</param><param>83</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+19*12-10</param><param>$2+50</param><param>89</param><param>28</param></createRef>

		<createRef label="str_create_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>48</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*0</param><param>$2+50</param><param>53</param><param>32</param></createRef>
		<eval name="tmpbonus">$tmpbonus*0.5</eval>
	</repeat>
	<repeat><times>$_difficulty-eq1</times>
		<createRef label="str_create_blue"><param>140+14*12-10</param><param>$2+50</param><param>78</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+15*12-10</param><param>$2+50</param><param>79</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+16*12-10</param><param>$2+50</param><param>82</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+17*12-10</param><param>$2+50</param><param>77</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+18*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+19*12-10</param><param>$2+50</param><param>76</param><param>28</param></createRef>

		<createRef label="str_create_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>49</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*0</param><param>$2+50</param><param>48</param><param>32</param></createRef>
	</repeat>
	<repeat><times>$_difficulty-eq2</times>
		<createRef label="str_create_blue"><param>140+16*12-10</param><param>$2+50</param><param>72</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+17*12-10</param><param>$2+50</param><param>65</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+18*12-10</param><param>$2+50</param><param>82</param><param>28</param></createRef>
		<createRef label="str_create_blue"><param>140+19*12-10</param><param>$2+50</param><param>68</param><param>28</param></createRef>

		<createRef label="str_create_red"><param>140+360-10-12*3</param><param>$2+50</param><param>108</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*2+8</param><param>$2+50</param><param>49</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*1</param><param>$2+50</param><param>46</param><param>32</param></createRef>
		<createRef label="str_create_red"><param>140+360-10-12*0</param><param>$2+50</param><param>53</param><param>32</param></createRef>
		<eval name="tmpbonus">$tmpbonus*1.5</eval>
	</repeat>

	<eval name="tmpbonus">($tmpbonus/10)%200000000</eval>
	<eval name="tmpbonus">$tmpbonus*10</eval>

	<actionRef label="stageend_bonusfig_create_sub_action"><param>$tmpbonus</param><param>140+360-10</param><param>$2+50+40</param></actionRef>

	<!-- *** 実際にスコアに加算する ********************************************** -->
	<addScore>
		<score>$tmpbonus</score>	
	</addScore>

</action>


<action label="stageend_bonusfig_create_action">
	<actionRef label="stageend_bonusfig_create_sub_action"><param>$1</param><param>140+11*12-10</param><param>$3</param></actionRef>
	<createRef label="str_create_blue"><param>140+13*12-10</param><param>$3</param><param>108</param><param>32</param></createRef>

	<actionRef label="stageend_bonusfig_create_sub_action"><param>$2</param><param>140+19*12-10</param><param>$3</param></actionRef>
	<actionRef label="stageend_bonusfig_create_sub_action"><param>$1*$2</param><param>140+360-10</param><param>$3</param></actionRef>	
</action>

<action label="stageend_bonusfig_buzz_create_action">
	<eval name="tmp_buzz">($2/$1)%1000000</eval>
	<actionRef label="stageend_bonusfig_buzz_create_sub_action"><param>$tmp_buzz</param><param>140+360-10</param><param>$3</param></actionRef>	
</action>


<action label="stageend_bonusfig_create_sub_action">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_blue"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">1</eval>
	
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>


	<repeat><times>$j</times>
		<createRef label="str_create_blue"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
</action>

<action label="stageend_bonusfig_create_sub_action2">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_blue"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<createRef label="str_create_blue"><param>$2-12</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">2</eval>
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>

	<repeat><times>$j</times>
		<createRef label="str_create_blue"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
</action>

<action label="stageend_bonusfig_create_sub_action_red">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_red"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">1</eval>
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>

	<repeat><times>$j</times>
		<createRef label="str_create_red"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
</action>

<action label="stageend_bonusfig_create_sub_action_red2">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_red"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<createRef label="str_create_red"><param>$2-12</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">2</eval>
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>

	<repeat><times>$j</times>
		<createRef label="str_create_red"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
</action>

<action label="stageend_bonusfig_buzz_create_sub_action">
	<eval name="localnum">$1</eval>
	<createRef label="str_create_blue"><param>$2</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
	<eval name="localnum">($localnum/10)%100000000</eval>	
	<eval name="i">1</eval>
	<eval name="j">1</eval>
	<repeat><times>$localnum-eq0</times>
		<eval name="j">0</eval>
	</repeat>
	<eval name="localnum2">$localnum</eval>
	<repeat><times>12</times>
		<eval name="localnum2">($localnum2/10)%100000000</eval>
		<repeat><times>1-($localnum2-eq0)</times>
			<evaladd name="j">1</evaladd>
		</repeat>
	</repeat>

	<repeat><times>$j</times>
		<createRef label="str_create_blue"><param>$2-12*$i</param><param>$3</param><param>48+($localnum%10)</param><param>32</param></createRef>
		<eval name="localnum">($localnum/10)%100000000</eval>
		<evaladd name="i">1</evaladd>	
	</repeat>
		<createRef label="str_create_blue"><param>$2-12*$i-12</param><param>$3</param><param>43</param><param>32</param></createRef>

</action>



<action label="stageend_blackbg_create_action">
	<create>
		<direction type="absolute">0</direction>
		<speed type="absolute">0</speed>
		<cx>320</cx><cy>240</cy>
		<object>
			<img type="normal">
				<file type="bmp">rect</file>
				<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
				<width>360</width><height>482</height>
				<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
			</img>
			<setDrawLevel><num>33</num></setDrawLevel>
			<changeColor>
				<alpha>255</alpha><red>0</red><green>0</green><blue>0</blue><term>30</term>			
			</changeColor>
		</object>
	</create>
	<wait>30</wait>
</action>

<action label="stageend_whitebg_create_action">
	<create>
		<direction type="absolute">0</direction>
		<speed type="absolute">0</speed>
		<cx>320</cx><cy>240</cy>
		<object>
			<img type="normal">
				<file type="bmp">rectwhite</file>
				<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
				<width>642</width><height>482</height>
				<alpha>0</alpha><red>128</red><green>128</green><blue>128</blue>
			</img>
			<setDrawLevel><num>33</num></setDrawLevel>
			<changeColor>
				<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue><term>180</term>			
			</changeColor>
		</object>
	</create>
	<wait>120</wait>
</action>


<action label="stageend_savereplay_blackbg_create_action">
	<create>
		<direction type="absolute">0</direction>
		<speed type="absolute">0</speed>
		<cx>320</cx><cy>240</cy>
		<object>
			<pause>1</pause>
			<img type="normal">
				<file type="bmp">rect</file>
				<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
				<width>642</width><height>482</height>
				<alpha>0</alpha><red>0</red><green>0</green><blue>0</blue>
			</img>
			<setDrawLevel><num>33</num></setDrawLevel>
			<changeColor>
				<alpha>255</alpha><red>0</red><green>0</green><blue>0</blue><term>30</term>			
			</changeColor>
		</object>
	</create>
	<wait>30</wait>
</action>


</exbulletml>
