<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
    <!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
    <name>move</name>
    <events>
        <event-block sid="247537098385321">
            <conditions>
                <condition id="8" name="On Message" sid="357653839729988" type="SenaAI" />
            </conditions>
            <actions>
                <action id="60" name="LoadJSON" sid="481034101118882" type="JSON">
                    <param id="0" name="JSON">SenaAI.getLastMessageJSON</param>
                    <param id="1" name="Reference point">0</param>
                    <param id="2" name="Key {n}"></param>
                </action>
                <action id="-16" name="Wait" sid="923787823234004" type="System">
                    <param id="0" name="Seconds">0.0001</param>
                </action>
            </actions>
            <sub-events>
                <event-block sid="501329491159206">
                    <conditions>
                        <condition id="-33" name="Pick by comparison" sid="329723730163277" type="System">
                            <param id="0" name="Object">btn_WordItem</param>
                            <param id="1" name="Expression">btn_WordItem.text</param>
                            <param id="2" name="Comparison">0</param>
                            <param id="3" name="Value">str(JSON.Value(0, &quot;data1&quot;))</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="373485886439115">
                            <conditions>
                                <condition id="-33" name="Pick by comparison" sid="667505268608524" type="System">
                                    <param id="0" name="Object">Slot</param>
                                    <param id="1" name="Expression">int(JSON.Value(0, &quot;data2&quot;))</param>
                                    <param id="2" name="Comparison">0</param>
                                    <param id="3" name="Value">Slot.index</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action behavior="MoveTo" id="6" name="Move to object" sid="724531557833079" type="btn_WordItem">
                                    <param id="0" name="Target">Slot</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="176622797861199">
                            <conditions>
                                <condition id="-22" name="Else" sid="494998059713904" type="System" />
                                <condition id="-33" name="Pick by comparison" sid="646024827473206" type="System">
                                    <param id="0" name="Object">btn_WordItem</param>
                                    <param id="1" name="Expression">btn_WordItem.text</param>
                                    <param id="2" name="Comparison">0</param>
                                    <param id="3" name="Value">str(JSON.Value(0, &quot;data1&quot;))</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action behavior="MoveTo" id="4" name="Move to XY" sid="116962450760903" type="btn_WordItem">
                                    <param id="0" name="X">Self.originX</param>
                                    <param id="1" name="Y">Self.originY</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="393296075303458">
                    <conditions>
                        <condition id="-8" name="Compare two values" sid="423617115709335" type="System">
                            <param id="0" name="First value">int(JSON.Value(0, &quot;data3&quot;))</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Second value">1</param>
                        </condition>
                        <condition id="-9" name="Is visible" sid="344349834250107" type="btn_check" />
                    </conditions>
                    <actions>
                        <action id="0" name="Play" sid="886430907172802" 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="435408274602653" type="SenaAI" />
                        <action behavior="DragDrop" id="0" name="Set enabled" sid="291762055141813" type="btn_WordItem">
                            <param id="0" name="State">0</param>
                        </action>
                        <action id="-9" name="Set value" sid="960430821480250" 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="411309036756794" 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="928569719414780" type="System">
                            <param id="0" name="Seconds">3</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-block>
    </events>
</c2eventsheet>
