<?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_2_create_action">		
	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_2_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-12</p><p>0</p></createRef>
	<createRef label="shot_2_create"><p>8</p><p>$_player_cx+9</p><p>$_player_cy-6</p><p>0.4</p></createRef>
	<createRef label="shot_2_create"><p>8</p><p>$_player_cx-9</p><p>$_player_cy-6</p><p>-0.4</p></createRef>
	<createRef label="shot_2_create"><p>8</p><p>$_player_cx+18</p><p>$_player_cy</p><p>0.8</p></createRef>
	<createRef label="shot_2_create"><p>8</p><p>$_player_cx-18</p><p>$_player_cy</p><p>-0.8</p></createRef>
	<wait>6</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>

<create label="shot_2_create">
	<speed>$1</speed><direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>(29-$_weapontype*3)</vital>
	<shotRef label="shot_bullet_2"></shotRef>
</create>

<shot label="shot_bullet_2">
	<revengeRef label="shot_revenge_2"></revengeRef>
	<collision type="rect"><left>-6</left><top>-20</top><right>6</right><bottom>20</bottom></collision>	
	<img type="normal">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>12</width><height>40</height>
		<alpha>100</alpha><red>155+$__shot_color*85</red><green>155-$__shot_color*125</green><blue>155+$__shot_color*35</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<create>
		<speed>$_self_speed</speed><direction type="absolute">$_self_direction</direction>
		<cx>$_self_cx</cx><cy>$_self_cy-2</cy>
		<child>1</child>
		<objectRef label="object_shadow_bullet_2"></objectRef>
	</create>

</shot>

<object label="object_shadow_bullet_2">
	<img type="add">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>20</width><height>48</height>
		<alpha>60</alpha><red>255-$__shot_color*125</red><green>64</green><blue>32</blue>
	</img>
	<setDrawLevel><num>12</num></setDrawLevel>
	<imgDirection type="sync">180</imgDirection>
</object>

<!-- ********************************************* -->
<action label="shot_2_ttc_create_action">	
	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_2_ttc_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-12</p><p>0</p></createRef>
	<createRef label="shot_2_ttc_create"><p>8</p><p>$_player_cx+9</p><p>$_player_cy-6</p><p>0.5</p></createRef>
	<createRef label="shot_2_ttc_create"><p>8</p><p>$_player_cx-9</p><p>$_player_cy-6</p><p>-0.5</p></createRef>
	<createRef label="shot_2_ttc_create"><p>8</p><p>$_player_cx+18</p><p>$_player_cy</p><p>1</p></createRef>
	<createRef label="shot_2_ttc_create"><p>8</p><p>$_player_cx-18</p><p>$_player_cy</p><p>-1</p></createRef>
	<wait>6</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>		
</action>

<create label="shot_2_ttc_create">
	<speed>$1</speed><direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>(29-$_weapontype*3)*2</vital><flag>1</flag>
	<shotRef label="shot_bullet_ttc_2"></shotRef>
</create>

<shot label="shot_bullet_ttc_2">
	<revengeRef label="shot_revenge_ttc_2"></revengeRef>
	<collision type="rect"><left>-12</left><top>-24</top><right>12</right><bottom>24</bottom></collision>	
	<img type="normal">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>24</width><height>56</height>
		<alpha>60</alpha><red>155+$__shot_color*85</red><green>155-$__shot_color*125</green><blue>155+$__shot_color*35</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

	<create>
		<speed>$_self_speed</speed><direction type="absolute">$_self_direction</direction>
		<cx>$_self_cx</cx><cy>$_self_cy-2</cy>
		<child>1</child>
		<objectRef label="object_shadow_bullet_ttc_2"></objectRef>
	</create>
</shot>

<object label="object_shadow_bullet_ttc_2">
	<img type="add">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>32</width><height>64</height>
		<alpha>30</alpha><red>255-$__shot_color*125</red><green>64</green><blue>32</blue>
	</img>
	<setDrawLevel><num>12</num></setDrawLevel>
	<imgDirection type="sync">180</imgDirection>
</object>


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

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_1_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-9</p><p>0</p></createRef>
	<createRef label="shot_1_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-4</p><p>20</p></createRef>
	<createRef label="shot_1_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-4</p><p>-20</p></createRef>
	<wait>1</wait>
	<createRef label="shot_1_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-1</p><p>40</p></createRef>
	<createRef label="shot_1_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-1</p><p>-40</p></createRef>
	<createRef label="shot_1_create"><p>8</p><p>$_player_cx</p><p>$_player_cy+6</p><p>60</p></createRef>
	<createRef label="shot_1_create"><p>8</p><p>$_player_cx</p><p>$_player_cy+6</p><p>-60</p></createRef>
	<wait>1</wait>
	<wait>4</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>
</action>

<create label="shot_1_create">
	<speed>$1</speed><direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>(18-$_weapontype*2)</vital>
	<shotRef label="shot_bullet_1"></shotRef>
</create>

<shot label="shot_bullet_1">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-16</left><top>-16</top><right>16</right><bottom>16</bottom></collision>	
	<img type="normal">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>20</width><height>20</height>
		<alpha>100</alpha><red>155+$__shot_color*85</red><green>155-$__shot_color*125</green><blue>155+$__shot_color*35</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<create>
		<speed>$_self_speed</speed><direction type="absolute">$_self_direction</direction>
		<cx>$_self_cx</cx><cy>$_self_cy-2</cy>
		<child>1</child>
		<objectRef label="object_shadow_bullet_1"></objectRef>
	</create>

</shot>

<object label="object_shadow_bullet_1">
	<img type="add">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>28</width><height>28</height>
		<alpha>60</alpha><red>255-$__shot_color*125</red><green>64</green><blue>32</blue>
	</img>
	<setDrawLevel><num>12</num></setDrawLevel>
	<imgDirection type="sync">180</imgDirection>
</object>

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

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_1_ttc_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-9</p><p>0</p></createRef>
	<createRef label="shot_1_ttc_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-4</p><p>20</p></createRef>
	<createRef label="shot_1_ttc_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-4</p><p>-20</p></createRef>
	<wait>1</wait>
	<createRef label="shot_1_ttc_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-1</p><p>40</p></createRef>
	<createRef label="shot_1_ttc_create"><p>8</p><p>$_player_cx</p><p>$_player_cy-1</p><p>-40</p></createRef>
	<createRef label="shot_1_ttc_create"><p>8</p><p>$_player_cx</p><p>$_player_cy+6</p><p>60</p></createRef>
	<createRef label="shot_1_ttc_create"><p>8</p><p>$_player_cx</p><p>$_player_cy+6</p><p>-60</p></createRef>
	<wait>1</wait>
	<wait>4</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>
</action>

<create label="shot_1_ttc_create">
	<speed>$1</speed><direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>(18-$_weapontype*2)*2</vital><flag>1</flag>
	<shotRef label="shot_bullet_ttc_2"></shotRef>
</create>

<shot label="shot_bullet_ttc_1">
	<revengeRef label="shot_revenge_1"></revengeRef>
	<collision type="rect"><left>-32</left><top>-32</top><right>32</right><bottom>32</bottom></collision>	
	<img type="add">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>40</width><height>40</height>
		<alpha>60</alpha><red>155+$__shot_color*85</red><green>155-$__shot_color*125</green><blue>155+$__shot_color*35</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<create>
		<speed>$_self_speed</speed><direction type="absolute">$_self_direction</direction>
		<cx>$_self_cx</cx><cy>$_self_cy-2</cy>
		<child>1</child>
		<objectRef label="object_shadow_bullet_ttc_1"></objectRef>
	</create>
</shot>

<object label="object_shadow_bullet_ttc_1">
	<img type="add">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>48</width><height>48</height>
		<alpha>30</alpha><red>255-$__shot_color*125</red><green>64</green><blue>32</blue>
	</img>
	<setDrawLevel><num>12</num></setDrawLevel>
	<imgDirection type="sync">180</imgDirection>
</object>




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

<revenge label="shot_revenge_2">

	<actionRef label="shot_break_action"/>
	<createRef label="shot_break2"></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<vanish></vanish>
</revenge>

<revenge label="shot_revenge_ttc_2">

	<actionRef label="shot_break_action"/>
	<createRef label="shot_break_ttc2"></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<vanish></vanish>
</revenge>

<create label="shot_break2">
	<speed>1.6</speed>
	<direction type="relative">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>0.3</vital>
	<shot>
		<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>8</radius></collision>	
		<img type="add">
			<file type="dds">fire32</file>
			<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
			<width>16</width><height>16</height>
			<alpha>255</alpha><red>255</red><green>255-$__shot_color*125</green><blue>255</blue>
		</img>
		<setDrawLevel><num>20</num></setDrawLevel>
		<setBreakable><num>1</num></setBreakable>

		<changeColor>
			<alpha>30</alpha><red>255-$__shot_color*55</red><green>5</green><blue>10</blue><term>25</term>	
		</changeColor>
		<changeImgSize>
			<width>32</width><height>32</height><term>25</term>	
		</changeImgSize>


		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">0.2</speed><term>25</term>
		</changeSpeed>
		<wait>20</wait>
		<vanish></vanish>
	</shot>
</create>

<create label="shot_break_ttc2">
	<speed>2.4</speed>
	<direction type="relative">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>0.5</vital>
	<flag>1</flag>
	<shot>
		<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>12</radius></collision>	
		<img type="add">
			<file type="dds">fire32</file>
			<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
			<width>20</width><height>20</height>
			<alpha>255</alpha><red>255</red><green>255-$__shot_color*125</green><blue>255</blue>
		</img>
		<setBreakable><num>1</num></setBreakable>
		<setDrawLevel><num>20</num></setDrawLevel>

		<changeColor>
			<alpha>30</alpha><red>255</red><green>255-$__shot_color*125</green><blue>255</blue><term>25</term>	
		</changeColor>
		<changeImgSize>
			<width>40</width><height>40</height><term>25</term>	
		</changeImgSize>

		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">0.2</speed><term>25</term>
		</changeSpeed>
		<wait>20</wait>
		<vanish></vanish>
	</shot>
</create>



<revenge label="shot_revenge_1">

	<actionRef label="shot_break_action"/>
	<createRef label="shot_break1"></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<vanish></vanish>
</revenge>

<create label="shot_break1">
	<speed>1</speed>
	<direction type="relative">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>0.1</vital>
	<shot>
		<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>10</radius></collision>	
		<img type="add">
			<file type="dds">fire32</file>
			<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
			<width>16</width><height>16</height>
			<alpha>255</alpha><red>255</red><green>255-$__shot_color*125</green><blue>255</blue>
		</img>
		<setBreakable><num>1</num></setBreakable>
		<setDrawLevel><num>20</num></setDrawLevel>

		<changeColor>
			<alpha>30</alpha><red>255-$__shot_color*65</red><green>5</green><blue>10</blue><term>25</term>	
		</changeColor>
		<changeImgSize>
			<width>32</width><height>32</height><term>25</term>	
		</changeImgSize>

		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">0.2</speed><term>25</term>
		</changeSpeed>
		<wait>20</wait>
		<vanish></vanish>
	</shot>
</create>

<revenge label="shot_revenge_ttc_1">

	<actionRef label="shot_break_action"/>
	<createRef label="shot_break_ttc1"></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<vanish></vanish>
</revenge>

<create label="shot_break_ttc1">
	<speed>1.6</speed>
	<direction type="relative">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>0.2</vital>
	<flag>1</flag>
	<shot>
		<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>20</radius></collision>	
		<img type="add">
			<file type="dds">fire32</file>
			<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
			<width>20</width><height>20</height>
			<alpha>255</alpha><red>255</red><green>255-$__shot_color*125</green><blue>255</blue>
		</img>
		<setBreakable><num>1</num></setBreakable>
		<setDrawLevel><num>20</num></setDrawLevel>

		<changeColor>
			<alpha>30</alpha><red>255-$__shot_color*65</red><green>5</green><blue>10</blue><term>25</term>	
		</changeColor>
		<changeImgSize>
			<width>40</width><height>40</height><term>25</term>	
		</changeImgSize>

		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">0.2</speed><term>25</term>
		</changeSpeed>
		<wait>20</wait>
		<vanish></vanish>
	</shot>
</create>

<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-$__shot_color*125</green><blue>255</blue>
		</img>
		<setDrawLevel><num>20</num></setDrawLevel>
		<changeColor>
			<alpha>0</alpha><red>255</red><green>255-$__shot_color*125</green><blue>255</blue><term>12</term>	
		</changeColor>
		<wait>12</wait>
		<vanish></vanish>
	</object>
</create>


</exbulletml>
