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

<!-- *** ショットボタンを押した時に呼ばれるアクション ******************** -->

<!-- ********************************************************************* -->
<!-- *** キャラ０の場合 ************************************************** -->
<!-- ********************************************************************* -->
<action label="shot_1_top">
	
	<!-- *** Magic 発動中（Magic 発動から 300 フレーム未満）*** -->
	<repeat><times>$_ttc_frame-lt(300*$_magic_rate/100)</times>
		<actionRef label="shot_1_ttc_create_action"></actionRef>
	</repeat>

	
	<!-- *** 通常（Magic 発動から 300 フレーム以上経過）*** -->
	<repeat><times>1-($_ttc_frame-lt(300*$_magic_rate/100))</times>
		<actionRef label="shot_1_create_action"></actionRef>
	</repeat>
	
</action>

<!-- ********************************************************************* -->
<!-- *** キャラ１の場合 ************************************************** -->
<!-- ********************************************************************* -->
<action label="shot_2_top">

	<!-- *** Magic 発動中（Magic 発動から 300 フレーム未満）*** -->
	<repeat><times>$_ttc_frame-lt(300*$_magic_rate/100)</times>
		<actionRef label="shot_2_ttc_create_action"></actionRef>
	</repeat>

	
	<!-- *** 通常（Magic 発動から 300 フレーム以上経過）*** -->
	<repeat><times>1-($_ttc_frame-lt(300*$_magic_rate/100))</times>
		<actionRef label="shot_2_create_action"></actionRef>
	</repeat>
		
</action>



<!-- ********************************************************************* -->
<!-- *** キャラ０の生成アクション **************************************** -->
<!-- ********************************************************************* -->
<action label="shot_1_create_action">		

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<global name="temp_dir">($_playermovey*2)+$__temp_dir</global>
	<global name="temp_dir">$__temp_dir+(($__temp_dir-gt6)*(-2))+(($__temp_dir-lt(-2))*2)</global>
	<global name="temp_dir">$__temp_dir*(($_counter-$__shot_time)-lt9)</global>	
	<global name="shot_time">$_counter</global>

	<createRef label="shot_0_create"><p>10</p><p>$_player_cx-16</p><p>$_player_cy+6</p><p>1*$__temp_dir</p></createRef>
	<createRef label="shot_0_create"><p>10</p><p>$_player_cx</p><p>$_player_cy</p><p>0</p></createRef>
	<createRef label="shot_0_create"><p>10</p><p>$_player_cx+16</p><p>$_player_cy+6</p><p>-1*$__temp_dir</p></createRef>
	<wait>7</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>

<create label="shot_0_create">
	<speed>$1</speed>
	<direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>(27-$_weapontype*3)</vital>
	<shotRef label="shot_bullet_0"><p>$1</p></shotRef>
</create>

<create label="shot_0_create_r">
	<speed>$1</speed>
	<direction type="relative">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>8-$_weapontype</vital>
	<shotRef label="shot_bullet_0"><p>$5</p></shotRef>
</create>

<shot label="shot_bullet_0">
	<revengeRef label="shot_revenge_0"></revengeRef>
	<collision type="sync"><left>-8</left><top>-24</top><right>8</right><bottom>24</bottom></collision>	
	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rir32"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rir32b"/>
	</repeat>
	<imgDirection type="sync">0</imgDirection>
	<action>
		<wait>2</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>1</term>
		</changeSpeed>
	</action>

</shot>

<create label="shot_1_create">
	<speed>$1</speed>
	<direction type="relative">0</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>0.4</vital>
	<shotRef label="shot_bullet_1"><p>$1</p></shotRef>
</create>

<shot label="shot_bullet_1">
	<damageRef label="shot_damage_1"></damageRef>
	<collision type="sync"><left>-8</left><top>-24</top><right>8</right><bottom>24</bottom></collision>	
	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rir32"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rir32b"/>
	</repeat>
	<imgDirection type="sync">0</imgDirection>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<wait>30</wait>
		<createRef label="shot_0_create_r"><p>$1</p><p>$_self_cx</p><p>$_self_cy</p><p>0</p><p>10</p></createRef>
		<vanish/>
	</action>
</shot>

<img l="rir32" type="normal">
	<file type="dds">rir_bul32</file>
	<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
	<width>32</width><height>56</height>
	<alpha>120</alpha><red>240</red><green>240</green><blue>240</blue>
</img>
<img l="rir32b" type="normal">
	<file type="dds">rir_bul32b</file>
	<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
	<width>32</width><height>56</height>
	<alpha>120</alpha><red>240</red><green>240</green><blue>240</blue>
</img>


<!-- ********************************************* -->
<action label="shot_1_ttc_create_action">	
	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<global name="temp_dir">($_playermovey*2)+$__temp_dir</global>
	<global name="temp_dir">$__temp_dir+(($__temp_dir-gt6)*(-2))+(($__temp_dir-lt(-2))*2)</global>
	<global name="temp_dir">$__temp_dir*(($_counter-$__shot_time)-lt9)</global>	
	<global name="shot_time">$_counter</global>

	<createRef label="shot_0_ttc_create"><p>10</p><p>$_player_cx-16</p><p>$_player_cy+6</p><p>1*$__temp_dir</p></createRef>
	<createRef label="shot_0_ttc_create"><p>10</p><p>$_player_cx</p><p>$_player_cy</p><p>0</p></createRef>
	<createRef label="shot_0_ttc_create"><p>10</p><p>$_player_cx+16</p><p>$_player_cy+6</p><p>-1*$__temp_dir</p></createRef>
	<wait>7</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>


<create label="shot_0_ttc_create">
	<speed>$1</speed>
	<direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>(27-$_weapontype*3)*2</vital><flag>1</flag>
	<shotRef label="shot_ttc_bullet_0"><p>$1</p></shotRef>
</create>

<create label="shot_0_ttc_create_r">
	<speed>$1</speed>
	<direction type="relative">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>(8-$_weapontype)*2</vital><flag>1</flag>
	<shotRef label="shot_ttc_bullet_0"><p>$5</p></shotRef>
</create>

<shot label="shot_ttc_bullet_0">
	<revengeRef label="shot_revenge_ttc_0"></revengeRef>
	<collision type="sync"><left>-16</left><top>-48</top><right>16</right><bottom>48</bottom></collision>	

	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rir128n"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rir128nb"/>
	</repeat>
	<imgDirection type="sync">0</imgDirection>
	<action>
		<wait>2</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>1</term>
		</changeSpeed>
	</action>
</shot>

<create label="shot_1_ttc_create">
	<speed>$1</speed>
	<direction type="relative">0</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>0.4</vital><flag>1</flag>
	<shotRef label="shot_ttc_bullet_1"><p>$1</p></shotRef>
</create>

<shot label="shot_ttc_bullet_1">
	<damageRef label="shot_damage_ttc1"></damageRef>
	<collision type="sync"><left>-16</left><top>-48</top><right>16</right><bottom>48</bottom></collision>	
	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rir128n"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rir128nb"/>
	</repeat>
	<imgDirection type="sync">0</imgDirection>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<wait>30</wait>
		<createRef label="shot_0_ttc_create_r"><p>$1</p><p>$_self_cx</p><p>$_self_cy</p><p>0</p><p>10</p></createRef>
		<vanish/>
	</action>
</shot>

<img l="rir128n" type="normal">
	<file type="dds">rir_bul128</file>
	<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
	<width>64</width><height>100</height>
	<alpha>100</alpha><red>240</red><green>240</green><blue>240</blue>
</img>
<img l="rir128nb" type="normal">
	<file type="dds">rir_bul128b</file>
	<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
	<width>64</width><height>100</height>
	<alpha>100</alpha><red>240</red><green>240</green><blue>240</blue>
</img>


<!-- ********************************************************************* -->
<!-- *** キャラ１の生成アクション ************************************** -->
<!-- ********************************************************************* -->
<action label="shot_2_create_action">		

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<global name="temp_dir2">($_playermovey*5)+$__temp_dir2</global>
	<global name="temp_dir2">$__temp_dir2+(($__temp_dir2-gt20)*(-5))+(($__temp_dir2-lt(-20))*5)</global>
	<global name="temp_dir2">$__temp_dir2*(($_counter-$__shot_time2)-lt9)</global>	
	<global name="shot_time2">$_counter</global>

	<createRef label="shot_20_create"><p>8</p><p>$_player_cx-8</p><p>$_player_cy-6</p><p>-7+($__temp_dir2/4)</p></createRef>
	<createRef label="shot_20_create"><p>8</p><p>$_player_cx+8</p><p>$_player_cy-6</p><p>7-($__temp_dir2/4)</p></createRef>
	<wait>1</wait>
	<createRef label="shot_20_create"><p>8</p><p>$_player_cx-12</p><p>$_player_cy</p><p>-31+($__temp_dir2/4)</p></createRef>
	<createRef label="shot_20_create"><p>8</p><p>$_player_cx+12</p><p>$_player_cy</p><p>31-($__temp_dir2/4)</p></createRef>
	<createRef label="shot_20_create"><p>8</p><p>$_player_cx-16</p><p>$_player_cy+6</p><p>-55+($__temp_dir2/3)</p></createRef>
	<createRef label="shot_20_create"><p>8</p><p>$_player_cx+16</p><p>$_player_cy+6</p><p>55-($__temp_dir2/3)</p></createRef>

	<wait>5</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>

<create label="shot_20_create">
	<speed>$1</speed>
	<direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>14-$_weapontype*2</vital>
	<shotRef label="shot_bullet_20"><p>$1</p></shotRef>
</create>

<create label="shot_20_create_r">
	<speed>$1</speed>
	<direction type="relative">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>6-$_weapontype</vital>
	<shotRef label="shot_bullet_20"><p>$5</p></shotRef>
</create>

<shot label="shot_bullet_20">
	<revengeRef label="shot_revenge_20"></revengeRef>
<!--	<collision type="sync"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision> -->
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>24</radius></collision>
	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rur32"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rur32b"/>
	</repeat>

	<action>
		<wait>2</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>1</term>
		</changeSpeed>
	</action>
</shot>

<create label="shot_2_create">
	<speed>$1</speed>
	<direction type="relative">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>0.1</vital>
	<shotRef label="shot_bullet_2"><p>$1</p></shotRef>
</create>

<shot label="shot_bullet_2">
	<damageRef label="shot_damage_2"></damageRef>
<!-- <collision type="sync"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision> -->
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>24</radius></collision>

	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rur32"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rur32b"/>
	</repeat>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<wait>30</wait>
		<createRef label="shot_20_create_r"><p>$1</p><p>$_self_cx</p><p>$_self_cy</p><p>0</p><p>10</p></createRef>
		<vanish/>
	</action>
</shot>

<img l="rur32" type="normal">
	<file type="dds">rur_bul32</file>
	<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
	<width>24</width><height>24</height>
	<alpha>80</alpha><red>240</red><green>240</green><blue>240</blue>
</img>
<img l="rur32b" type="normal">
	<file type="dds">rur_bul32b</file>
	<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
	<width>24</width><height>24</height>
	<alpha>96</alpha><red>240</red><green>240</green><blue>240</blue>
</img>


<!-- ********************************************* -->
<action label="shot_2_ttc_create_action">		

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<global name="temp_dir2">($_playermovey*5)+$__temp_dir2</global>
	<global name="temp_dir2">$__temp_dir2+(($__temp_dir2-gt20)*(-5))+(($__temp_dir2-lt(-20))*5)</global>
	<global name="temp_dir2">$__temp_dir2*(($_counter-$__shot_time2)-lt9)</global>	
	<global name="shot_time2">$_counter</global>

	<createRef label="shot_20_ttc_create"><p>8</p><p>$_player_cx-8</p><p>$_player_cy-6</p><p>-7+($__temp_dir2/4)</p></createRef>
	<createRef label="shot_20_ttc_create"><p>8</p><p>$_player_cx+8</p><p>$_player_cy-6</p><p>7-($__temp_dir2/4)</p></createRef>
	<wait>1</wait>
	<createRef label="shot_20_ttc_create"><p>8</p><p>$_player_cx-12</p><p>$_player_cy</p><p>-31+($__temp_dir2/4)</p></createRef>
	<createRef label="shot_20_ttc_create"><p>8</p><p>$_player_cx+12</p><p>$_player_cy</p><p>31-($__temp_dir2/4)</p></createRef>
	<createRef label="shot_20_ttc_create"><p>8</p><p>$_player_cx-16</p><p>$_player_cy+6</p><p>-55+($__temp_dir2/3)</p></createRef>
	<createRef label="shot_20_ttc_create"><p>8</p><p>$_player_cx+16</p><p>$_player_cy+6</p><p>55-($__temp_dir2/3)</p></createRef>
	<wait>5</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>

<create label="shot_20_ttc_create">
	<speed>$1</speed>
	<direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>(15-$_weapontype*2)*2</vital><flag>1</flag>
	<shotRef label="shot_ttc_bullet_20"><p>$1</p></shotRef>
</create>

<create label="shot_20_ttc_create_r">
	<speed>$1</speed>
	<direction type="relative">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>11-$_weapontype*2</vital><flag>1</flag>
	<shotRef label="shot_ttc_bullet_20"><p>$5</p></shotRef>
</create>

<shot label="shot_ttc_bullet_20">
	<revengeRef label="shot_revenge_ttc_20"></revengeRef>
<!--	<collision type="sync"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision> -->
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>48</radius></collision>
	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rur32l"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rur32lb"/>
	</repeat>

	<action>
		<wait>2</wait>
		<changeSpeed>
			<speed type="absolute">$1</speed><term>1</term>
		</changeSpeed>
	</action>
</shot>

<create label="shot_2_ttc_create">
	<speed>$1</speed>
	<direction type="relative">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>0.1</vital><flag>1</flag>
	<shotRef label="shot_ttc_bullet_2"><p>$1</p></shotRef>
</create>

<shot label="shot_ttc_bullet_2">
	<damageRef label="shot_damage_ttc2"></damageRef>
<!-- <collision type="sync"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision> -->
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>48</radius></collision>

	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rur32l"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rur32lb"/>
	</repeat>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<wait>30</wait>
		<createRef label="shot_20_ttc_create_r"><p>$1</p><p>$_self_cx</p><p>$_self_cy</p><p>0</p><p>10</p></createRef>
		<vanish/>
	</action>
</shot>

<img l="rur32l" type="normal">
	<file type="dds">rur_bul32</file>
	<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
	<width>48</width><height>48</height>
	<alpha>70</alpha><red>240</red><green>240</green><blue>240</blue>
</img>
<img l="rur32lb" type="normal">
	<file type="dds">rur_bul32b</file>
	<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
	<width>48</width><height>48</height>
	<alpha>70</alpha><red>240</red><green>240</green><blue>240</blue>
</img>

<!-- ********************************************************************* -->
<revenge label="shot_revenge_0">

	<createRef label="shot_1_create"><p>1</p><p>$_self_cx</p><p>$_self_cy</p></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>
	<vanish/>
</revenge>

<revenge label="shot_revenge_ttc_0">

	<createRef label="shot_1_ttc_create"><p>1</p><p>$_self_cx</p><p>$_self_cy</p></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>
	<vanish/>
</revenge>

<revenge label="shot_revenge_20">

	<createRef label="shot_2_create"><p>1</p><p>$_self_cx</p><p>$_self_cy</p></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>
	<vanish/>
</revenge>

<revenge label="shot_revenge_ttc_20">

	<createRef label="shot_2_ttc_create"><p>1</p><p>$_self_cx</p><p>$_self_cy</p></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>
	<vanish/>
</revenge>


<damage label="shot_damage_1">

	<soundtrack><file type="ogg">laser_effect</file></soundtrack>
	<actionRef label="shot_break_particle_create_action"></actionRef>
	
</damage>

<damage label="shot_damage_ttc1">

	<soundtrack><file type="ogg">laser_effect</file></soundtrack>
	<actionRef label="shot_break_particle_create_action"></actionRef>
	
</damage>

<damage label="shot_damage_2">

	<soundtrack><file type="ogg">laser_effect</file></soundtrack>
	<actionRef label="shot_break_particle_create_action"></actionRef>
	
</damage>

<damage label="shot_damage_ttc2">

	<soundtrack><file type="ogg">laser_effect</file></soundtrack>
	<actionRef label="shot_break_particle_create_action"></actionRef>
	
</damage>

<action label="shot_break_particle_create_action">
	<createRef label="shot_break_particle_create"></createRef>
</action>

<create label="shot_break_particle_create">
	<speed>1.5+2*$_rand</speed><direction type="absolute">$_rand*360</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<object>
		<img type="add">
			<file type="dds">particle</file>
			<left>0</left><top>0</top><right>16</right><bottom>16</bottom>
			<width>16</width><height>16</height>
			<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
		</img>
		<setDrawLevel><num>20</num></setDrawLevel>
		<changeColor>
			<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>5</term>	
		</changeColor>
		<wait>5</wait>
		<vanish></vanish>
	</object>
</create>


</exbulletml>
