<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>audio es</name>
    <events>
        <variable comment="normal volume of db" constant="0" name="NORMAL_VOLUME" sid="280233443060748" static="0" type="number">0</variable>
        <variable comment="volume of db" constant="0" name="adjustVolume" sid="433304897591669" static="0" type="number">0</variable>
        <event-group description="" sid="144160856712007" title="game">
            <sub-events>
                <variable constant="0" name="funParamUID" sid="971147639891444" static="0" type="number">0</variable>
                <event-block sid="889008143160071">
                    <conditions>
                        <condition id="0" name="On function" sid="137817074775874" type="Function">
                            <param id="0" name="Name">&quot;audio.playByName&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <variable constant="0" name="vo" sid="493234975221563" static="0" type="text"></variable>
                        <variable constant="0" name="tag" sid="931351317591877" static="0" type="text"></variable>
                        <variable constant="0" name="rc" sid="613873566498939" static="0" type="number">1</variable>
                        <event-block sid="108273041151420">
                            <conditions />
                            <actions>
                                <action id="-9" name="Destroy" sid="197433710593346" type="arrFunParam" />
                                <action id="-9" name="Set value" sid="341659411262412" type="System">
                                    <param id="0" name="Variable">vo</param>
                                    <param id="1" name="Value">Function.Param(0)</param>
                                </action>
                                <action id="1" name="Dump parameters into a new array" sid="609544962016112" type="FnParamToArray">
                                    <param id="0" name="Array">arrFunParam</param>
                                </action>
                                <action id="-9" name="Set value" sid="868043346812261" type="System">
                                    <param id="0" name="Variable">funParamUID</param>
                                    <param id="1" name="Value">arrFunParam.UID</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="798566058624818">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="287110711536229" type="arrFunParam">
                                    <param id="0" name="Unique ID">funParamUID</param>
                                </condition>
                                <condition id="7" name="Compare size" sid="136201167029266" type="arrFunParam">
                                    <param id="0" name="Axis">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-9" name="Set value" sid="478935181454791" type="System">
                                    <param id="0" name="Variable">tag</param>
                                    <param id="1" name="Value">vo</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="804929438558324">
                            <conditions>
                                <condition id="-22" name="Else" sid="153387120547339" type="System" />
                            </conditions>
                            <actions>
                                <action id="-9" name="Set value" sid="726667110812024" type="System">
                                    <param id="0" name="Variable">tag</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="956082860318592">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="409017634057146" type="arrFunParam">
                                    <param id="0" name="Unique ID">funParamUID</param>
                                </condition>
                                <condition id="7" name="Compare size" sid="435842238073489" type="arrFunParam">
                                    <param id="0" name="Axis">0</param>
                                    <param id="1" name="Comparison">4</param>
                                    <param id="2" name="Value">2</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-9" name="Set value" sid="163724878287939" type="System">
                                    <param id="0" name="Variable">rc</param>
                                    <param id="1" name="Value">Function.Param(2)</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="208297165753102">
                            <conditions />
                            <actions>
                                <action id="7" name="Play (by name)" sid="665015425912003" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">vo</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">tag</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="582338080771582">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="759032177588178" type="System">
                                    <param id="0" name="Variable">rc</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Call function" sid="674554111073265" type="Function">
                                    <param id="0" name="Name">&quot;audio.record&quot;</param>
                                    <param id="1" name="Parameter {n}">tag</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>correct return &quot;correctSFX&quot;, otherwise return &quot;incorrectSFX&quot;</comment>
                <event-block sid="233352687329422">
                    <conditions>
                        <condition id="0" name="On function" sid="604726857377682" type="Function">
                            <param id="0" name="Name">&quot;audio.getIscorrectdSFXTag&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="1" name="Set return value" sid="690283202074721" type="Function">
                            <param id="0" name="Value">Function.Param(0)=0?&quot;incorrectSFX&quot;:&quot;correctSFX&quot;</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="765006762321509">
                    <conditions>
                        <condition id="0" name="On function" sid="308679315841778" type="Function">
                            <param id="0" name="Name">&quot;audio.correctSFX&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="427331733891728">
                            <conditions />
                            <actions>
                                <action id="7" name="Play (by name)" sid="388615267619012" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;s_effect_001&quot;</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">Function.Call(&quot;audio.getIscorrectdSFXTag&quot;, 1)</param>
                                </action>
                                <action id="0" name="Call function" sid="290051752841678" type="Function">
                                    <param id="0" name="Name">&quot;audio.record&quot;</param>
                                    <param id="1" name="Parameter {n}">Function.Call(&quot;audio.getIscorrectdSFXTag&quot;, 1)</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="843415611414854">
                    <conditions>
                        <condition id="0" name="On function" sid="935360436432170" type="Function">
                            <param id="0" name="Name">&quot;audio.incorrectSFX&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="883763424325798">
                            <conditions />
                            <actions>
                                <action id="7" name="Play (by name)" sid="223500803205582" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;s_effect_002&quot;</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">Function.Call(&quot;audio.getIscorrectdSFXTag&quot;, 0)</param>
                                </action>
                                <action id="0" name="Call function" sid="809428628638290" type="Function">
                                    <param id="0" name="Name">&quot;audio.record&quot;</param>
                                    <param id="1" name="Parameter {n}">Function.Call(&quot;audio.getIscorrectdSFXTag&quot;, 0)</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="216418621589471">
                    <conditions>
                        <condition id="0" name="On function" sid="592553202998832" type="Function">
                            <param id="0" name="Name">&quot;audio.incorrectGoBackSFX&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="412668508817982">
                            <conditions />
                            <actions>
                                <action id="7" name="Play (by name)" sid="879247990646879" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;s_effect_003&quot;</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">&quot;incorrectGoBackSFX&quot;</param>
                                </action>
                                <action id="0" name="Call function" sid="769688839313136" type="Function">
                                    <param id="0" name="Name">&quot;audio.record&quot;</param>
                                    <param id="1" name="Parameter {n}">&quot;incorrectGoBackSFX&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="529987033351969">
                    <conditions>
                        <condition id="0" name="On function" sid="883632278750628" type="Function">
                            <param id="0" name="Name">&quot;audio.stopQuestionVO&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="398839116795111">
                            <conditions />
                            <actions>
                                <action id="6" name="Stop" sid="564307490577901" type="Audio">
                                    <param id="0" name="Tag">&quot;question&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="680230497690196">
                    <conditions>
                        <condition id="0" name="On function" sid="137710180938945" type="Function">
                            <param id="0" name="Name">&quot;audio.playQuestionVOByTip&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <variable constant="0" name="vo" sid="579836450347163" static="0" type="text"></variable>
                        <event-block sid="610328045919563">
                            <conditions />
                            <actions>
                                <action id="-9" name="Set value" sid="994131323287396" type="System">
                                    <param id="0" name="Variable">vo</param>
                                    <param id="1" name="Value">&quot;introduce&quot;</param>
                                </action>
                                <action id="6" name="Stop" sid="153307721843996" type="Audio">
                                    <param id="0" name="Tag">&quot;introduce&quot;</param>
                                </action>
                                <action id="0" name="Call function" sid="518850730935755" type="Function">
                                    <param id="0" name="Name">&quot;audio.playByName&quot;</param>
                                    <param id="1" name="Parameter {n}">vo{###}&quot;introduce&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="319853084664349">
                    <conditions>
                        <condition id="0" name="On function" sid="450408938162200" type="Function">
                            <param id="0" name="Name">&quot;audio.stopQuestionVOByTip&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="748763673729174">
                            <conditions />
                            <actions>
                                <action id="6" name="Stop" sid="263825589594911" type="Audio">
                                    <param id="0" name="Tag">&quot;introduce&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>correct return &quot;correctFeedback&quot;, otherwise return &quot;incorrectFeedback&quot;, </comment>
                <event-block sid="885951252518688">
                    <conditions>
                        <condition id="0" name="On function" sid="822621790628519" type="Function">
                            <param id="0" name="Name">&quot;audio.getIscorrFeedbackVOTag&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="1" name="Set return value" sid="631783672943932" type="Function">
                            <param id="0" name="Value">Function.Param(0)=0?&quot;incorrFeedback&quot;:&quot;corrFeedback&quot;</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="583323867505878">
                    <conditions>
                        <condition id="0" name="On function" sid="926666224600452" type="Function">
                            <param id="0" name="Name">&quot;audio.corrFeedbackVO&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="986427813483048">
                            <conditions />
                            <actions>
                                <action id="7" name="Play (by name)" sid="568346633015191" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;correct&quot; &amp; int(random(1,4))</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">Function.Call(&quot;audio.getIscorrFeedbackVOTag&quot;,1 )</param>
                                </action>
                                <action id="0" name="Call function" sid="574860193529620" type="Function">
                                    <param id="0" name="Name">&quot;sound record&quot;</param>
                                    <param id="1" name="Parameter {n}">Function.Call(&quot;audio.getIscorrFeedbackVOTag&quot;,1 )</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="160578286104809">
                    <conditions>
                        <condition id="0" name="On function" sid="148174354048866" type="Function">
                            <param id="0" name="Name">&quot;audio.incorrFeedbackVO&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="378530135961749">
                            <conditions />
                            <actions>
                                <action id="7" name="Play (by name)" sid="192310243548696" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">&quot;wrong&quot; &amp; int(random(1,4))</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">adjustVolume</param>
                                    <param id="2" name="Tag (optional)">Function.Call(&quot;audio.getIscorrFeedbackVOTag&quot;,0 )</param>
                                </action>
                                <action id="0" name="Call function" sid="795206946287719" type="Function">
                                    <param id="0" name="Name">&quot;audio.record&quot;</param>
                                    <param id="1" name="Parameter {n}">Function.Call(&quot;audio.getIscorrFeedbackVOTag&quot;,0 )</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="304274960077280" title="sound">
            <sub-events>
                <event-block sid="811891010446026">
                    <conditions>
                        <condition id="-2" name="On start of layout" sid="890425334080438" type="System" />
                    </conditions>
                    <actions>
                        <action id="1" name="Set size" sid="994490968705515" type="arrPlayingSound">
                            <param id="0" name="Width">0</param>
                            <param id="1" name="Height">2</param>
                            <param id="2" name="Depth">1</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="857639458034989">
                    <conditions>
                        <condition id="0" name="On function" sid="713785503059973" type="Function">
                            <param id="0" name="Name">&quot;audio.stopall&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="33" name="Stop all" sid="141362904743847" type="Audio" />
                    </actions>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="203138036578918" title="sound playing list">
            <sub-events>
                <comment>recording sound name is playing</comment>
                <event-block sid="334292685402848">
                    <conditions>
                        <condition id="0" name="On function" sid="181842196193626" type="Function">
                            <param id="0" name="Name">&quot;audio.record&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="256926327832094">
                            <conditions />
                            <actions>
                                <action id="5" name="Push" sid="803797783028836" type="arrPlayingSound">
                                    <param id="0" name="Where">0</param>
                                    <param id="1" name="Value">Function.Param(0)</param>
                                    <param id="2" name="Axis">0</param>
                                </action>
                                <action id="3" name="Set at XY" sid="737910562369985" type="arrPlayingSound">
                                    <param id="0" name="X">arrPlayingSound.Width - 1</param>
                                    <param id="1" name="Y">1</param>
                                    <param id="2" name="Value">0</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>remove sound on end</comment>
                <event-block sid="748737899890153">
                    <conditions>
                        <condition id="0" name="On function" sid="150027261756246" type="Function">
                            <param id="0" name="Name">&quot;audio.remove&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <variable constant="0" name="index" sid="566476631921878" static="0" type="number">-1</variable>
                        <variable constant="0" name="tagName" sid="387626159989456" static="0" type="text"></variable>
                        <event-block sid="342539342833834">
                            <conditions />
                            <actions>
                                <action id="-9" name="Set value" sid="577804776098674" type="System">
                                    <param id="0" name="Variable">tagName</param>
                                    <param id="1" name="Value">Function.Param(0)</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="899503541615568">
                            <conditions>
                                <condition id="3" name="For each element" sid="903412948293266" type="arrPlayingSound">
                                    <param id="0" name="Axes">2</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="484340407304434">
                                    <conditions>
                                        <condition id="4" name="Compare current value" sid="845297511086590" type="arrPlayingSound">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Value">tagName</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-9" name="Set value" sid="859227738390781" type="System">
                                            <param id="0" name="Variable">index</param>
                                            <param id="1" name="Value">arrPlayingSound.CurX</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="213093217950674">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="457066392492195" type="System">
                                    <param id="0" name="Variable">index</param>
                                    <param id="1" name="Comparison">4</param>
                                    <param id="2" name="Value">-1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="9" name="Delete" sid="349467170809707" type="arrPlayingSound">
                                    <param id="0" name="Index">index</param>
                                    <param id="1" name="Axis">0</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>pause all sound on sound list</comment>
                <event-block sid="236258604776782">
                    <conditions>
                        <condition id="0" name="On function" sid="436236622257899" type="Function">
                            <param id="0" name="Name">&quot;audio.pause&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="923861827240429">
                            <conditions>
                                <condition id="3" name="For each element" sid="750308316316560" type="arrPlayingSound">
                                    <param id="0" name="Axes">2</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="22" name="Set paused" sid="137952302615904" type="Audio">
                                    <param id="0" name="Tag">arrPlayingSound.CurValue</param>
                                    <param id="1" name="State">0</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>resume all sound on sound list</comment>
                <event-block sid="718997733244219">
                    <conditions>
                        <condition id="0" name="On function" sid="635488596617964" type="Function">
                            <param id="0" name="Name">&quot;audio.resume&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="506615347244570">
                            <conditions>
                                <condition id="3" name="For each element" sid="294224439933602" type="arrPlayingSound">
                                    <param id="0" name="Axes">2</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="3" name="Set volume" sid="110147197771054" type="Audio">
                                    <param id="0" name="Tag">arrPlayingSound.CurValue</param>
                                    <param id="1" name="dB">adjustVolume</param>
                                </action>
                                <action id="22" name="Set paused" sid="480314423369857" type="Audio">
                                    <param id="0" name="Tag">arrPlayingSound.CurValue</param>
                                    <param id="1" name="State">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>check sound is playing and on the list</comment>
                <event-block sid="561575366341249">
                    <conditions>
                        <condition id="0" name="On function" sid="495081915761602" type="Function">
                            <param id="0" name="Name">&quot;audio.isExist&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <variable constant="0" name="isExist" sid="944883398545887" static="0" type="number">0</variable>
                        <variable constant="0" name="tagName" sid="187962521802991" static="0" type="text"></variable>
                        <event-block sid="537175150415160">
                            <conditions />
                            <actions>
                                <action id="-9" name="Set value" sid="696711846539040" type="System">
                                    <param id="0" name="Variable">tagName</param>
                                    <param id="1" name="Value">Function.Param(0)</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="373376585067814">
                            <conditions>
                                <condition id="3" name="For each element" sid="769566388851924" type="arrPlayingSound">
                                    <param id="0" name="Axes">2</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="701622231407354">
                                    <conditions>
                                        <condition id="4" name="Compare current value" sid="397297559059117" type="arrPlayingSound">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Value">tagName</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-9" name="Set value" sid="176045459265688" type="System">
                                            <param id="0" name="Variable">isExist</param>
                                            <param id="1" name="Value">1</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="444337573229955">
                            <conditions />
                            <actions>
                                <action id="1" name="Set return value" sid="701470309105206" type="Function">
                                    <param id="0" name="Value">isExist</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment></comment>
                <event-block sid="801860765501935">
                    <conditions>
                        <condition id="0" name="On function" sid="303246036304625" type="Function">
                            <param id="0" name="Name">&quot;audio.statusUpdate&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="909691775151435">
                            <conditions>
                                <condition id="3" name="For each element" sid="330837191387908" type="arrPlayingSound">
                                    <param id="0" name="Axes">2</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="328399531378020">
                                    <conditions>
                                        <condition id="5" name="Is tag playing" sid="570146044561975" type="Audio">
                                            <param id="0" name="Tag">arrPlayingSound.CurValue</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="733387387189507">
                                            <conditions>
                                                <condition id="1" name="Compare at XY" sid="654749995362123" type="arrPlayingSound">
                                                    <param id="0" name="X">arrPlayingSound.CurX</param>
                                                    <param id="1" name="Y">1</param>
                                                    <param id="2" name="Comparison">0</param>
                                                    <param id="3" name="Value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="3" name="Set at XY" sid="956344973093080" type="arrPlayingSound">
                                                    <param id="0" name="X">arrPlayingSound.CurX</param>
                                                    <param id="1" name="Y">1</param>
                                                    <param id="2" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="358280506566864">
                                    <conditions>
                                        <condition id="-22" name="Else" sid="124373267194885" type="System" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="794343734384591">
                                            <conditions>
                                                <condition id="1" name="Compare at XY" sid="189322636923368" type="arrPlayingSound">
                                                    <param id="0" name="X">arrPlayingSound.CurX</param>
                                                    <param id="1" name="Y">1</param>
                                                    <param id="2" name="Comparison">0</param>
                                                    <param id="3" name="Value">1</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="9" name="Delete" sid="703851082065707" type="arrPlayingSound">
                                                    <param id="0" name="Index">arrPlayingSound.CurX</param>
                                                    <param id="1" name="Axis">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="605932679082342" title="music">
            <sub-events>
                <variable constant="1" name="NORBGMVOLUME" sid="139138026597532" static="0" type="number">-16</variable>
                <variable constant="1" name="VOBGMVALUME" sid="819788941704802" static="0" type="number">-30</variable>
                <variable constant="1" name="BGMTAG" sid="332275869842131" static="0" type="text">music</variable>
                <variable constant="1" name="BGMFILENAME" sid="648684380205565" static="0" type="text">new_bgm</variable>
                <event-block sid="581391638232022">
                    <conditions>
                        <condition id="0" name="On function" sid="208968481377745" type="Function">
                            <param id="0" name="Name">&quot;music play&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="455542198484242">
                            <conditions />
                            <actions>
                                <action id="6" name="Stop" sid="412071201916117" type="Audio">
                                    <param id="0" name="Tag">BGMTAG</param>
                                </action>
                                <action id="7" name="Play (by name)" sid="716667408861047" type="Audio">
                                    <param id="0" name="Folder">0</param>
                                    <param id="1" name="Audio file name">BGMFILENAME</param>
                                    <param id="3" name="Loop">0</param>
                                    <param id="4" name="Volume">NORBGMVOLUME</param>
                                    <param id="2" name="Tag (optional)">BGMTAG</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="503093472442889">
                    <conditions>
                        <condition id="0" name="On function" sid="961140166796153" type="Function">
                            <param id="0" name="Name">&quot;music stop&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="6" name="Stop" sid="587628096301608" type="Audio">
                            <param id="0" name="Tag">BGMTAG</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="690421453240299">
                    <conditions>
                        <condition id="5" name="Is tag playing" sid="884740672046033" type="Audio">
                            <param id="0" name="Tag">&quot;music&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="772652939963083">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="172598617140871" type="System">
                                    <param id="0" name="Variable">allowPlayMusic</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Call function" sid="786308780681988" type="Function">
                                    <param id="0" name="Name">&quot;music stop&quot;</param>
                                    <param id="1" name="Parameter {n}"></param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="357598797153391">
                            <conditions>
                                <condition id="-22" name="Else" sid="886437784374920" type="System" />
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block any="1" sid="625983326921829">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="385762270874752" type="System">
                                            <param id="0" name="Variable">gameStatus</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">STATUS_GAMEOVER</param>
                                        </condition>
                                        <condition id="-14" name="Compare variable" sid="599717458413354" type="System">
                                            <param id="0" name="Variable">gameStatus</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">STATUS_INTRO</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Call function" sid="978340591884357" type="Function">
                                            <param id="0" name="Name">&quot;music stop&quot;</param>
                                            <param id="1" name="Parameter {n}"></param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="200893816550115">
                                    <conditions>
                                        <condition id="-22" name="Else" sid="495043340909214" type="System" />
                                        <condition id="-14" name="Compare variable" sid="594409921026946" type="System">
                                            <param id="0" name="Variable">gameStatus</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">STATUS_PAUSE</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="22" name="Set paused" sid="398121761489563" type="Audio">
                                            <param id="0" name="Tag">BGMTAG</param>
                                            <param id="1" name="State">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="679974241522703">
                    <conditions>
                        <condition id="-22" name="Else" sid="724677492587453" type="System" />
                        <condition id="-14" name="Compare variable" sid="581809287459730" type="System">
                            <param id="0" name="Variable">allowPlayMusic</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">0</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="819101766475401">
                            <conditions>
                                <condition id="-14" name="Compare variable" sid="688929945504488" type="System">
                                    <param id="0" name="Variable">gameStatus</param>
                                    <param id="1" name="Comparison">1</param>
                                    <param id="2" name="Value">STATUS_PAUSE</param>
                                </condition>
                                <condition id="-14" name="Compare variable" sid="230231701345368" type="System">
                                    <param id="0" name="Variable">gameStatus</param>
                                    <param id="1" name="Comparison">1</param>
                                    <param id="2" name="Value">STATUS_INTRO</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="644631579814399">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="879519798671247" type="System">
                                            <param id="0" name="Variable">gameStatusPre</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">STATUS_PAUSE</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="22" name="Set paused" sid="860685994215675" type="Audio">
                                            <param id="0" name="Tag">BGMTAG</param>
                                            <param id="1" name="State">1</param>
                                        </action>
                                    </actions>
                                    <sub-events>
                                        <event-block sid="315613664054047">
                                            <conditions>
                                                <condition id="5" inverted="1" name="Is tag playing" sid="497759430453615" type="Audio">
                                                    <param id="0" name="Tag">&quot;music&quot;</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="212949034020349" type="Function">
                                                    <param id="0" name="Name">&quot;music play&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="253535544259207">
                                    <conditions>
                                        <condition id="-22" name="Else" sid="106094682782398" type="System" />
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block any="1" sid="865864817908801">
                                            <conditions>
                                                <condition id="-14" name="Compare variable" sid="450752340442658" type="System">
                                                    <param id="0" name="Variable">gameStatus</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Value">STATUS_PLAYING</param>
                                                </condition>
                                                <condition id="-14" name="Compare variable" sid="516580471262846" type="System">
                                                    <param id="0" name="Variable">gameStatus</param>
                                                    <param id="1" name="Comparison">0</param>
                                                    <param id="2" name="Value">STATUS_INTRO</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="547720452764069" type="Function">
                                                    <param id="0" name="Name">&quot;music play&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment></comment>
                <event-block any="1" disabled="1" sid="385511043897839">
                    <conditions>
                        <condition id="5" name="Is tag playing" sid="444090806970832" type="Audio">
                            <param id="0" name="Tag">&quot;question&quot;</param>
                        </condition>
                        <condition id="5" name="Is tag playing" sid="529278808143897" type="Audio">
                            <param id="0" name="Tag">&quot;optionVO&quot;</param>
                        </condition>
                        <condition id="5" name="Is tag playing" sid="623900300094163" type="Audio">
                            <param id="0" name="Tag">&quot;correctOptVO&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="3" name="Set volume" sid="234489322427754" type="Audio">
                            <param id="0" name="Tag">BGMTAG</param>
                            <param id="1" name="dB">VOBGMVALUME</param>
                        </action>
                    </actions>
                </event-block>
                <event-block any="1" disabled="1" sid="935224841629053">
                    <conditions>
                        <condition id="0" name="On ended" sid="405265008890461" type="Audio">
                            <param id="0" name="Tag">&quot;question&quot;</param>
                        </condition>
                        <condition id="0" name="On ended" sid="505616477400843" type="Audio">
                            <param id="0" name="Tag">&quot;optionVO&quot;</param>
                        </condition>
                        <condition id="0" name="On ended" sid="190339611029685" type="Audio">
                            <param id="0" name="Tag">&quot;correctOptVO&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="3" name="Set volume" sid="838208908775158" type="Audio">
                            <param id="0" name="Tag">BGMTAG</param>
                            <param id="1" name="dB">NORBGMVOLUME</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-group>
    </events>
</c2eventsheet>
