<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>Event sheet 1</name>
    <events>
        <include>move</include>
        <include>DrapDrop</include>
        <variable constant="0" name="Paused" sid="881036884152158" static="0" type="number">0</variable>
        <variable constant="0" name="end" sid="348658772353398" static="0" type="number">-1</variable>
        <variable constant="0" name="isTimeUp" sid="617056362802034" static="0" type="number">0</variable>
        <variable constant="0" name="timeLeft" sid="670843326082385" static="0" type="number">0</variable>
        <variable constant="0" name="answer" sid="538561721013949" static="0" type="text"></variable>
        <event-block sid="421297551205104">
            <conditions>
                <condition id="-2" name="On start of layout" sid="438843515576193" type="System" />
            </conditions>
            <actions>
                <action id="0" name="Load" sid="551138518888793" type="SenaAI" />
                <action id="-4" name="Set layer visible" sid="392038834754127" type="System">
                    <param id="0" name="Layer">2</param>
                    <param id="1" name="Visibility">0</param>
                </action>
                <action id="-9" name="Destroy" sid="227093858363506" type="Slot" />
                <action id="-9" name="Destroy" sid="601277174090980" type="btn_WordItem" />
            </actions>
        </event-block>
        <event-block sid="432411265738905">
            <conditions>
                <condition id="0" name="On LOAD Complete" sid="913106290597646" type="SenaAI" />
            </conditions>
            <actions>
                <action id="14" name="Log" sid="260483465573520" type="Browser">
                    <param id="0" name="Type">0</param>
                    <param id="1" name="Message">&quot;Load dữ liệu xong&quot;</param>
                </action>
                <action id="14" name="Log" sid="330854144982241" type="Browser">
                    <param id="0" name="Type">0</param>
                    <param id="1" name="Message">SenaAI.getGuide</param>
                </action>
            </actions>
            <sub-events>
                <comment>Bắt đầu gọi Start để tính thời gian làm bài</comment>
                <event-block sid="122100426567399">
                    <conditions />
                    <actions>
                        <action id="1" name="Start" sid="458181517098292" type="SenaAI" />
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="495673204159818">
            <conditions>
                <condition id="1" name="On Start question" sid="157454832331304" type="SenaAI" />
            </conditions>
            <actions>
                <action id="14" name="Log" sid="816803828558793" type="Browser">
                    <param id="0" name="Type">0</param>
                    <param id="1" name="Message">&quot;Question :&quot;&amp;SenaAI.getQuestionType&amp;&quot; with value : &quot;&amp;SenaAI.getQuestionValue</param>
                </action>
                <action id="14" name="Log" sid="585706784629547" type="Browser">
                    <param id="0" name="Type">0</param>
                    <param id="1" name="Message">&quot;Request :&quot;&amp;SenaAI.getRequestType&amp;&quot; with value : &quot;&amp;SenaAI.getRequestValue</param>
                </action>
                <action id="14" name="Log" sid="103090682922262" type="Browser">
                    <param id="0" name="Type">0</param>
                    <param id="1" name="Message">&quot;Options Count :&quot;&amp;SenaAI.getOptionsCount</param>
                </action>
                <action id="14" name="Log" sid="460050924307031" type="Browser">
                    <param id="0" name="Type">0</param>
                    <param id="1" name="Message">&quot;Hint Count :&quot;&amp;SenaAI.getHintCount</param>
                </action>
                <action id="-9" name="Set value" sid="623599131030475" type="System">
                    <param id="0" name="Variable">isTimeUp</param>
                    <param id="1" name="Value">0</param>
                </action>
                <action behavior="Pin" id="0" name="Pin to object" sid="210783341114782" type="txt_question">
                    <param id="0" name="Pin to">panel</param>
                    <param id="1" name="Mode">0</param>
                </action>
                <action behavior="Pin" id="0" name="Pin to object" sid="636254900159958" type="txt_TextTimer">
                    <param id="0" name="Pin to">SenaaiKhoi</param>
                    <param id="1" name="Mode">0</param>
                </action>
                <action id="0" name="Set text" sid="808593987399542" type="txt_question">
                    <param id="0" name="Text">SenaAI.getQuestionValue</param>
                </action>
                <action id="-10" name="Set value" sid="756761854102448" type="btn_Pause">
                    <param id="0" name="Instance variable">originX</param>
                    <param id="1" name="Value">Self.X</param>
                </action>
                <action id="-10" name="Set value" sid="843231659647898" type="btn_Pause">
                    <param id="0" name="Instance variable">originY</param>
                    <param id="1" name="Value">Self.Y</param>
                </action>
                <action id="-3" name="Set position" sid="429067541495196" type="btn_Pause">
                    <param id="0" name="X">btn_setting.X</param>
                    <param id="1" name="Y">btn_setting.Y</param>
                </action>
                <action id="-10" name="Set value" sid="312955471850139" type="btn_music">
                    <param id="0" name="Instance variable">originX</param>
                    <param id="1" name="Value">Self.X</param>
                </action>
                <action id="-10" name="Set value" sid="725880314927928" type="btn_music">
                    <param id="0" name="Instance variable">originY</param>
                    <param id="1" name="Value">Self.Y</param>
                </action>
                <action id="-3" name="Set position" sid="588637745430653" type="btn_music">
                    <param id="0" name="X">btn_setting.X</param>
                    <param id="1" name="Y">btn_setting.Y</param>
                </action>
                <action id="10" name="Load image from URL" sid="679165227027517" type="IMG">
                    <param id="0" name="URI">SenaAI.getQuestionImage</param>
                    <param id="1" name="Size">1</param>
                    <param id="2" name="Cross-origin">0</param>
                </action>
            </actions>
            <sub-events>
                <event-block sid="822104816469346">
                    <conditions />
                    <actions />
                    <sub-events>
                        <event-block sid="922818724982241">
                            <conditions>
                                <condition id="-12" name="Repeat" sid="578727808501421" type="System">
                                    <param id="0" name="Count">int( SenaAI.getHintCount )</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="14" name="Log" sid="807666034483826" type="Browser">
                                    <param id="0" name="Type">0</param>
                                    <param id="1" name="Message">&quot;Hint &quot;&amp;loopindex&amp;&quot; : &quot;&amp;SenaAI.getHintType&amp;&quot; with value : &quot;&amp;SenaAI.getHintValue(loopindex)</param>
                                </action>
                                <action id="-3" name="Create object" sid="651771033828547" type="System">
                                    <param id="0" name="Object to create">Slot</param>
                                    <param id="1" name="Layer">1</param>
                                    <param id="2" name="X">0</param>
                                    <param id="3" name="Y">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="704622762564719" type="Slot">
                                    <param id="0" name="Instance variable">index</param>
                                    <param id="1" name="Value">loopindex</param>
                                </action>
                                <action id="-10" name="Set value" sid="695187469527078" type="Slot">
                                    <param id="0" name="Instance variable">word</param>
                                    <param id="1" name="Value">SenaAI.getHintValue(loopindex)</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="604960297620975">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="844495449650107" type="System">
                                            <param id="0" name="First value">SenaAI.getHintValue(loopindex)</param>
                                            <param id="1" name="Comparison">1</param>
                                            <param id="2" name="Second value">&quot;_&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-13" name="Set boolean" sid="823022840733889" type="Slot">
                                            <param id="0" name="Instance variable">locked</param>
                                            <param id="1" name="Value">1</param>
                                        </action>
                                        <action id="-3" name="Create object" sid="958284889834122" type="System">
                                            <param id="0" name="Object to create">txt_Slot</param>
                                            <param id="1" name="Layer">1</param>
                                            <param id="2" name="X">Slot.X</param>
                                            <param id="3" name="Y">Slot.Y</param>
                                        </action>
                                        <action behavior="Pin" id="0" name="Pin to object" sid="825467296870188" type="txt_Slot">
                                            <param id="0" name="Pin to">Slot</param>
                                            <param id="1" name="Mode">0</param>
                                        </action>
                                        <action id="0" name="Set text" sid="803189241402852" type="txt_Slot">
                                            <param id="0" name="Text">Slot.word</param>
                                        </action>
                                        <action id="5" name="Set frame" sid="856529103233458" type="Slot">
                                            <param id="0" name="Frame number">1</param>
                                        </action>
                                        <action id="-5" name="Set width" sid="785587981903003" type="Slot">
                                            <param id="0" name="Width">txt_Slot.TextWidth + 40</param>
                                        </action>
                                        <action id="35" name="Set Object Width" sid="305159202206615" type="SenaAI">
                                            <param id="0" name="Index">loopindex</param>
                                            <param id="1" name="Width">Slot.Width</param>
                                        </action>
                                        <action id="-9" name="Destroy" sid="247694523519901" type="txt_Slot" />
                                        <action id="-9" name="Destroy" sid="469126797493941" type="Slot" />
                                    </actions>
                                </event-block>
                                <event-block sid="785602319872296">
                                    <conditions>
                                        <condition id="-22" name="Else" sid="563695588455666" type="System" />
                                    </conditions>
                                    <actions>
                                        <action id="-13" name="Set boolean" sid="921480770631311" type="Slot">
                                            <param id="0" name="Instance variable">locked</param>
                                            <param id="1" name="Value">0</param>
                                        </action>
                                        <action id="5" name="Set frame" sid="666455255522669" type="Slot">
                                            <param id="0" name="Frame number">0</param>
                                        </action>
                                        <action id="35" name="Set Object Width" sid="890029307940799" type="SenaAI">
                                            <param id="0" name="Index">loopindex</param>
                                            <param id="1" name="Width">Slot.Width</param>
                                        </action>
                                        <action id="-9" name="Destroy" sid="284415432774208" type="Slot" />
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="920731157755918">
                            <conditions />
                            <actions>
                                <action id="12" name="Calculate Object Positions" sid="643973518572382" type="SenaAI">
                                    <param id="0" name="Count">int( SenaAI.getHintCount )</param>
                                    <param id="1" name="Object Width">0</param>
                                    <param id="2" name="Margin">5</param>
                                    <param id="3" name="Max Width">1200</param>
                                    <param id="4" name="Row Break">0</param>
                                    <param id="5" name="Row Gap">100</param>
                                    <param id="6" name="Type">&quot;slot&quot;</param>
                                    <param id="7" name="Group Gap">0</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="441467613146144">
                            <conditions>
                                <condition id="-12" name="Repeat" sid="218190693390519" type="System">
                                    <param id="0" name="Count">int( SenaAI.getOptionsCount )</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-3" name="Create object" sid="722355474670048" type="System">
                                    <param id="0" name="Object to create">btn_WordItem</param>
                                    <param id="1" name="Layer">1</param>
                                    <param id="2" name="X">0</param>
                                    <param id="3" name="Y">0</param>
                                </action>
                                <action id="-10" name="Set value" sid="811282502817081" type="btn_WordItem">
                                    <param id="0" name="Instance variable">text</param>
                                    <param id="1" name="Value">SenaAI.getOptionsValue(loopindex)</param>
                                </action>
                                <action id="-3" name="Create object" sid="820542104698850" type="System">
                                    <param id="0" name="Object to create">txt_WordItem</param>
                                    <param id="1" name="Layer">1</param>
                                    <param id="2" name="X">btn_WordItem.X</param>
                                    <param id="3" name="Y">btn_WordItem.Y</param>
                                </action>
                                <action behavior="Pin" id="0" name="Pin to object" sid="165265909130423" type="txt_WordItem">
                                    <param id="0" name="Pin to">btn_WordItem</param>
                                    <param id="1" name="Mode">0</param>
                                </action>
                                <action id="0" name="Set text" sid="752256115955919" type="txt_WordItem">
                                    <param id="0" name="Text">btn_WordItem.text</param>
                                </action>
                                <action id="-5" name="Set width" sid="155561272720672" type="btn_WordItem">
                                    <param id="0" name="Width">txt_WordItem.TextWidth + 40</param>
                                </action>
                                <action id="35" name="Set Object Width" sid="692927617920425" type="SenaAI">
                                    <param id="0" name="Index">loopindex</param>
                                    <param id="1" name="Width">btn_WordItem.Width</param>
                                </action>
                                <action id="-9" name="Destroy" sid="864841283022193" type="txt_WordItem" />
                                <action id="-9" name="Destroy" sid="576092429841287" type="btn_WordItem" />
                            </actions>
                        </event-block>
                        <event-block sid="848165074712850">
                            <conditions />
                            <actions>
                                <action id="12" name="Calculate Object Positions" sid="737719939649407" type="SenaAI">
                                    <param id="0" name="Count">int( SenaAI.getOptionsCount )</param>
                                    <param id="1" name="Object Width">0</param>
                                    <param id="2" name="Margin">5</param>
                                    <param id="3" name="Max Width">1200</param>
                                    <param id="4" name="Row Break">0</param>
                                    <param id="5" name="Row Gap">100</param>
                                    <param id="6" name="Type">&quot;word&quot;</param>
                                    <param id="7" name="Group Gap">0</param>
                                </action>
                                <action id="-2" name="Set Y" sid="256704970269789" type="btn_check">
                                    <param id="0" name="Y">SenaAI.getPosYbyIndex(0) + 740</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="997314674077454">
            <conditions>
                <condition id="9" name="On Word Layout Finished" sid="556163418608689" type="SenaAI" />
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="355153915147616">
                    <conditions>
                        <condition id="-12" name="Repeat" sid="479740563968203" type="System">
                            <param id="0" name="Count">int( SenaAI.getOptionsCount )</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="14" name="Log" sid="689103076681826" type="Browser">
                            <param id="0" name="Type">0</param>
                            <param id="1" name="Message">&quot;Options &quot;&amp;loopindex&amp;&quot; : &quot;&amp;SenaAI.getOptionsType&amp;&quot; with value : &quot;&amp;SenaAI.getOptionsValue(loopindex)</param>
                        </action>
                        <action id="-3" name="Create object" sid="536021616792282" type="System">
                            <param id="0" name="Object to create">btn_WordItem</param>
                            <param id="1" name="Layer">1</param>
                            <param id="2" name="X">SenaAI.getPosXbyIndex(loopindex)</param>
                            <param id="3" name="Y">SenaAI.getPosYbyIndex(loopindex) + 720</param>
                        </action>
                        <action id="-10" name="Set value" sid="491204402301957" type="btn_WordItem">
                            <param id="0" name="Instance variable">num</param>
                            <param id="1" name="Value">loopindex</param>
                        </action>
                        <action id="-10" name="Set value" sid="925119020627679" type="btn_WordItem">
                            <param id="0" name="Instance variable">text</param>
                            <param id="1" name="Value">SenaAI.getOptionsValue(loopindex)</param>
                        </action>
                        <action id="-10" name="Set value" sid="279026344200979" type="btn_WordItem">
                            <param id="0" name="Instance variable">slotIndex</param>
                            <param id="1" name="Value">-1</param>
                        </action>
                        <action id="-10" name="Set value" sid="641677468774405" type="btn_WordItem">
                            <param id="0" name="Instance variable">originX</param>
                            <param id="1" name="Value">Self.X</param>
                        </action>
                        <action id="-10" name="Set value" sid="774280661547726" type="btn_WordItem">
                            <param id="0" name="Instance variable">originY</param>
                            <param id="1" name="Value">Self.Y</param>
                        </action>
                        <action id="35" name="Set Object Width" sid="103271143582978" type="SenaAI">
                            <param id="0" name="Index">loopindex</param>
                            <param id="1" name="Width">btn_WordItem.Width</param>
                        </action>
                        <action id="-3" name="Create object" sid="100725827513558" type="System">
                            <param id="0" name="Object to create">txt_WordItem</param>
                            <param id="1" name="Layer">1</param>
                            <param id="2" name="X">btn_WordItem.X</param>
                            <param id="3" name="Y">btn_WordItem.Y</param>
                        </action>
                        <action behavior="Pin" id="0" name="Pin to object" sid="505562954529213" type="txt_WordItem">
                            <param id="0" name="Pin to">btn_WordItem</param>
                            <param id="1" name="Mode">0</param>
                        </action>
                        <action id="0" name="Set text" sid="391419035005796" type="txt_WordItem">
                            <param id="0" name="Text">btn_WordItem.text</param>
                        </action>
                        <action id="-5" name="Set width" sid="860988481953726" type="btn_WordItem">
                            <param id="0" name="Width">txt_WordItem.TextWidth + 40</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="388616216124882">
            <conditions>
                <condition id="10" name="On Slot Layout Finished" sid="873344899497889" type="SenaAI" />
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="227594386821892">
                    <conditions>
                        <condition id="-12" name="Repeat" sid="788089564561534" type="System">
                            <param id="0" name="Count">int( SenaAI.getHintCount )</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="14" name="Log" sid="538515159765835" type="Browser">
                            <param id="0" name="Type">0</param>
                            <param id="1" name="Message">&quot;Hint &quot;&amp;loopindex&amp;&quot; : &quot;&amp;SenaAI.getHintType&amp;&quot; with value : &quot;&amp;SenaAI.getHintValue(loopindex)</param>
                        </action>
                        <action id="-3" name="Create object" sid="917423513497860" type="System">
                            <param id="0" name="Object to create">Slot</param>
                            <param id="1" name="Layer">1</param>
                            <param id="2" name="X">SenaAI.getPosXbyIndex(loopindex)</param>
                            <param id="3" name="Y">SenaAI.getPosYbyIndex(loopindex) + 700</param>
                        </action>
                        <action id="-10" name="Set value" sid="885155242519331" type="Slot">
                            <param id="0" name="Instance variable">index</param>
                            <param id="1" name="Value">loopindex</param>
                        </action>
                        <action id="-10" name="Set value" sid="170311315024008" type="Slot">
                            <param id="0" name="Instance variable">word</param>
                            <param id="1" name="Value">SenaAI.getHintValue(loopindex)</param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="932083303817316">
                            <conditions>
                                <condition id="-8" name="Compare two values" sid="832596978727902" type="System">
                                    <param id="0" name="First value">SenaAI.getHintValue(loopindex)</param>
                                    <param id="1" name="Comparison">1</param>
                                    <param id="2" name="Second value">&quot;_&quot;</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-13" name="Set boolean" sid="674435878930204" type="Slot">
                                    <param id="0" name="Instance variable">locked</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                                <action id="-3" name="Create object" sid="598659803385515" type="System">
                                    <param id="0" name="Object to create">txt_Slot</param>
                                    <param id="1" name="Layer">1</param>
                                    <param id="2" name="X">Slot.X</param>
                                    <param id="3" name="Y">Slot.Y</param>
                                </action>
                                <action behavior="Pin" id="0" name="Pin to object" sid="988991898604501" type="txt_Slot">
                                    <param id="0" name="Pin to">Slot</param>
                                    <param id="1" name="Mode">0</param>
                                </action>
                                <action id="0" name="Set text" sid="972496488135703" type="txt_Slot">
                                    <param id="0" name="Text">Slot.word</param>
                                </action>
                                <action id="5" name="Set frame" sid="151981119976494" type="Slot">
                                    <param id="0" name="Frame number">1</param>
                                </action>
                                <action id="-5" name="Set width" sid="854754102590480" type="Slot">
                                    <param id="0" name="Width">txt_Slot.TextWidth + 40</param>
                                </action>
                                <action id="35" name="Set Object Width" sid="475492564317210" type="SenaAI">
                                    <param id="0" name="Index">loopindex</param>
                                    <param id="1" name="Width">Slot.Width</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="253535619821753">
                            <conditions>
                                <condition id="-22" name="Else" sid="596843830651572" type="System" />
                            </conditions>
                            <actions>
                                <action id="-13" name="Set boolean" sid="474962435503345" type="Slot">
                                    <param id="0" name="Instance variable">locked</param>
                                    <param id="1" name="Value">0</param>
                                </action>
                                <action id="5" name="Set frame" sid="463298175284581" type="Slot">
                                    <param id="0" name="Frame number">0</param>
                                </action>
                                <action id="35" name="Set Object Width" sid="380730123367630" type="SenaAI">
                                    <param id="0" name="Index">loopindex</param>
                                    <param id="1" name="Width">Slot.Width</param>
                                </action>
                                <action id="-10" name="Add to" sid="125836199326093" type="System">
                                    <param id="0" name="Variable">end</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="137496831767080">
            <conditions>
                <condition id="36" name="On Slot Layout Finished 2" sid="346135299892592" type="SenaAI" />
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="916974100288240">
                    <conditions>
                        <condition id="-11" name="For Each" sid="543455768136315" type="System">
                            <param id="0" name="Object">Slot</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-3" name="Set position" sid="417809743337938" type="Slot">
                            <param id="0" name="X">SenaAI.getPosXbyIndex(loopindex)</param>
                            <param id="1" name="Y">SenaAI.getPosYbyIndex(loopindex) + 700</param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="879941464486947">
                            <conditions>
                                <condition id="-33" name="Pick by comparison" sid="417542307709594" type="System">
                                    <param id="0" name="Object">btn_WordItem</param>
                                    <param id="1" name="Expression">btn_WordItem.slotIndex</param>
                                    <param id="2" name="Comparison">0</param>
                                    <param id="3" name="Value">Slot.index</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action behavior="MoveTo" disabled="1" id="1" name="Set maximum speed" sid="966187321359498" type="btn_WordItem">
                                    <param id="0" name="Max speed">350</param>
                                </action>
                                <action behavior="MoveTo" disabled="1" id="4" name="Move to XY" sid="282578636460119" type="btn_WordItem">
                                    <param id="0" name="X">Slot.X</param>
                                    <param id="1" name="Y">Slot.Y</param>
                                </action>
                                <action id="-3" name="Set position" sid="848187759165276" type="btn_WordItem">
                                    <param id="0" name="X">Slot.X</param>
                                    <param id="1" name="Y">Slot.Y</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="763597622682356">
            <conditions>
                <condition id="3" name="On touched object" sid="148754164973502" type="Touch">
                    <param id="0" name="Object">btn_check</param>
                </condition>
                <condition id="-9" name="Is visible" sid="378361995735280" type="btn_check" />
                <condition id="-14" name="Compare variable" sid="162773589948112" type="System">
                    <param id="0" name="Variable">Paused</param>
                    <param id="1" name="Comparison">0</param>
                    <param id="2" name="Value">0</param>
                </condition>
            </conditions>
            <actions>
                <action id="0" name="Play" sid="875006900842783" type="Audio">
                    <param id="0" name="Audio file">click</param>
                    <param id="2" name="Loop">0</param>
                    <param id="3" name="Volume">-2</param>
                    <param id="1" name="Tag (optional)">&quot;&quot;</param>
                </action>
                <action id="9" name="Pause Game" sid="517084261342335" type="SenaAI" />
                <action behavior="DragDrop" id="0" name="Set enabled" sid="352636312980555" type="btn_WordItem">
                    <param id="0" name="State">0</param>
                </action>
                <action id="-9" name="Set value" sid="898398251674971" type="System">
                    <param id="0" name="Variable">answer</param>
                    <param id="1" name="Value">&quot;&quot;</param>
                </action>
                <action id="0" name="Call function" sid="883647667738561" type="Function">
                    <param id="0" name="Name">&quot;currentAnswer&quot;</param>
                    <param id="1" name="Parameter {n}"></param>
                </action>
                <action id="-16" name="Wait" sid="512432222163791" type="System">
                    <param id="0" name="Seconds">3</param>
                </action>
            </actions>
        </event-block>
        <event-block sid="136988596360100">
            <conditions>
                <condition id="3" name="On Correct Answer" sid="156300277320938" type="SenaAI" />
            </conditions>
            <actions>
                <action id="0" name="Play" sid="852018787691909" type="Audio">
                    <param id="0" name="Audio file">correct</param>
                    <param id="2" name="Loop">0</param>
                    <param id="3" name="Volume">-2</param>
                    <param id="1" name="Tag (optional)">&quot;&quot;</param>
                </action>
                <action id="-3" name="Create object" sid="875693788454205" type="System">
                    <param id="0" name="Object to create">checker_wrong_correct</param>
                    <param id="1" name="Layer">1</param>
                    <param id="2" name="X">btn_check.X</param>
                    <param id="3" name="Y">btn_check.Y</param>
                </action>
                <action id="5" name="Set frame" sid="839154739990506" type="checker_wrong_correct">
                    <param id="0" name="Frame number">0</param>
                </action>
            </actions>
        </event-block>
        <event-block sid="488252630180568">
            <conditions>
                <condition id="2" name="On Wrong Answer" sid="126590912667103" type="SenaAI" />
            </conditions>
            <actions>
                <action id="0" name="Play" sid="979948713775875" type="Audio">
                    <param id="0" name="Audio file">error-010-206498</param>
                    <param id="2" name="Loop">0</param>
                    <param id="3" name="Volume">-2</param>
                    <param id="1" name="Tag (optional)">&quot;&quot;</param>
                </action>
                <action id="-3" name="Create object" sid="747791078913276" type="System">
                    <param id="0" name="Object to create">checker_wrong_correct</param>
                    <param id="1" name="Layer">1</param>
                    <param id="2" name="X">btn_check.X</param>
                    <param id="3" name="Y">btn_check.Y</param>
                </action>
                <action id="5" name="Set frame" sid="616147821154826" type="checker_wrong_correct">
                    <param id="0" name="Frame number">1</param>
                </action>
            </actions>
        </event-block>
        <event-block sid="661948158679917">
            <conditions>
                <condition id="3" name="On touched object" sid="505083980566323" type="Touch">
                    <param id="0" name="Object">pause</param>
                </condition>
            </conditions>
            <actions>
                <action id="9" name="Pause Game" sid="221115629617334" type="SenaAI" />
            </actions>
        </event-block>
        <event-block sid="871816213339027">
            <conditions>
                <condition id="3" name="On touched object" sid="203945147432710" type="Touch">
                    <param id="0" name="Object">resume</param>
                </condition>
            </conditions>
            <actions>
                <action id="10" name="Resume Game" sid="299687746228930" type="SenaAI" />
            </actions>
        </event-block>
        <event-block sid="317150235088713">
            <conditions>
                <condition id="4" name="On Game Paused" sid="191847409940776" type="SenaAI" />
            </conditions>
            <actions>
                <action id="-9" name="Set value" sid="610917235070761" type="System">
                    <param id="0" name="Variable">Paused</param>
                    <param id="1" name="Value">1</param>
                </action>
            </actions>
        </event-block>
        <event-block sid="274698478784687">
            <conditions>
                <condition id="5" name="On Game Resumed" sid="882196292313245" type="SenaAI" />
            </conditions>
            <actions>
                <action id="-9" name="Set value" sid="511887800092603" type="System">
                    <param id="0" name="Variable">Paused</param>
                    <param id="1" name="Value">0</param>
                </action>
            </actions>
        </event-block>
        <event-block disabled="1" sid="195066173189518">
            <conditions>
                <condition id="-1" name="Every tick" sid="290390615201190" type="System" />
            </conditions>
            <actions />
            <sub-events>
                <event-block disabled="1" sid="360442996781782">
                    <conditions>
                        <condition id="-8" name="Compare two values" sid="548786409907532" type="System">
                            <param id="0" name="First value">SenaAI.getTimeLimit</param>
                            <param id="1" name="Comparison">4</param>
                            <param id="2" name="Second value">0</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-9" name="Set value" sid="188457301435729" type="System">
                            <param id="0" name="Variable">timeLeft</param>
                            <param id="1" name="Value">max(0, SenaAI.getTimeLimit - SenaAI.getElapsedTime)</param>
                        </action>
                        <action id="0" name="Set text" sid="186957390014795" type="txt_TextTimer">
                            <param id="0" name="Text">int(timeLeft)</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block disabled="1" sid="294529570370137">
            <conditions>
                <condition id="-1" name="Every tick" sid="737378517361957" type="System" />
            </conditions>
            <actions />
            <sub-events>
                <event-block disabled="1" sid="554738329309418">
                    <conditions>
                        <condition id="-8" name="Compare two values" sid="716392425028141" type="System">
                            <param id="0" name="First value">SenaAI.getElapsedTime</param>
                            <param id="1" name="Comparison">4</param>
                            <param id="2" name="Second value">SenaAI.getTimeLimit</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="780183147912832" type="System">
                            <param id="0" name="Variable">isTimeUp</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">0</param>
                        </condition>
                        <condition id="-4" name="Trigger once while true" sid="525077339862079" type="System" />
                    </conditions>
                    <actions>
                        <action id="-9" name="Set value" sid="143657325576872" type="System">
                            <param id="0" name="Variable">isTimeUp</param>
                            <param id="1" name="Value">1</param>
                        </action>
                        <action behavior="DragDrop" id="0" name="Set enabled" sid="816065893034813" type="btn_WordItem">
                            <param id="0" name="State">0</param>
                        </action>
                        <action id="-9" name="Destroy" sid="965564233186280" type="txt_WordItem" />
                        <action behavior="Fade" id="1" name="Start fade" sid="532407797948589" type="btn_WordItem" />
                        <action id="-16" name="Wait" sid="127771899136112" type="System">
                            <param id="0" name="Seconds">1.0</param>
                        </action>
                        <action behavior="Fade" id="1" name="Start fade" sid="840135179749270" type="Slot" />
                        <action id="-9" name="Destroy" sid="280448711318062" type="btn_WordItem" />
                        <action id="-9" name="Destroy" sid="860486584174303" type="txt_Slot" />
                        <action id="2" name="Finish" sid="722573403513740" type="SenaAI">
                            <param id="0" name="Answer">answer</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="681702081983565">
            <conditions>
                <condition id="0" name="On function" sid="298041374468676" type="Function">
                    <param id="0" name="Name">&quot;currentAnswer&quot;</param>
                </condition>
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="137994023265162">
                    <conditions>
                        <condition id="-10" name="For" sid="555590637488718" type="System">
                            <param id="0" name="Name">&quot;i&quot;</param>
                            <param id="1" name="Start index">0</param>
                            <param id="2" name="End index">int( SenaAI.getHintCount ) - 1</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="985822966767783">
                            <conditions>
                                <condition id="-33" name="Pick by comparison" sid="624232920295487" type="System">
                                    <param id="0" name="Object">Slot</param>
                                    <param id="1" name="Expression">Slot.index</param>
                                    <param id="2" name="Comparison">0</param>
                                    <param id="3" name="Value">loopindex</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-9" name="Set value" sid="857204506251739" type="System">
                                    <param id="0" name="Variable">answer</param>
                                    <param id="1" name="Value">answer &amp; Slot.word &amp; &quot;|&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="940103363702696">
                    <conditions />
                    <actions>
                        <action id="-9" name="Set value" sid="562027140905701" type="System">
                            <param id="0" name="Variable">answer</param>
                            <param id="1" name="Value">left(answer, len(answer) - 1)</param>
                        </action>
                        <action id="2" name="Finish" sid="169098649828276" type="SenaAI">
                            <param id="0" name="Answer">answer </param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="727817921462789">
            <conditions>
                <condition id="3" name="On touched object" sid="108505438464022" type="Touch">
                    <param id="0" name="Object">btn_setting</param>
                </condition>
                <condition id="-9" name="Layer is visible" sid="610596175587088" type="System">
                    <param id="0" name="Layer">1</param>
                </condition>
            </conditions>
            <actions />
            <sub-events>
                <event-block sid="235491499504531">
                    <conditions>
                        <condition id="-2" name="Compare Y" sid="155448615733244" type="btn_music">
                            <param id="0" name="Comparison">0</param>
                            <param id="1" name="Y co-ordinate">btn_setting.Y</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Play" sid="294820226005928" type="Audio">
                            <param id="0" name="Audio file">click</param>
                            <param id="2" name="Loop">0</param>
                            <param id="3" name="Volume">-2</param>
                            <param id="1" name="Tag (optional)">&quot;&quot;</param>
                        </action>
                        <action behavior="MoveTo" id="4" name="Move to XY" sid="755380023179324" type="btn_Pause">
                            <param id="0" name="X">btn_Pause.originX</param>
                            <param id="1" name="Y">btn_Pause.originY</param>
                        </action>
                        <action behavior="MoveTo" id="4" name="Move to XY" sid="901484735891669" type="btn_music">
                            <param id="0" name="X">btn_music.originX</param>
                            <param id="1" name="Y">btn_music.originY</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="101845070576145">
                    <conditions>
                        <condition id="-2" name="Compare Y" sid="252338104312800" type="btn_music">
                            <param id="0" name="Comparison">0</param>
                            <param id="1" name="Y co-ordinate">btn_music.originY</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Play" sid="302680351912155" type="Audio">
                            <param id="0" name="Audio file">click</param>
                            <param id="2" name="Loop">0</param>
                            <param id="3" name="Volume">-2</param>
                            <param id="1" name="Tag (optional)">&quot;&quot;</param>
                        </action>
                        <action behavior="MoveTo" id="6" name="Move to object" sid="478407850108954" type="btn_Pause">
                            <param id="0" name="Target">btn_setting</param>
                        </action>
                        <action behavior="MoveTo" id="6" name="Move to object" sid="149592764052604" type="btn_music">
                            <param id="0" name="Target">btn_setting</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="425688163884150">
            <conditions>
                <condition id="3" name="On touched object" sid="234631560209387" type="Touch">
                    <param id="0" name="Object">btn_music</param>
                </condition>
                <condition id="-2" name="Compare Y" sid="226854573439244" type="btn_music">
                    <param id="0" name="Comparison">0</param>
                    <param id="1" name="Y co-ordinate">btn_music.originY</param>
                </condition>
            </conditions>
            <actions>
                <action id="0" name="Play" sid="673559809421156" type="Audio">
                    <param id="0" name="Audio file">click</param>
                    <param id="2" name="Loop">0</param>
                    <param id="3" name="Volume">-2</param>
                    <param id="1" name="Tag (optional)">&quot;&quot;</param>
                </action>
            </actions>
            <sub-events>
                <event-block sid="289041913893922">
                    <conditions>
                        <condition id="3" name="Compare frame" sid="987327175843166" type="btn_music">
                            <param id="0" name="Comparison">0</param>
                            <param id="1" name="Number">0</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="5" name="Set frame" sid="527221309063653" type="btn_music">
                            <param id="0" name="Frame number">1</param>
                        </action>
                        <action id="8" name="Set silent" sid="512396695148483" type="Audio">
                            <param id="0" name="Mode">0</param>
                        </action>
                    </actions>
                </event-block>
                <event-block sid="723297863178989">
                    <conditions>
                        <condition id="-22" name="Else" sid="442294654095608" type="System" />
                    </conditions>
                    <actions>
                        <action id="5" name="Set frame" sid="889768403943904" type="btn_music">
                            <param id="0" name="Frame number">0</param>
                        </action>
                        <action id="8" name="Set silent" sid="575251195374348" type="Audio">
                            <param id="0" name="Mode">1</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
        <event-block sid="797604063574455">
            <conditions>
                <condition id="3" name="On touched object" sid="435979848233842" type="Touch">
                    <param id="0" name="Object">btn_Pause</param>
                </condition>
                <condition id="-2" name="Compare Y" sid="428645173671679" type="btn_Pause">
                    <param id="0" name="Comparison">0</param>
                    <param id="1" name="Y co-ordinate">btn_Pause.originY</param>
                </condition>
            </conditions>
            <actions>
                <action id="0" name="Play" sid="278201420832843" type="Audio">
                    <param id="0" name="Audio file">click</param>
                    <param id="2" name="Loop">0</param>
                    <param id="3" name="Volume">-2</param>
                    <param id="1" name="Tag (optional)">&quot;&quot;</param>
                </action>
                <action id="9" name="Pause Game" sid="293121306154050" type="SenaAI" />
                <action behavior="MoveTo" id="6" name="Move to object" sid="361279997459133" type="btn_Pause">
                    <param id="0" name="Target">btn_setting</param>
                </action>
                <action behavior="MoveTo" id="6" name="Move to object" sid="775451581878906" type="btn_music">
                    <param id="0" name="Target">btn_setting</param>
                </action>
                <action id="-16" name="Wait" sid="443896622001002" type="System">
                    <param id="0" name="Seconds">0.5</param>
                </action>
                <action id="-4" name="Set layer visible" sid="958274146221115" type="System">
                    <param id="0" name="Layer">1</param>
                    <param id="1" name="Visibility">0</param>
                </action>
                <action id="-4" name="Set layer visible" sid="350999554669409" type="System">
                    <param id="0" name="Layer">2</param>
                    <param id="1" name="Visibility">1</param>
                </action>
            </actions>
        </event-block>
        <event-block sid="784412967489758">
            <conditions>
                <condition id="3" name="On touched object" sid="357044148333403" type="Touch">
                    <param id="0" name="Object">Layer</param>
                </condition>
                <condition id="-9" name="Layer is visible" sid="279540051091502" type="System">
                    <param id="0" name="Layer">2</param>
                </condition>
            </conditions>
            <actions>
                <action id="0" name="Play" sid="816121502780137" type="Audio">
                    <param id="0" name="Audio file">click</param>
                    <param id="2" name="Loop">0</param>
                    <param id="3" name="Volume">-2</param>
                    <param id="1" name="Tag (optional)">&quot;&quot;</param>
                </action>
                <action id="10" name="Resume Game" sid="724669397859175" type="SenaAI" />
                <action id="-4" name="Set layer visible" sid="929561454791375" type="System">
                    <param id="0" name="Layer">1</param>
                    <param id="1" name="Visibility">1</param>
                </action>
                <action id="-4" name="Set layer visible" sid="645435946734615" type="System">
                    <param id="0" name="Layer">2</param>
                    <param id="1" name="Visibility">0</param>
                </action>
            </actions>
        </event-block>
        <event-block disabled="1" sid="519127728010123">
            <conditions>
                <condition id="3" name="On touched object" sid="239336371251901" type="Touch">
                    <param id="0" name="Object">Family2</param>
                </condition>
            </conditions>
            <actions>
                <action id="0" name="Play" sid="851922756460513" type="Audio">
                    <param id="0" name="Audio file">click</param>
                    <param id="2" name="Loop">0</param>
                    <param id="3" name="Volume">-2</param>
                    <param id="1" name="Tag (optional)">&quot;&quot;</param>
                </action>
            </actions>
        </event-block>
    </events>
</c2eventsheet>
