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

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

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

	<!-- *** Magic 発動中（Magic 発動から 300 フレーム未満）*** -->
<!--
	<repeat><times>$_ttc_frame-lt300</times>
		<rep><ts>$_slowmode-eq0</ts>
			<actionRef label="shot_1_ttc_create_action"></actionRef>
		</rep>

		<rep><ts>1-($_slowmode-eq0)</ts>
			<actionRef label="shot_1_ttc_slow_create_action"></actionRef>
		</rep>
	</repeat>
-->
	
	<!-- *** 通常（Magic 発動から 300 フレーム以上経過）*** -->
<!--	<repeat><times>1-($_ttc_frame-lt300)</times> -->

		<!-- 通常速度移動時 -->
		<rep><ts>$_slowmode-eq0</ts>
			<actionRef label="shot_1_create_action"><p>$_ttc_frame-lt300</p></actionRef>
		</rep>

		<!-- 低速移動時 -->
		<rep><ts>1-($_slowmode-eq0)</ts>
			<actionRef label="shot_1_slow_create_action"><p>$_ttc_frame-lt300</p></actionRef>
		</rep>

<!--	</repeat> -->
		
</action>


<!-- ********************************************************************* -->
<!-- *** キャラ１の生成アクション ************************************** -->
<!-- ********************************************************************* -->

<!-- ********************************************************************* -->
<!-- 通常速度移動時 -->
<action label="shot_1_create_action">		

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_1a_create"><p>10</p><p>$_player_cx</p><p>$_player_cy-9</p><p>0</p><p>$1</p></createRef>
	<createRef label="shot_1a_create"><p>10</p><p>$_player_cx+2</p><p>$_player_cy-7</p><p>20</p><p>$1</p></createRef>
	<createRef label="shot_1a_create"><p>10</p><p>$_player_cx-2</p><p>$_player_cy-7</p><p>-20</p><p>$1</p></createRef>
	<w>1</w>
	<createRef label="shot_1a_create"><p>10</p><p>$_player_cx+4</p><p>$_player_cy-5</p><p>40</p><p>$1</p></createRef>
	<createRef label="shot_1a_create"><p>10</p><p>$_player_cx-4</p><p>$_player_cy-5</p><p>-40</p><p>$1</p></createRef>
	<createRef label="shot_1a_create"><p>10</p><p>$_player_cx+6</p><p>$_player_cy-3</p><p>60</p><p>$1</p></createRef>
	<createRef label="shot_1a_create"><p>10</p><p>$_player_cx-6</p><p>$_player_cy-3</p><p>-60</p><p>$1</p></createRef>
	<wait>5</wait>

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


<create label="shot_1a_create">
	<speed>$1</speed><direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>18</vital>
<!--	<flag>$5</flag>-->
	<shotRef label="shot_bullet_1a"><p>$5</p></shotRef>
</create>

<shot label="shot_bullet_1a">
	<revengeRef label="shot_revenge_1"><p>$1</p></revengeRef>
	<collision type="rect"><left>-26</left><top>-26</top><right>26</right><bottom>26</bottom></collision>	
	<img type="normal">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>36</width><height>36</height>
		<alpha>120</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
</shot>


<!-- ********************************************************************* -->
<!-- 低速移動時 -->
<action label="shot_1_slow_create_action">		

	<soundtrack><file type="ogg">shot</file></soundtrack>	
	<createRef label="shot_1b_create"><p>10</p><p>$_player_cx</p><p>$_player_cy-9</p><p>0</p><p>$1</p></createRef>
	<wait>6</wait>
	<!-- *** 最後に必ず exit すること *** -->
	<exit></exit>
</action>

<create label="shot_1b_create">
	<speed>$1</speed><direction type="absolute">$4</direction>
	<cx>$2</cx><cy>$3</cy>
	<vital>117</vital>
<!--	<flag>$5</flag>-->
	<shotRef label="shot_bullet_1b"><p>$5</p></shotRef>
</create>

<shot label="shot_bullet_1b">
	<revengeRef label="shot_revenge_2"><p>$1</p></revengeRef>
	<collision type="rect"><left>-30</left><top>-30</top><right>30</right><bottom>30</bottom></collision>	
	<img type="normal">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>64</width><height>64</height>
		<alpha>120</alpha><red>255</red><green>255</green><blue>255</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>

</shot>


<!-- revenge -->
<revenge label="shot_revenge_1">

	<actionRef label="shot_break_action"/>
	<createRef label="shot_break1"><p>$1</p></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>
<!--	<flag>$1</flag>-->
	<shot>
		<collision type="rect"><left>-20</left><top>-20</top><right>20</right><bottom>20</bottom></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</green><blue>255</blue>
		</img>
		<setBreakable><num>1</num></setBreakable>

		<setDrawLevel><num>17</num></setDrawLevel>

		<changeColor>
			<alpha>30</alpha><red>255</red><green>255</green><blue>255</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_2">

	<actionRef label="shot_break_action"/>
	<createRef label="shot_break2"><p>$1</p></createRef>
	<actionRef label="shot_break_particle_create_action"></actionRef>

	<vanish></vanish>
</revenge>

<create label="shot_break2">
	<speed>2</speed>
	<direction type="relative">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>0.2</vital>
<!--	<flag>$1</flag>-->
	<shot>
		<collision type="rect"><left>-30</left><top>-30</top><right>30</right><bottom>30</bottom></collision>	
		<img type="add">
			<file type="dds">fire32</file>
			<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
			<width>32</width><height>32</height>
			<alpha>255</alpha><red>255</red><green>255</green><blue>255</blue>
		</img>
		<setBreakable><num>1</num></setBreakable>
		<setDrawLevel><num>17</num></setDrawLevel>

		<changeColor>
			<alpha>30</alpha><red>255</red><green>255</green><blue>255</blue><term>45</term>	
		</changeColor>
		<changeImgSize>
			<width>48</width><height>48</height><term>45</term>	
		</changeImgSize>

		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>40</term>
		</changeSpeed>
		<wait>30</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>
</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>
