<?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">		
	<eval name="position">5-(($_player_cx+$__temp_dir)%11)</eval>

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_1_create"><p>8</p><p>$_player_cx+$position</p><p>$_player_cy-6</p><p>8</p><p>104-$_weapontype*10</p><p>$position</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_create"><p>7.4</p><p>$_player_cx+4+$position</p><p>$_player_cy-6</p><p>7</p><p>92-$_weapontype*9</p><p>$position+4</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_create"><p>6.8</p><p>$_player_cx-3+$position</p><p>$_player_cy-6</p><p>6</p><p>82-$_weapontype*8</p><p>$position-3</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_create"><p>6.2</p><p>$_player_cx+1+$position</p><p>$_player_cy-6</p><p>5</p><p>71-$_weapontype*7</p><p>$position+1</p></createRef>
	<wait>1</wait>
	<global name="temp_dir">($position+$__temp_dir)%13</global>	
	<eval name="position">5-(($_player_cy+$__temp_dir)%11)</eval>
	<wait>1</wait>
	<createRef label="shot_1_create"><p>5.6</p><p>$_player_cx+5+$position</p><p>$_player_cy-6</p><p>4</p><p>54-$_weapontype*5</p><p>$position+5</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_create"><p>5</p><p>$_player_cx-2+$position</p><p>$_player_cy-6</p><p>3</p><p>40-$_weapontype*4</p><p>$position-2</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_create"><p>4.4</p><p>$_player_cx-6+$position</p><p>$_player_cy-6</p><p>2</p><p>30-$_weapontype*3</p><p>$position-6</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_create"><p>3.8</p><p>$_player_cx+7+$position</p><p>$_player_cy-6</p><p>1</p><p>19-$_weapontype*2</p><p>$position+7</p></createRef>
	<wait>4</wait>
	<global name="temp_dir">($position+$__temp_dir)%17</global>	
	<wait>1</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>

<create label="shot_1_create">
	<speed>$1</speed>
	<direction type="absolute">30*$_playermovex+$6</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>$5</vital>
	<shotRef label="shot_bullet_1"><p>$4</p></shotRef>
</create>

<shot label="shot_bullet_1">
	<revengeRef label="shot_revenge_1"><p>$1</p></revengeRef>
	<collision type="rect"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision>	
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>((3*$1+8)/2)+5</radius></collision>	 -->
	<img type="normal">
		<file type="dds">asa_bul32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>3*$1+8</width><height>3*$1+8</height>
		<alpha>100</alpha><red>255</red><green>255-$__shot_color*190</green><blue>255</blue>
	</img>
	<setDrawLevel><num>12-($1-lt8)-($1-lt5)</num></setDrawLevel>
	<imgDirection type="absolute">0</imgDirection>
	<action>
		<repeat><times>-1</times>
			<imgDirection type="absolute">90</imgDirection>
			<w>3</w>
			<imgDirection type="absolute">0</imgDirection>
			<w>3</w>
		</repeat>
	</action>
</shot>

<!-- ********************************************* -->
<action label="shot_1_ttc_create_action">	
	<eval name="position">5-(($_player_cx+$__temp_dir)%11)</eval>
	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_1_ttc_create"><p>10</p><p>$_player_cx+$position</p><p>$_player_cy-6</p><p>18</p><p>(108-$_weapontype*11)*2</p><p>$position</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_ttc_create"><p>9.2</p><p>$_player_cx+$position+8</p><p>$_player_cy-6</p><p>16</p><p>(92-$_weapontype*9)*2</p><p>$position+8</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_ttc_create"><p>8.3</p><p>$_player_cx+$position-6</p><p>$_player_cy-6</p><p>14</p><p>(80-$_weapontype*8)*2</p><p>$position-6</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_ttc_create"><p>7.4</p><p>$_player_cx+$position+2</p><p>$_player_cy-6</p><p>12</p><p>(71-$_weapontype*7)*2</p><p>$position+2</p></createRef>
	<wait>1</wait>
	<global name="temp_dir">($position+$__temp_dir)%17</global>	
	<eval name="position">5-(($_player_cy+$__temp_dir)%11)</eval>
	<wait>1</wait>
	<createRef label="shot_1_ttc_create"><p>6.5</p><p>$_player_cx+$position+10</p><p>$_player_cy-6</p><p>10</p><p>(57-$_weapontype*5)*2</p><p>$position+10</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_ttc_create"><p>5.6</p><p>$_player_cx+$position-4</p><p>$_player_cy-6</p><p>8</p><p>(40-$_weapontype*4)*2</p><p>$position-4</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_ttc_create"><p>4.7</p><p>$_player_cx+$position-12</p><p>$_player_cy-6</p><p>6</p><p>(27-$_weapontype*3)*2</p><p>$position-12</p></createRef>
	<wait>2</wait>
	<createRef label="shot_1_ttc_create"><p>3.8</p><p>$_player_cx+$position+13</p><p>$_player_cy-6</p><p>4</p><p>(14-$_weapontype*2)*2</p><p>$position+13</p></createRef>
	<wait>4</wait>
	<global name="temp_dir">($position+$__temp_dir)%17</global>	
	<wait>1</wait>

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

<create label="shot_1_ttc_create">
	<speed>$1</speed><direction type="absolute">((20+$_player_cx)%21)*$_playermovex+$6</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>$5</vital><flag>1</flag>
	<shotRef label="shot_bullet_ttc_1"><p>$4</p></shotRef>
</create>

<shot label="shot_bullet_ttc_1">
	<revengeRef label="shot_revenge_ttc1"><p>$1</p></revengeRef>
	<collision type="rect"><left>-32</left><top>-32</top><right>32</right><bottom>32</bottom></collision>	
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>((3*$1+4)/2)+3</radius></collision>	 -->
	<img type="normal">
		<file type="dds">asa_bul32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>3*$1+12</width><height>3*$1+12</height>
		<alpha>80</alpha><red>255</red><green>255-$__shot_color*190</green><blue>255</blue>
	</img>
	<setDrawLevel><num>12-($1-lt16)-($1-lt11)</num></setDrawLevel>
	<imgDirection type="absolute">0</imgDirection>
	<action>
		<repeat><times>-1</times>
			<imgDirection type="absolute">90</imgDirection>
			<w>3</w>
			<imgDirection type="absolute">0</imgDirection>
			<w>3</w>
		</repeat>
	</action>
</shot>


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

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_2_create1"><p>8</p><p>$_player_cx-8</p><p>$_player_cy-10</p><p>-10</p><p>0</p></createRef>
	<createRef label="shot_2_create1"><p>8</p><p>$_player_cx+8</p><p>$_player_cy-10</p><p>10</p><p>1</p></createRef>
	<wait>1</wait>
	<createRef label="shot_2_create1"><p>8</p><p>$_player_cx-12</p><p>$_player_cy-4</p><p>-34</p><p>2</p></createRef>
	<createRef label="shot_2_create1"><p>8</p><p>$_player_cx+12</p><p>$_player_cy-4</p><p>34</p><p>3</p></createRef>
	<wait>1</wait>
	<createRef label="shot_2_create1"><p>8</p><p>$_player_cx-16</p><p>$_player_cy+2</p><p>-58</p><p>4</p></createRef>
	<createRef label="shot_2_create1"><p>8</p><p>$_player_cx+16</p><p>$_player_cy+2</p><p>58</p><p>5</p></createRef>
	<wait>1</wait>
	<createRef label="shot_2_create1"><p>8</p><p>$_player_cx-16</p><p>$_player_cy+2</p><p>-82</p><p>6</p></createRef>
	<createRef label="shot_2_create1"><p>8</p><p>$_player_cx+16</p><p>$_player_cy+2</p><p>82</p><p>7</p></createRef>
	<wait>5</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>


<create label="shot_2_create1">
	<speed>$1</speed><direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>9-$_weapontype</vital>
	<shotRef label="shot_bullet_2_1"><p>$5</p></shotRef>
</create>


<shot label="shot_bullet_2_1">
	<revengeRef label="shot_revenge_2"></revengeRef>
	<collision type="rect"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision>	
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>10</radius></collision>	-->
	<img type="normal">
		<file type="dds">siz_bul32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>220</alpha><red>250</red><green>250</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<wait>8</wait>
	<autoTarget><num>$1</num></autoTarget>
</shot>

<!-- ********************************************* -->
<action label="shot_2_ttc_create_action">		
	<soundtrack><file type="ogg">shot</file></soundtrack>	
		<createRef label="shot_2_ttc_create1"><p>8</p><p>$_player_cx-8</p><p>$_player_cy-10</p><p>-10</p><p>0</p></createRef>
		<createRef label="shot_2_ttc_create1"><p>8</p><p>$_player_cx+8</p><p>$_player_cy-10</p><p>10</p><p>1</p></createRef>
		<wait>1</wait>
		<createRef label="shot_2_ttc_create1"><p>8</p><p>$_player_cx-12</p><p>$_player_cy-4</p><p>-34</p><p>2</p></createRef>
		<createRef label="shot_2_ttc_create1"><p>8</p><p>$_player_cx+12</p><p>$_player_cy-4</p><p>34</p><p>3</p></createRef>
		<wait>1</wait>
		<createRef label="shot_2_ttc_create1"><p>8</p><p>$_player_cx-16</p><p>$_player_cy+2</p><p>-58</p><p>4</p></createRef>
		<createRef label="shot_2_ttc_create1"><p>8</p><p>$_player_cx+16</p><p>$_player_cy+2</p><p>58</p><p>5</p></createRef>
		<wait>1</wait>
		<createRef label="shot_2_ttc_create1"><p>8</p><p>$_player_cx-16</p><p>$_player_cy+2</p><p>-82</p><p>6</p></createRef>
		<createRef label="shot_2_ttc_create1"><p>8</p><p>$_player_cx+16</p><p>$_player_cy+2</p><p>82</p><p>7</p></createRef>
		<wait>5</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>

<create label="shot_2_ttc_create1">
	<speed>$1</speed><direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>18-$_weapontype*2</vital><flag>1</flag>
	<shotRef label="shot_bullet_ttc_2_1"><p>$5</p></shotRef>
</create>


<shot label="shot_bullet_ttc_2_1">
	<revengeRef label="shot_revenge_ttc2"></revengeRef>
	<collision type="rect"><left>-32</left><top>-32</top><right>32</right><bottom>32</bottom></collision>	
<!--	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>10</radius></collision>	-->
	<img type="normal">
		<file type="dds">siz_bul32</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>32</width><height>32</height>
		<alpha>180</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">0</imgDirection>
	<wait>8</wait>
	<autoTarget><num>$1</num></autoTarget>
</shot>

<!-- ********************************************************************* -->

<revenge label="shot_revenge_1">
	<actionRef label="shot_break_action"/>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<img type="add">
		<file type="dds">circlewhite</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>8</width><height>8</height>
		<alpha>200</alpha><red>255</red><green>128</green><blue>128</blue>
	</img>

	<changeSpeed>
		<speed type="absolute">0.5</speed><term>3</term>
	</changeSpeed>

	<changeImgSize>
		<width>$1*6</width><height>$1*6</height><term>36</term>
	</changeImgSize>
	<wait>2</wait>

	<changeColor>
		<alpha>160</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>140</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>120</alpha><red>128</red><green>255</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>100</alpha><red>128</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>80</alpha><red>255</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>

	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>40</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	

	<vanish></vanish>
</revenge>


<revenge label="shot_revenge_ttc1">
	<actionRef label="shot_break_action"/>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<img type="add">
		<file type="dds">circlewhite</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>8</width><height>8</height>
		<alpha>250</alpha><red>255</red><green>128</green><blue>128</blue>
	</img>

	<changeSpeed>
		<speed type="absolute">0.5</speed><term>3</term>
	</changeSpeed>

	<changeImgSize>
		<width>$1*6</width><height>$1*6</height><term>36</term>
	</changeImgSize>
	<wait>2</wait>

	<changeColor>
		<alpha>160</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>140</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>120</alpha><red>128</red><green>255</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>100</alpha><red>128</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>80</alpha><red>255</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>

	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>40</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	

	<vanish></vanish>
</revenge>

<revenge label="shot_revenge_2">
	<actionRef label="shot_break_action"/>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<img type="add">
		<file type="dds">circlewhite</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>8</width><height>8</height>
		<alpha>250</alpha><red>255</red><green>128</green><blue>128</blue>
	</img>

	<changeSpeed>
		<speed type="absolute">0.5</speed><term>3</term>
	</changeSpeed>

	<changeImgSize>
		<width>48</width><height>48</height><term>36</term>
	</changeImgSize>
	<wait>2</wait>

	<changeColor>
		<alpha>160</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>140</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>120</alpha><red>128</red><green>255</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>100</alpha><red>128</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>80</alpha><red>255</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>

	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>40</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	

	<vanish></vanish>
</revenge>


<revenge label="shot_revenge_ttc2">
	<actionRef label="shot_break_action"/>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<img type="add">
		<file type="dds">circlewhite</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>8</width><height>8</height>
		<alpha>250</alpha><red>255</red><green>128</green><blue>128</blue>
	</img>

	<changeSpeed>
		<speed type="absolute">0.5</speed><term>3</term>
	</changeSpeed>

	<changeImgSize>
		<width>96</width><height>96</height><term>36</term>
	</changeImgSize>
	<wait>2</wait>

	<changeColor>
		<alpha>160</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>140</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>120</alpha><red>128</red><green>255</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>100</alpha><red>128</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>80</alpha><red>255</red><green>128</green><blue>255</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>

	<changeColor>
		<alpha>60</alpha><red>255</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	<changeColor>
		<alpha>40</alpha><red>128</red><green>255</green><blue>128</blue><term>2</term>	
	</changeColor>
	<wait>4</wait>
	

	<vanish></vanish>
</revenge>

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

<create label="shot_break_particle_create">
	<speed>2.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>12</term>	
		</changeColor>
		<wait>12</wait>
		<vanish></vanish>
	</object>
</create>

</exbulletml>
