<?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>
        <variable constant="0" name="TotalGoldCnt" sid="9113066352491449" static="0" type="number">0</variable>
        <variable constant="0" name="GoldCnt" sid="1678947738070712" static="0" type="number">0</variable>
        <variable constant="0" name="CarrotCntVar" sid="2050988717848538" static="0" type="number">0</variable>
        <variable constant="0" name="MashCntVar" sid="7525148490808528" static="0" type="number">0</variable>
        <variable constant="0" name="RiseCntVar" sid="8976604246614839" static="0" type="number">0</variable>
        <variable constant="0" name="AppleCntVar" sid="8261450222096704" static="0" type="number">0</variable>
        <variable constant="0" name="RedBotlCnt" sid="485829274843533" static="0" type="number">0</variable>
        <variable constant="0" name="BlueBotlCnt" sid="490400947132749" static="0" type="number">0</variable>
        <variable constant="0" name="GreenBotlCnt" sid="682658117834752" static="0" type="number">0</variable>
        <variable constant="0" name="OrangeBotlCnt" sid="224367273930841" static="0" type="number">0</variable>
        <event-group description="" sid="6715867694052702" title="Hero">
            <sub-events>
                <event-block sid="7578686211817475">
                    <conditions>
                        <condition id="-1" name="Every tick" sid="3640721604383646" type="System" />
                    </conditions>
                    <actions>
                        <action id="-4" name="Set position to another object" sid="6765973689162776" type="HeroAvatar">
                            <param id="0" name="Object">HeroSprite</param>
                            <param id="1" name="Image point (optional)">1</param>
                        </action>
                    </actions>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="8101979951196677" title="Plant">
            <sub-events>
                <event-block sid="5428879147368111">
                    <conditions>
                        <condition id="3" name="On touched object" sid="6068432185782139" type="Touch">
                            <param id="0" name="Object">plantSprite</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="8347495640843979" type="Function">
                            <param id="0" name="Name">&quot;ResetTrade&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="3633377459461506">
                            <conditions>
                                <condition id="3" name="Compare frame" sid="6551898333498186" type="plantSprite">
                                    <param id="0" name="Comparison">0</param>
                                    <param id="1" name="Number">plantSprite.AnimationFrameCount-1</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="1217587605000807">
                                    <conditions>
                                        <condition id="2" name="Is playing" sid="4208886132556808" type="plantSprite">
                                            <param id="0" name="Animation">&quot;Apple&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="3" name="Start" sid="5708458104090708" type="plantSprite">
                                            <param id="0" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="8073592068842772" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">1{###}1</param>
                                        </action>
                                        <action id="-3" name="Set position" sid="4975995458558027" type="HeroSprite">
                                            <param id="0" name="X">plantSprite.X</param>
                                            <param id="1" name="Y">352</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="9352085293027434">
                                    <conditions>
                                        <condition id="2" name="Is playing" sid="5899325892874421" type="plantSprite">
                                            <param id="0" name="Animation">&quot;Rise&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="8925733201175563" type="plantSprite">
                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="9480665508697033" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">2{###}3</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="111981550699166" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="7004740934274529">
                                    <conditions>
                                        <condition id="2" name="Is playing" sid="246210194675613" type="plantSprite">
                                            <param id="0" name="Animation">&quot;Carrot&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="5058104253898987" type="plantSprite">
                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="5717217551185177" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">3{###}3</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="398453420146060" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="7104306082755175">
                                    <conditions>
                                        <condition id="2" name="Is playing" sid="887177016435198" type="plantSprite">
                                            <param id="0" name="Animation">&quot;Mash&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="4495359002377665" type="plantSprite">
                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="2704598510427643" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">4{###}3</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="120032296126467" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="556373310302274">
                                    <conditions>
                                        <condition id="2" name="Is playing" sid="250228239481230" type="plantSprite">
                                            <param id="0" name="Animation">&quot;RedBotl&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="156797357158473" type="plantSprite">
                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="819174510642681" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">7{###}1</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="864949959836595" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="387945606721203">
                                    <conditions>
                                        <condition id="2" name="Is playing" sid="498421187507525" type="plantSprite">
                                            <param id="0" name="Animation">&quot;GreenBotl&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="798510429901054" type="plantSprite">
                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="274479197543520" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">8{###}1</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="632920577361920" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="969795626120768">
                                    <conditions>
                                        <condition id="2" name="Is playing" sid="669350618620560" type="plantSprite">
                                            <param id="0" name="Animation">&quot;BlueBotl&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="389216195065326" type="plantSprite">
                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="618112859381458" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">9{###}1</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="367968078756057" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="405319829838786">
                                    <conditions>
                                        <condition id="2" name="Is playing" sid="485255310685766" type="plantSprite">
                                            <param id="0" name="Animation">&quot;OrangeBotl&quot;</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="933773211669700" type="plantSprite">
                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="677819506977140" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">10{###}1</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="323656860768077" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                    </actions>
                                    <sub-events>
                                        <event-block sid="389266108191685">
                                            <conditions>
                                                <condition id="-14" name="Pick by unique ID" sid="973685407340110" type="GoldCntFont">
                                                    <param id="0" name="Unique ID">29</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-15" name="Set visible" sid="451810236327961" type="GoldCntFont">
                                                    <param id="0" name="Visibility">1</param>
                                                </action>
                                                <action id="0" name="Set text" sid="234476748709506" type="GoldCntFont">
                                                    <param id="0" name="Text">&quot;Победа!!!  Можно, конечно, еще еще  и денег подкопить ...&quot;</param>
                                                </action>
                                                <action id="-16" name="Wait" sid="259119201064342" type="System">
                                                    <param id="0" name="Seconds">30</param>
                                                </action>
                                                <action id="-15" name="Set visible" sid="849938634752820" type="GoldCntFont">
                                                    <param id="0" name="Visibility">0</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="631621040329691">
                    <conditions>
                        <condition id="3" name="On touched object" sid="3751500177647834" type="Touch">
                            <param id="0" name="Object">PlantBut</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="3219850607561452" type="Function">
                            <param id="0" name="Name">&quot;ResetTrade&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block any="1" sid="257529062611583">
                            <conditions>
                                <condition id="3" name="Compare frame" sid="890308020201227" type="PlantBut">
                                    <param id="0" name="Comparison">0</param>
                                    <param id="1" name="Number">7</param>
                                </condition>
                                <condition id="3" name="Compare frame" sid="608996594249383" type="PlantBut">
                                    <param id="0" name="Comparison">0</param>
                                    <param id="1" name="Number">8</param>
                                </condition>
                                <condition id="3" name="Compare frame" sid="130689528776214" type="PlantBut">
                                    <param id="0" name="Comparison">0</param>
                                    <param id="1" name="Number">9</param>
                                </condition>
                                <condition id="3" name="Compare frame" sid="167650309565381" type="PlantBut">
                                    <param id="0" name="Comparison">0</param>
                                    <param id="1" name="Number">10</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Set value" sid="198747140590735" type="FaseSprite">
                                    <param id="0" name="Instance variable">SelectUID</param>
                                    <param id="1" name="Value">PlantBut.UID</param>
                                </action>
                                <action id="4" name="Set animation" sid="405527237560236" type="FaseSprite">
                                    <param id="0" name="Animation">&quot;Item&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                                <action id="5" name="Set frame" sid="887857259715206" type="FaseSprite">
                                    <param id="0" name="Frame number">PlantBut.AnimationFrame</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="285939756057159">
                                    <conditions>
                                        <condition id="3" name="Compare frame" sid="477359352272501" type="PlantBut">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Number">7</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Call function" sid="284534760180413" type="Function">
                                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                                            <param id="1" name="Parameter {n}">1{###}4{###}2{###}4{###}0{###}0{###}7{###}1</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="301904294255025">
                                    <conditions>
                                        <condition id="3" name="Compare frame" sid="523314233510430" type="PlantBut">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Number">8</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Call function" sid="762780291795301" type="Function">
                                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                                            <param id="1" name="Parameter {n}">1{###}4{###}3{###}3{###}0{###}0{###}8{###}1</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="876105463312147">
                                    <conditions>
                                        <condition id="3" name="Compare frame" sid="404875691329825" type="PlantBut">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Number">9</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Call function" sid="973928500138446" type="Function">
                                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                                            <param id="1" name="Parameter {n}">1{###}2{###}2{###}2{###}4{###}3{###}9{###}1</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="721495311880846">
                                    <conditions>
                                        <condition id="3" name="Compare frame" sid="153382789721437" type="PlantBut">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Number">10</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Call function" sid="739772182696643" type="Function">
                                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                                            <param id="1" name="Parameter {n}">1{###}1{###}3{###}3{###}7{###}1{###}10{###}1</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="2689431056331209">
                            <conditions>
                                <condition id="-11" name="For Each" sid="5681457342854342" type="System">
                                    <param id="0" name="Object">plantSprite</param>
                                </condition>
                                <condition id="2" name="Is playing" sid="4383862404282663" type="plantSprite">
                                    <param id="0" name="Animation">&quot;None&quot;</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <comment>Растения растут только на земле, по Y больше 280</comment>
                                <event-block sid="5447018564874501">
                                    <conditions>
                                        <condition id="3" name="Compare frame" sid="1514829472033747" type="PlantBut">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Number">2</param>
                                        </condition>
                                        <condition id="-14" name="Compare variable" sid="3738708918651593" type="System">
                                            <param id="0" name="Variable">RiseCntVar</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                        <condition id="-2" name="Compare Y" sid="921912778775889" type="plantSprite">
                                            <param id="0" name="Comparison">4</param>
                                            <param id="1" name="Y co-ordinate">280</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="602268699245104" type="plantSprite">
                                            <param id="0" name="Animation">&quot;Rise&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="2914107163461111" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">2{###}-1</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="546700202018114" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                        <action id="-24" name="Stop loop" sid="324372377810299" type="System" />
                                    </actions>
                                </event-block>
                                <event-block sid="9977463824047679">
                                    <conditions>
                                        <condition id="3" name="Compare frame" sid="776874726025229" type="PlantBut">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Number">3</param>
                                        </condition>
                                        <condition id="-14" name="Compare variable" sid="4274012858427596" type="System">
                                            <param id="0" name="Variable">CarrotCntVar</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                        <condition id="-2" name="Compare Y" sid="315282828031607" type="plantSprite">
                                            <param id="0" name="Comparison">4</param>
                                            <param id="1" name="Y co-ordinate">280</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="7289572428737487" type="plantSprite">
                                            <param id="0" name="Animation">&quot;Carrot&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="5869050101748885" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">3{###}-1</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="261754639741051" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                        <action id="-24" name="Stop loop" sid="436779570222919" type="System" />
                                    </actions>
                                </event-block>
                                <event-block sid="418770981651588">
                                    <conditions>
                                        <condition id="3" name="Compare frame" sid="4292086014242252" type="PlantBut">
                                            <param id="0" name="Comparison">0</param>
                                            <param id="1" name="Number">4</param>
                                        </condition>
                                        <condition id="-14" name="Compare variable" sid="76429639998866" type="System">
                                            <param id="0" name="Variable">MashCntVar</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                        <condition id="-2" name="Compare Y" sid="892575687211124" type="plantSprite">
                                            <param id="0" name="Comparison">4</param>
                                            <param id="1" name="Y co-ordinate">280</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="4" name="Set animation" sid="7326477523550674" type="plantSprite">
                                            <param id="0" name="Animation">&quot;Mash&quot;</param>
                                            <param id="1" name="From">1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="8762001395024213" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">4{###}-1</param>
                                        </action>
                                        <action id="-4" name="Set position to another object" sid="324088044010986" type="HeroSprite">
                                            <param id="0" name="Object">plantSprite</param>
                                            <param id="1" name="Image point (optional)">0</param>
                                        </action>
                                        <action id="-24" name="Stop loop" sid="968249509644806" type="System" />
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="9158648745878064" title="NPC">
            <sub-events>
                <event-block sid="4930333312891371">
                    <conditions>
                        <condition id="-6" name="Every X seconds" sid="377852954482449" type="System">
                            <param id="0" name="Interval (seconds)">1</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="1890064938729714">
                            <conditions>
                                <condition id="-8" name="Compare two values" sid="3226743317751134" type="System">
                                    <param id="0" name="First value">random(10)</param>
                                    <param id="1" name="Comparison">2</param>
                                    <param id="2" name="Second value">3</param>
                                </condition>
                                <condition id="-8" name="Compare two values" sid="7304027178707765" type="System">
                                    <param id="0" name="First value">NPCBase.PickedCount</param>
                                    <param id="1" name="Comparison">2</param>
                                    <param id="2" name="Second value">4</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-3" name="Create object" sid="498976918311394" type="System">
                                    <param id="0" name="Object to create">NPCBase</param>
                                    <param id="1" name="Layer">0</param>
                                    <param id="2" name="X">630</param>
                                    <param id="3" name="Y">352</param>
                                </action>
                                <action id="-3" name="Create object" sid="5293510757701818" type="System">
                                    <param id="0" name="Object to create">NPSSprite</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="5" name="Set frame" sid="2455372304310445" type="NPSSprite">
                                    <param id="0" name="Frame number">random(0,NPSSprite.AnimationFrameCount-1)</param>
                                </action>
                                <action id="7" name="Set mirrored" sid="7895608959362091" type="NPSSprite">
                                    <param id="0" name="State">0</param>
                                </action>
                                <action id="4" name="Set animation" sid="2367763962324047" type="NPCBase">
                                    <param id="0" name="Animation">&quot;run&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                                <action id="6" name="Set speed" sid="785685984026308" type="NPCBase">
                                    <param id="0" name="Speed">random(5,10)</param>
                                </action>
                                <action id="-10" name="Set value" sid="6846288106203099" type="NPCBase">
                                    <param id="0" name="Instance variable">speed</param>
                                    <param id="1" name="Value">random(30,60)</param>
                                </action>
                                <action id="-10" name="Set value" sid="5748637178765212" type="NPCBase">
                                    <param id="0" name="Instance variable">NPSUID</param>
                                    <param id="1" name="Value">NPSSprite.UID</param>
                                </action>
                                <action id="-10" name="Set value" sid="4471280322971632" type="NPCBase">
                                    <param id="0" name="Instance variable">movePoint</param>
                                    <param id="1" name="Value">random(10,300)</param>
                                </action>
                                <action id="-10" name="Set value" sid="2905193146931439" type="NPCBase">
                                    <param id="0" name="Instance variable">FaseFrame</param>
                                    <param id="1" name="Value">round(random(10))</param>
                                </action>
                            </actions>
                            <sub-events>
                                <comment>НПС продавец</comment>
                                <event-block sid="8154781282155687">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="1975624222518038" type="System">
                                            <param id="0" name="First value">random(10)</param>
                                            <param id="1" name="Comparison">2</param>
                                            <param id="2" name="Second value">3</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <comment>земля за деньги</comment>
                                        <event-block sid="6585912775575751">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="6924862722691354" type="System">
                                                    <param id="0" name="First value">random(10)</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Second value">7</param>
                                                </condition>
                                                <condition id="-8" name="Compare two values" sid="2755129896942453" type="System">
                                                    <param id="0" name="First value">plantSprite.Count</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Second value">6</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="9781250391204101" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="9229332658762129" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">round(random(60,100))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="3542879735201035" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveItem</param>
                                                    <param id="1" name="Value">5</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="7919647252221511" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <comment>Семена грибов</comment>
                                        <event-block sid="24757334271222">
                                            <conditions>
                                                <condition id="-14" name="Compare variable" sid="2806113269918411" type="System">
                                                    <param id="0" name="Variable">MashCntVar</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Value">0</param>
                                                </condition>
                                                <condition id="-8" name="Compare two values" sid="1786698612100422" type="System">
                                                    <param id="0" name="First value">random(10)</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Second value">7</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="8627535679876736" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="9192051746578426" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">round(random(60,100))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="2787143675758751" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveItem</param>
                                                    <param id="1" name="Value">4</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="4518085908556458" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <comment>Семена морковки</comment>
                                        <event-block sid="3200035765324667">
                                            <conditions>
                                                <condition id="-14" name="Compare variable" sid="6981001052980712" type="System">
                                                    <param id="0" name="Variable">CarrotCntVar</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="1896550544224872" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="9130805813298723" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">round(random(40,80))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="4371465157972657" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveItem</param>
                                                    <param id="1" name="Value">3</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="6752447959188974" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <comment>Семена риса</comment>
                                        <event-block sid="7929355608201452">
                                            <conditions>
                                                <condition id="-14" name="Compare variable" sid="6398789934644482" type="System">
                                                    <param id="0" name="Variable">RiseCntVar</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="2882861715028158" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="6145806982181385" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">round(random(20,40))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="399836462924511" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveItem</param>
                                                    <param id="1" name="Value">2</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="9428153542847688" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <comment>Первая земля за яблоки</comment>
                                        <event-block sid="8210727917030204">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="6924200465743809" type="System">
                                                    <param id="0" name="First value">random(10)</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Second value">7</param>
                                                </condition>
                                                <condition id="-8" name="Compare two values" sid="2236487715726347" type="System">
                                                    <param id="0" name="First value">plantSprite.Count</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Second value">4</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="1770123785524712" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="1953805678040824" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">round(random(15,25))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="2426788269436954" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveItem</param>
                                                    <param id="1" name="Value">5</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="2515302154362807" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <comment>Лаборатория</comment>
                                        <event-block sid="352550412258576">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="231060335487808" type="System">
                                                    <param id="0" name="First value">random(10)</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Second value">7</param>
                                                </condition>
                                                <condition id="-8" name="Compare two values" sid="991883610841015" type="System">
                                                    <param id="0" name="First value">LabPlase.Count</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Second value">4</param>
                                                </condition>
                                                <condition id="-14" name="Compare variable" sid="558750654630775" type="System">
                                                    <param id="0" name="Variable">TotalGoldCnt</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">700</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="451206209197977" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="252067467230522" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">round(random(200,400))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="849135146816372" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveItem</param>
                                                    <param id="1" name="Value">6</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="693801084359359" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block disabled="1" sid="689871980813474">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="826572620055510" type="System">
                                                    <param id="0" name="First value">random(10)</param>
                                                    <param id="1" name="Comparison">3</param>
                                                    <param id="2" name="Second value">7</param>
                                                </condition>
                                                <condition id="-8" name="Compare two values" sid="489588319573394" type="System">
                                                    <param id="0" name="First value">LabPlase.Count</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Second value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="775310822132377" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="851001492223355" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">round(random(3,4))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="570428965046840" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveItem</param>
                                                    <param id="1" name="Value">6</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="178443193910101" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <comment>НПС покупатель</comment>
                                <event-block sid="5153973069550022">
                                    <conditions>
                                        <condition id="-7" name="Compare instance variable" sid="2604227501422954" type="NPCBase">
                                            <param id="0" name="Instance variable">MobGiveCnt</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <comment>С большей вероятносью в первую ячейку дешевый товар</comment>
                                        <event-block sid="2103138305343968">
                                            <conditions />
                                            <actions>
                                                <action id="-10" name="Set value" sid="4161097430059825" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">round(random(2,9))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="4011829775358832" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">min(round(random(1,4)),round(random(1,4)))</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="1930782968484111">
                                            <conditions>
                                                <condition id="-14" name="Compare variable" sid="5574985416102969" type="System">
                                                    <param id="0" name="Variable">TotalGoldCnt</param>
                                                    <param id="1" name="Comparison">2</param>
                                                    <param id="2" name="Value">150</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="9731381990484793" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">round(random(1,2))</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <comment>если не заработано золото - покупать только яблоки</comment>
                                        <event-block sid="2067780612895362">
                                            <conditions>
                                                <condition id="-14" name="Compare variable" sid="8822158571534408" type="System">
                                                    <param id="0" name="Variable">TotalGoldCnt</param>
                                                    <param id="1" name="Comparison">2</param>
                                                    <param id="2" name="Value">70</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="2536863256475906" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Value">1</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <comment>Второй товар, если есть первый</comment>
                                        <event-block sid="6715271814939286">
                                            <conditions>
                                                <condition id="-8" name="Compare two values" sid="7419364160562442" type="System">
                                                    <param id="0" name="First value">NPCBase.NeedItem1</param>
                                                    <param id="1" name="Comparison">2</param>
                                                    <param id="2" name="Second value">random(0,4)</param>
                                                </condition>
                                                <condition id="-14" name="Compare variable" sid="3937645265785953" type="System">
                                                    <param id="0" name="Variable">TotalGoldCnt</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">70</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="3018336415833456" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed2</param>
                                                    <param id="1" name="Value">round(random(2,9))</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="7380563180775659" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem2</param>
                                                    <param id="1" name="Value">round(random(NPCBase.NeedItem1+1,4))</param>
                                                </action>
                                            </actions>
                                            <sub-events>
                                                <event-block sid="296214459029364">
                                                    <conditions>
                                                        <condition id="-14" name="Compare variable" sid="194121136228928" type="System">
                                                            <param id="0" name="Variable">TotalGoldCnt</param>
                                                            <param id="1" name="Comparison">4</param>
                                                            <param id="2" name="Value">700</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="-10" name="Set value" sid="845035489518310" type="NPCBase">
                                                            <param id="0" name="Instance variable">NeedItem2</param>
                                                            <param id="1" name="Value">round(random(NPCBase.NeedItem1+1,6))</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                                <event-block sid="780062700227677">
                                                    <conditions>
                                                        <condition id="-14" name="Compare variable" sid="801861092239392" type="System">
                                                            <param id="0" name="Variable">TotalGoldCnt</param>
                                                            <param id="1" name="Comparison">4</param>
                                                            <param id="2" name="Value">1500</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="-10" name="Set value" sid="505757410651093" type="NPCBase">
                                                            <param id="0" name="Instance variable">NeedItem2</param>
                                                            <param id="1" name="Value">round(random(NPCBase.NeedItem1+1,8))</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                                <comment>третий товар если есть второй</comment>
                                                <event-block sid="9427413983384174">
                                                    <conditions>
                                                        <condition id="-8" name="Compare two values" sid="6495536379900545" type="System">
                                                            <param id="0" name="First value">NPCBase.NeedItem2</param>
                                                            <param id="1" name="Comparison">2</param>
                                                            <param id="2" name="Second value">random(-1,4)</param>
                                                        </condition>
                                                        <condition id="-14" name="Compare variable" sid="85669249899819" type="System">
                                                            <param id="0" name="Variable">TotalGoldCnt</param>
                                                            <param id="1" name="Comparison">4</param>
                                                            <param id="2" name="Value">400</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="-10" name="Set value" sid="7425851989468995" type="NPCBase">
                                                            <param id="0" name="Instance variable">CntNeed3</param>
                                                            <param id="1" name="Value">round(random(2,6))</param>
                                                        </action>
                                                        <action id="-10" name="Set value" sid="2652827916729227" type="NPCBase">
                                                            <param id="0" name="Instance variable">NeedItem3</param>
                                                            <param id="1" name="Value">round(random(NPCBase.NeedItem2+1,4))</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                                <event-block sid="203206026206770">
                                                    <conditions>
                                                        <condition id="-14" name="Compare variable" sid="394570709770222" type="System">
                                                            <param id="0" name="Variable">TotalGoldCnt</param>
                                                            <param id="1" name="Comparison">4</param>
                                                            <param id="2" name="Value">700</param>
                                                        </condition>
                                                        <condition id="-8" name="Compare two values" sid="317258535166830" type="System">
                                                            <param id="0" name="First value">NPCBase.NeedItem2</param>
                                                            <param id="1" name="Comparison">2</param>
                                                            <param id="2" name="Second value">random(0,6)</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="-10" name="Set value" sid="602075128474647" type="NPCBase">
                                                            <param id="0" name="Instance variable">NeedItem3</param>
                                                            <param id="1" name="Value">round(random(NPCBase.NeedItem2+1,6))</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                                <event-block sid="628377413357696">
                                                    <conditions>
                                                        <condition id="-14" name="Compare variable" sid="263611382182296" type="System">
                                                            <param id="0" name="Variable">TotalGoldCnt</param>
                                                            <param id="1" name="Comparison">4</param>
                                                            <param id="2" name="Value">1500</param>
                                                        </condition>
                                                        <condition id="-8" name="Compare two values" sid="437115380724325" type="System">
                                                            <param id="0" name="First value">NPCBase.NeedItem2</param>
                                                            <param id="1" name="Comparison">2</param>
                                                            <param id="2" name="Second value">random(2,8)</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="-10" name="Set value" sid="892471592724017" type="NPCBase">
                                                            <param id="0" name="Instance variable">NeedItem3</param>
                                                            <param id="1" name="Value">round(random(NPCBase.NeedItem2+1,8))</param>
                                                        </action>
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                        <comment>на глаз подсчитать стоимость</comment>
                                        <event-block sid="258623408755232">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="730618536523172" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem2</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">4</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-11" name="Add to" sid="982531349976962" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem2</param>
                                                    <param id="1" name="Value">2</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="539429932001313" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed2</param>
                                                    <param id="1" name="Value">round(random(1,4))</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="509199709595417">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="579089353038193" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem3</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">4</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-11" name="Add to" sid="887874763713745" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem3</param>
                                                    <param id="1" name="Value">2</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="463988756270988" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed3</param>
                                                    <param id="1" name="Value">round(random(1,4))</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="9489467438684488">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="1224886245307064" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem1</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-11" name="Add to" sid="3873306387958794" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">Function.Call(&quot;GetCost&quot;,NPCBase.NeedItem1,NPCBase.CntNeed1)</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="5738252186660662">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="2179311512229156" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem2</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-11" name="Add to" sid="5899230833701181" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">Function.Call(&quot;GetCost&quot;,NPCBase.NeedItem2,NPCBase.CntNeed2)</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="7536260255225273">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="7490959023050307" type="NPCBase">
                                                    <param id="0" name="Instance variable">NeedItem3</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-11" name="Add to" sid="8712309041669176" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">Function.Call(&quot;GetCost&quot;,NPCBase.NeedItem3,NPCBase.CntNeed3)</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>движение НПС</comment>
                <event-block sid="4024388532812901">
                    <conditions>
                        <condition id="-11" name="For Each" sid="9019928387664608" type="System">
                            <param id="0" name="Object">NPCBase</param>
                        </condition>
                        <condition id="-14" name="Pick by unique ID" sid="4953447009690642" type="NPSSprite">
                            <param id="0" name="Unique ID">NPCBase.NPSUID</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-4" name="Set position to another object" sid="3294223345966629" type="NPSSprite">
                            <param id="0" name="Object">NPCBase</param>
                            <param id="1" name="Image point (optional)">1</param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="5213078869160623">
                            <conditions>
                                <condition id="-7" name="Compare instance variable" sid="5553927523990536" type="NPCBase">
                                    <param id="0" name="Instance variable">movePoint</param>
                                    <param id="1" name="Comparison">4</param>
                                    <param id="2" name="Value">NPCBase.X</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-1" name="Set X" sid="3424166284650457" type="NPCBase">
                                    <param id="0" name="X">NPCBase.X+NPCBase.dt*NPCBase.speed</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="40193185566628">
                            <conditions>
                                <condition id="-7" name="Compare instance variable" sid="6091731993572012" type="NPCBase">
                                    <param id="0" name="Instance variable">movePoint</param>
                                    <param id="1" name="Comparison">2</param>
                                    <param id="2" name="Value">NPCBase.X</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-1" name="Set X" sid="8554960427380734" type="NPCBase">
                                    <param id="0" name="X">NPCBase.X-NPCBase.dt*NPCBase.speed</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="8477906980729667">
                            <conditions>
                                <condition id="-21" name="Is between values" sid="4876253374254249" type="System">
                                    <param id="0" name="Value">NPCBase.X</param>
                                    <param id="1" name="Lower bound">NPCBase.movePoint-5</param>
                                    <param id="2" name="Upper bound">NPCBase.movePoint+5</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Set value" sid="264109015045538" type="NPCBase">
                                    <param id="0" name="Instance variable">movePoint</param>
                                    <param id="1" name="Value">random(10,500)</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="8187417147906927">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="8529520724758969" type="System">
                                            <param id="0" name="First value">random(0,100)</param>
                                            <param id="1" name="Comparison">2</param>
                                            <param id="2" name="Second value">20</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-10" name="Set value" sid="3429240921838634" type="NPCBase">
                                            <param id="0" name="Instance variable">movePoint</param>
                                            <param id="1" name="Value">650</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="8496420057030999">
                                    <conditions>
                                        <condition id="-7" name="Compare instance variable" sid="6714320693470734" type="NPCBase">
                                            <param id="0" name="Instance variable">movePoint</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">NPCBase.X</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="7" name="Set mirrored" sid="5293839231066626" type="NPSSprite">
                                            <param id="0" name="State">1</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="2576931620690141">
                                    <conditions>
                                        <condition id="-7" name="Compare instance variable" sid="553760126848942" type="NPCBase">
                                            <param id="0" name="Instance variable">movePoint</param>
                                            <param id="1" name="Comparison">2</param>
                                            <param id="2" name="Value">NPCBase.X</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="7" name="Set mirrored" sid="4131213476005974" type="NPSSprite">
                                            <param id="0" name="State">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <comment>Сбросить торговое предложение если НПС ушел</comment>
                        <event-block sid="2450509549032317">
                            <conditions>
                                <condition id="-1" name="Compare X" sid="3928984328621421" type="NPCBase">
                                    <param id="0" name="Comparison">4</param>
                                    <param id="1" name="X co-ordinate">630</param>
                                </condition>
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="5978592733963954">
                                    <conditions>
                                        <condition id="-7" name="Compare instance variable" sid="4047579846928302" type="FaseSprite">
                                            <param id="0" name="Instance variable">SelectUID</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">NPCBase.UID</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Call function" sid="8089373498271642" type="Function">
                                            <param id="0" name="Name">&quot;ResetTrade&quot;</param>
                                            <param id="1" name="Parameter {n}"></param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="8495282088287927">
                                    <conditions />
                                    <actions>
                                        <action id="-9" name="Destroy" sid="9694227933903684" type="NPCBase" />
                                        <action id="-9" name="Destroy" sid="7230516869523705" type="NPSSprite" />
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>Отобразить торговое предложение</comment>
                <event-block sid="7413718223287639">
                    <conditions>
                        <condition id="3" name="On touched object" sid="568638610380311" type="Touch">
                            <param id="0" name="Object">NPSSprite</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="-15" name="Set visible" sid="6759686024623979" type="MobNeedSprite">
                            <param id="0" name="Visibility">0</param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="457666832411799">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="3795269989744793" type="GoldCntFont">
                                    <param id="0" name="Unique ID">19</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="9439671945036405" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="4071462800588243">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="1621531650045271" type="GoldCntFont">
                                    <param id="0" name="Unique ID">23</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="8849361293602133" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <comment>Движение аватара разрешить, если не хватает ресурсов - остановить</comment>
                        <event-block sid="3603538406918255">
                            <conditions>
                                <condition id="-11" name="For Each" sid="7444858826898786" type="System">
                                    <param id="0" name="Object">NPCBase</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="9423639049103743" type="NPSSprite">
                                    <param id="0" name="Unique ID">NPCBase.NPSUID</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Set value" sid="7940723172192848" type="FaseSprite">
                                    <param id="0" name="Instance variable">SelectUID</param>
                                    <param id="1" name="Value">NPCBase.UID</param>
                                </action>
                                <action id="4" name="Set animation" sid="5045998961550754" type="FaseSprite">
                                    <param id="0" name="Animation">&quot;FemaleFase&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                                <action id="5" name="Set frame" sid="6456278327792702" type="FaseSprite">
                                    <param id="0" name="Frame number">NPCBase.FaseFrame</param>
                                </action>
                                <action id="0" name="Call function" sid="947860992500921" type="Function">
                                    <param id="0" name="Name">&quot;Dialog&quot;</param>
                                    <param id="1" name="Parameter {n}">NPCBase.NeedItem1{###}NPCBase.CntNeed1{###}NPCBase.NeedItem2{###}NPCBase.CntNeed2{###}NPCBase.NeedItem3{###}NPCBase.CntNeed3{###}NPCBase.MobGiveItem{###}NPCBase.MobGiveCnt</param>
                                </action>
                            </actions>
                            <sub-events>
                                <comment>не давать покупать больше 6 земли</comment>
                                <event-block sid="1331949039555036">
                                    <conditions>
                                        <condition id="-7" name="Compare instance variable" sid="1086638046930805" type="NPCBase">
                                            <param id="0" name="Instance variable">MobGiveItem</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">5</param>
                                        </condition>
                                        <condition id="-8" name="Compare two values" sid="6409690098774723" type="System">
                                            <param id="0" name="First value">plantSprite.Count</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Second value">6</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action behavior="Sine" id="0" name="Set active" sid="1901432250874128" type="FaseSprite">
                                            <param id="0" name="State">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <comment>Не давать покупать больше 5 лабораторий</comment>
                                <event-block sid="264722028035454">
                                    <conditions>
                                        <condition id="-7" name="Compare instance variable" sid="182267398505546" type="NPCBase">
                                            <param id="0" name="Instance variable">MobGiveItem</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">6</param>
                                        </condition>
                                        <condition id="-8" name="Compare two values" sid="154067715933168" type="System">
                                            <param id="0" name="First value">LabPlase.Count</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Second value">5</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action behavior="Sine" id="0" name="Set active" sid="285224492455128" type="FaseSprite">
                                            <param id="0" name="State">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="2440478650499618" title="DoTrade">
            <sub-events>
                <comment>Выполнить сделку если есть движение аватара</comment>
                <event-block sid="134437801018364">
                    <conditions>
                        <condition id="3" name="On touched object" sid="9205924391889936" type="Touch">
                            <param id="0" name="Object">FaseSprite</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="453907447981957">
                            <conditions>
                                <condition behavior="Sine" id="0" name="Is active" sid="5642223885603026" type="FaseSprite" />
                            </conditions>
                            <actions />
                            <sub-events>
                                <event-block sid="3723054033995812">
                                    <conditions>
                                        <condition id="-14" name="Pick by unique ID" sid="5076204041293872" type="NPCBase">
                                            <param id="0" name="Unique ID">FaseSprite.SelectUID</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Call function" sid="1752423844073041" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">NPCBase.NeedItem1{###}-NPCBase.CntNeed1</param>
                                        </action>
                                        <action id="0" name="Call function" sid="8378105067876627" type="Function">
                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                            <param id="1" name="Parameter {n}">NPCBase.MobGiveItem{###}NPCBase.MobGiveCnt</param>
                                        </action>
                                    </actions>
                                    <sub-events>
                                        <event-block sid="1545552424091199">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="77868341318654" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed2</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="2530497822471306" type="Function">
                                                    <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                    <param id="1" name="Parameter {n}">NPCBase.NeedItem2{###}-NPCBase.CntNeed2</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="5827615916223468">
                                            <conditions>
                                                <condition id="-7" name="Compare instance variable" sid="2217999392474404" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed3</param>
                                                    <param id="1" name="Comparison">4</param>
                                                    <param id="2" name="Value">0</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="0" name="Call function" sid="5205512329637357" type="Function">
                                                    <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                    <param id="1" name="Parameter {n}">NPCBase.NeedItem3{###}-NPCBase.CntNeed3</param>
                                                </action>
                                            </actions>
                                        </event-block>
                                        <event-block sid="4509369765463796">
                                            <conditions>
                                                <condition id="-14" name="Pick by unique ID" sid="2819337765018732" type="NPSSprite">
                                                    <param id="0" name="Unique ID">NPCBase.NPSUID</param>
                                                </condition>
                                            </conditions>
                                            <actions>
                                                <action id="-10" name="Set value" sid="6400940006265312" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed1</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="7678138796348511" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed2</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="4455507108034092" type="NPCBase">
                                                    <param id="0" name="Instance variable">CntNeed3</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="1242251729194599" type="NPCBase">
                                                    <param id="0" name="Instance variable">MobGiveCnt</param>
                                                    <param id="1" name="Value">0</param>
                                                </action>
                                                <action id="-10" name="Set value" sid="784102886435225" type="NPCBase">
                                                    <param id="0" name="Instance variable">movePoint</param>
                                                    <param id="1" name="Value">650</param>
                                                </action>
                                                <action id="7" name="Set mirrored" sid="4634265110238388" type="NPSSprite">
                                                    <param id="0" name="State">1</param>
                                                </action>
                                                <action id="0" name="Call function" sid="4368262172489256" type="Function">
                                                    <param id="0" name="Name">&quot;ResetTrade&quot;</param>
                                                    <param id="1" name="Parameter {n}"></param>
                                                </action>
                                            </actions>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                                <event-block sid="329961527944677">
                                    <conditions>
                                        <condition id="-14" name="Pick by unique ID" sid="844220737298778" type="PlantBut">
                                            <param id="0" name="Unique ID">FaseSprite.SelectUID</param>
                                        </condition>
                                    </conditions>
                                    <actions />
                                    <sub-events>
                                        <event-block sid="604167998258518">
                                            <conditions>
                                                <condition id="3" name="Compare frame" sid="488485477191833" type="PlantBut">
                                                    <param id="0" name="Comparison">0</param>
                                                    <param id="1" name="Number">7</param>
                                                </condition>
                                            </conditions>
                                            <actions />
                                            <sub-events>
                                                <event-block sid="206884855530030">
                                                    <conditions>
                                                        <condition id="-11" name="For Each" sid="590068895765479" type="System">
                                                            <param id="0" name="Object">plantSprite</param>
                                                        </condition>
                                                        <condition id="-2" name="Compare Y" sid="123678751949376" type="plantSprite">
                                                            <param id="0" name="Comparison">2</param>
                                                            <param id="1" name="Y co-ordinate">280</param>
                                                        </condition>
                                                        <condition id="2" name="Is playing" sid="632641475053490" type="plantSprite">
                                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="0" name="Call function" sid="886160693675693" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">1{###}-4</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="269446368059066" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">2{###}-4</param>
                                                        </action>
                                                        <action id="4" name="Set animation" sid="636113047296176" type="plantSprite">
                                                            <param id="0" name="Animation">&quot;RedBotl&quot;</param>
                                                            <param id="1" name="From">1</param>
                                                        </action>
                                                        <action id="-4" name="Set position to another object" sid="994709856060583" type="HeroSprite">
                                                            <param id="0" name="Object">plantSprite</param>
                                                            <param id="1" name="Image point (optional)">0</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="112980227244727" type="Function">
                                                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                                                            <param id="1" name="Parameter {n}">1{###}4{###}2{###}4{###}0{###}0{###}7{###}1</param>
                                                        </action>
                                                        <action id="-24" name="Stop loop" sid="850970180702561" type="System" />
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                        <event-block sid="734076553281323">
                                            <conditions>
                                                <condition id="3" name="Compare frame" sid="531373249954289" type="PlantBut">
                                                    <param id="0" name="Comparison">0</param>
                                                    <param id="1" name="Number">8</param>
                                                </condition>
                                            </conditions>
                                            <actions />
                                            <sub-events>
                                                <event-block sid="974500660389729">
                                                    <conditions>
                                                        <condition id="-11" name="For Each" sid="419287560220185" type="System">
                                                            <param id="0" name="Object">plantSprite</param>
                                                        </condition>
                                                        <condition id="-2" name="Compare Y" sid="270712113634809" type="plantSprite">
                                                            <param id="0" name="Comparison">2</param>
                                                            <param id="1" name="Y co-ordinate">280</param>
                                                        </condition>
                                                        <condition id="2" name="Is playing" sid="230187381255456" type="plantSprite">
                                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="0" name="Call function" sid="829226633705090" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">1{###}-4</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="308655997701931" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">3{###}-3</param>
                                                        </action>
                                                        <action id="4" name="Set animation" sid="293166260817581" type="plantSprite">
                                                            <param id="0" name="Animation">&quot;GreenBotl&quot;</param>
                                                            <param id="1" name="From">1</param>
                                                        </action>
                                                        <action id="-4" name="Set position to another object" sid="701972785753901" type="HeroSprite">
                                                            <param id="0" name="Object">plantSprite</param>
                                                            <param id="1" name="Image point (optional)">0</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="825328380200262" type="Function">
                                                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                                                            <param id="1" name="Parameter {n}">1{###}4{###}3{###}3{###}0{###}0{###}8{###}1</param>
                                                        </action>
                                                        <action id="-24" name="Stop loop" sid="758868178861532" type="System" />
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                        <event-block sid="738048759619007">
                                            <conditions>
                                                <condition id="3" name="Compare frame" sid="822379499525055" type="PlantBut">
                                                    <param id="0" name="Comparison">0</param>
                                                    <param id="1" name="Number">9</param>
                                                </condition>
                                            </conditions>
                                            <actions />
                                            <sub-events>
                                                <event-block sid="542619001145524">
                                                    <conditions>
                                                        <condition id="-11" name="For Each" sid="373895103928736" type="System">
                                                            <param id="0" name="Object">plantSprite</param>
                                                        </condition>
                                                        <condition id="-2" name="Compare Y" sid="880262037578738" type="plantSprite">
                                                            <param id="0" name="Comparison">2</param>
                                                            <param id="1" name="Y co-ordinate">280</param>
                                                        </condition>
                                                        <condition id="2" name="Is playing" sid="201742204263145" type="plantSprite">
                                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="0" name="Call function" sid="131109107962065" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">1{###}-2</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="804835853269753" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">2{###}-2</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="680388840254669" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">4{###}-3</param>
                                                        </action>
                                                        <action id="4" name="Set animation" sid="206688239385131" type="plantSprite">
                                                            <param id="0" name="Animation">&quot;BlueBotl&quot;</param>
                                                            <param id="1" name="From">1</param>
                                                        </action>
                                                        <action id="-4" name="Set position to another object" sid="183468098715233" type="HeroSprite">
                                                            <param id="0" name="Object">plantSprite</param>
                                                            <param id="1" name="Image point (optional)">0</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="223226965161357" type="Function">
                                                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                                                            <param id="1" name="Parameter {n}">1{###}2{###}2{###}2{###}4{###}3{###}9{###}1</param>
                                                        </action>
                                                        <action id="-24" name="Stop loop" sid="769542825144413" type="System" />
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                        <event-block sid="770496172635281">
                                            <conditions>
                                                <condition id="3" name="Compare frame" sid="267012198731038" type="PlantBut">
                                                    <param id="0" name="Comparison">0</param>
                                                    <param id="1" name="Number">10</param>
                                                </condition>
                                            </conditions>
                                            <actions />
                                            <sub-events>
                                                <event-block sid="883196737732839">
                                                    <conditions>
                                                        <condition id="-11" name="For Each" sid="410319253596863" type="System">
                                                            <param id="0" name="Object">plantSprite</param>
                                                        </condition>
                                                        <condition id="-2" name="Compare Y" sid="655761186141084" type="plantSprite">
                                                            <param id="0" name="Comparison">2</param>
                                                            <param id="1" name="Y co-ordinate">280</param>
                                                        </condition>
                                                        <condition id="2" name="Is playing" sid="185267733664920" type="plantSprite">
                                                            <param id="0" name="Animation">&quot;None&quot;</param>
                                                        </condition>
                                                    </conditions>
                                                    <actions>
                                                        <action id="0" name="Call function" sid="559174306635734" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">1{###}-1</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="576125613426147" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">3{###}-3</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="309932022769751" type="Function">
                                                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                                                            <param id="1" name="Parameter {n}">7{###}-1</param>
                                                        </action>
                                                        <action id="4" name="Set animation" sid="956866418630260" type="plantSprite">
                                                            <param id="0" name="Animation">&quot;OrangeBotl&quot;</param>
                                                            <param id="1" name="From">1</param>
                                                        </action>
                                                        <action id="-4" name="Set position to another object" sid="132548479766516" type="HeroSprite">
                                                            <param id="0" name="Object">plantSprite</param>
                                                            <param id="1" name="Image point (optional)">0</param>
                                                        </action>
                                                        <action id="0" name="Call function" sid="626962787254330" type="Function">
                                                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                                                            <param id="1" name="Parameter {n}">1{###}1{###}3{###}3{###}7{###}1{###}10{###}1</param>
                                                        </action>
                                                        <action id="-24" name="Stop loop" sid="147697325280124" type="System" />
                                                    </actions>
                                                </event-block>
                                            </sub-events>
                                        </event-block>
                                    </sub-events>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="5575273910751515" title="Function">
            <sub-events>
                <comment>Сбросить сделку</comment>
                <event-block sid="1788285900228482">
                    <conditions>
                        <condition id="0" name="On function" sid="616705213871691" type="Function">
                            <param id="0" name="Name">&quot;ResetTrade&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action id="4" name="Set animation" sid="2325803126153787" type="FaseSprite">
                            <param id="0" name="Animation">&quot;Default&quot;</param>
                            <param id="1" name="From">1</param>
                        </action>
                        <action id="-15" name="Set visible" sid="9629199828515342" type="MobNeedSprite">
                            <param id="0" name="Visibility">0</param>
                        </action>
                        <action id="-10" name="Set value" sid="9507865573213286" type="FaseSprite">
                            <param id="0" name="Instance variable">SelectUID</param>
                            <param id="1" name="Value">0</param>
                        </action>
                        <action behavior="Sine" id="0" name="Set active" sid="8923712521480036" type="FaseSprite">
                            <param id="0" name="State">0</param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="1693558931607348">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="9184998765736418" type="GoldCntFont">
                                    <param id="0" name="Unique ID">19</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="1047126328972064" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="4443644282766445">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="1773014064047309" type="GoldCntFont">
                                    <param id="0" name="Unique ID">23</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="3553221493529228" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>Получить количество ресурса</comment>
                <event-block sid="704445512010993">
                    <conditions>
                        <condition id="0" name="On function" sid="2910350182646221" type="Function">
                            <param id="0" name="Name">&quot;GetItemCnt&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="1355080960404071">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="6980635231258594" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="8148646772942034" type="Function">
                                    <param id="0" name="Value">GoldCnt</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="1768215716316623">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="2321484353669436" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="7528266107630955" type="Function">
                                    <param id="0" name="Value">AppleCntVar</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="1103185075137025">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="6167974862397113" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">2</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="344241115841198" type="Function">
                                    <param id="0" name="Value">RiseCntVar</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="6708090204943656">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="6026072869292824" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">3</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="6940907855133995" type="Function">
                                    <param id="0" name="Value">CarrotCntVar</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="7237003678197859">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="4389076051513099" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">4</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="8126608300316026" type="Function">
                                    <param id="0" name="Value">MashCntVar</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="872219234865717">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="557888839051659" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">7</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="765199141177860" type="Function">
                                    <param id="0" name="Value">RedBotlCnt</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="849270777900032">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="928204142236936" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">8</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="413072677096768" type="Function">
                                    <param id="0" name="Value">GreenBotlCnt</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="739969095923161">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="226015228141233" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">9</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="996496306621553" type="Function">
                                    <param id="0" name="Value">BlueBotlCnt</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="245510542957492">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="983156613241305" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">10</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="248082704061579" type="Function">
                                    <param id="0" name="Value">OrangeBotlCnt</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <variable constant="0" name="ShokUID" sid="3032892530393645" static="0" type="number">0</variable>
                <comment>изменить количество ресурса потрясти иконкой ресурса произвести стоительство и тд</comment>
                <event-block sid="9310606068442753">
                    <conditions>
                        <condition id="0" name="On function" sid="5855876183010118" type="Function">
                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="1926105616586701">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="6629206372976518" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="2258144148985529" type="GoldCntFont">
                                    <param id="0" name="Unique ID">17</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="8006545818676377" type="System">
                                    <param id="0" name="Variable">GoldCnt</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="0" name="Set text" sid="777741268128141" type="GoldCntFont">
                                    <param id="0" name="Text">Function.Call(&quot;GoldToText&quot;,GoldCnt)</param>
                                </action>
                                <action id="-9" name="Set value" sid="7344125669360167" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">25</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="7592528358743703">
                                    <conditions>
                                        <condition id="1" name="Compare parameter" sid="8756717546894925" type="Function">
                                            <param id="0" name="Index">1</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-10" name="Add to" sid="9869575096867862" type="System">
                                            <param id="0" name="Variable">TotalGoldCnt</param>
                                            <param id="1" name="Value">Function.Param(1)</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="7626581184044866">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="638494467268582" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="6266567510654852" type="System">
                                    <param id="0" name="Variable">AppleCntVar</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="-9" name="Set value" sid="9335416553579776" type="System">
                                    <param id="0" name="Variable">AppleCntVar</param>
                                    <param id="1" name="Value">min(AppleCntVar, 40)</param>
                                </action>
                                <action id="-9" name="Set value" sid="4359864053443539" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">15</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="2299197471264295">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="8547747390393312" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">2</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="5961521199944929" type="System">
                                    <param id="0" name="Variable">RiseCntVar</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="-9" name="Set value" sid="1606192550255426" type="System">
                                    <param id="0" name="Variable">RiseCntVar</param>
                                    <param id="1" name="Value">min(RiseCntVar, 40)</param>
                                </action>
                                <action id="-9" name="Set value" sid="7938362867070224" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">20</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="2433144415930688">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="9228116125963526" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">3</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="7631656899313751" type="System">
                                    <param id="0" name="Variable">CarrotCntVar</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="-9" name="Set value" sid="5250310981140086" type="System">
                                    <param id="0" name="Variable">CarrotCntVar</param>
                                    <param id="1" name="Value">min(CarrotCntVar, 40)</param>
                                </action>
                                <action id="-9" name="Set value" sid="1428896425872429" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">21</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="2367101220125502">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="808744101587081" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">4</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="1626893941418368" type="System">
                                    <param id="0" name="Variable">MashCntVar</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="-9" name="Set value" sid="9891604063608951" type="System">
                                    <param id="0" name="Variable">MashCntVar</param>
                                    <param id="1" name="Value">min(MashCntVar, 40)</param>
                                </action>
                                <action id="-9" name="Set value" sid="5867545643558136" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">22</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="4481869205390711">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="5472302039576304" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">5</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-9" name="Set value" sid="9910878476635442" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">25</param>
                                </action>
                                <action id="-3" name="Create object" sid="5232589417891463" type="System">
                                    <param id="0" name="Object to create">plantPlace</param>
                                    <param id="1" name="Layer">0</param>
                                    <param id="2" name="X">192+plantPlace.Count*32</param>
                                    <param id="3" name="Y">288</param>
                                </action>
                                <action id="-3" name="Create object" sid="1116225610294136" type="System">
                                    <param id="0" name="Object to create">plantSprite</param>
                                    <param id="1" name="Layer">0</param>
                                    <param id="2" name="X">plantPlace.X</param>
                                    <param id="3" name="Y">288</param>
                                </action>
                                <action id="4" name="Set animation" sid="1151681501227468" type="plantSprite">
                                    <param id="0" name="Animation">&quot;none&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="196466342472826">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="705614860127620" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">6</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-9" name="Set value" sid="421280115228462" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">25</param>
                                </action>
                                <action id="-3" name="Create object" sid="173988192826613" type="System">
                                    <param id="0" name="Object to create">LabPlase</param>
                                    <param id="1" name="Layer">0</param>
                                    <param id="2" name="X">256+LabPlase.Count*32</param>
                                    <param id="3" name="Y">208</param>
                                </action>
                                <action id="-3" name="Create object" sid="115630355041589" type="System">
                                    <param id="0" name="Object to create">plantSprite</param>
                                    <param id="1" name="Layer">0</param>
                                    <param id="2" name="X">LabPlase.X</param>
                                    <param id="3" name="Y">208</param>
                                </action>
                                <action id="4" name="Set animation" sid="482345992735575" type="plantSprite">
                                    <param id="0" name="Animation">&quot;none&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                            </actions>
                            <sub-events>
                                <comment>К первой лаборатории рецепт красной бутылки бесплатно</comment>
                                <event-block sid="459954145149667">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="868659991046295" type="System">
                                            <param id="0" name="First value">LabPlase.Count</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Second value">1</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-3" name="Create object" sid="793812309396962" type="System">
                                            <param id="0" name="Object to create">PlantBut</param>
                                            <param id="1" name="Layer">1</param>
                                            <param id="2" name="X">112</param>
                                            <param id="3" name="Y">48</param>
                                        </action>
                                        <action id="5" name="Set frame" sid="126662849819293" type="PlantBut">
                                            <param id="0" name="Frame number">7</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <comment>Ко 2 лаборатории рецепт зеленой бутылки бесплатно</comment>
                                <event-block sid="464668187072213">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="745167125987819" type="System">
                                            <param id="0" name="First value">LabPlase.Count</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Second value">2</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-3" name="Create object" sid="278701558206001" type="System">
                                            <param id="0" name="Object to create">PlantBut</param>
                                            <param id="1" name="Layer">1</param>
                                            <param id="2" name="X">112</param>
                                            <param id="3" name="Y">80</param>
                                        </action>
                                        <action id="5" name="Set frame" sid="898531300385231" type="PlantBut">
                                            <param id="0" name="Frame number">8</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="286874115951499">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="307577207262162" type="System">
                                            <param id="0" name="First value">LabPlase.Count</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Second value">3</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-3" name="Create object" sid="792723500011724" type="System">
                                            <param id="0" name="Object to create">PlantBut</param>
                                            <param id="1" name="Layer">1</param>
                                            <param id="2" name="X">112</param>
                                            <param id="3" name="Y">112</param>
                                        </action>
                                        <action id="5" name="Set frame" sid="869579304398933" type="PlantBut">
                                            <param id="0" name="Frame number">9</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="400192482750208">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="995243776434679" type="System">
                                            <param id="0" name="First value">LabPlase.Count</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Second value">4</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="-3" name="Create object" sid="581250923754252" type="System">
                                            <param id="0" name="Object to create">PlantBut</param>
                                            <param id="1" name="Layer">1</param>
                                            <param id="2" name="X">112</param>
                                            <param id="3" name="Y">144</param>
                                        </action>
                                        <action id="5" name="Set frame" sid="121270951685906" type="PlantBut">
                                            <param id="0" name="Frame number">10</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <comment>Красная бутылка</comment>
                        <event-block sid="381492715827704">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="372120022441699" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">7</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="746468476625328" type="System">
                                    <param id="0" name="Variable">RedBotlCnt</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="-9" name="Set value" sid="651500462937790" type="System">
                                    <param id="0" name="Variable">RedBotlCnt</param>
                                    <param id="1" name="Value">min(RedBotlCnt, 40)</param>
                                </action>
                                <action id="-9" name="Set value" sid="968794532063607" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">25</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="822944899276609">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="585866444081622" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">8</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="884929098574397" type="System">
                                    <param id="0" name="Variable">GreenBotlCnt</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="-9" name="Set value" sid="602417460322186" type="System">
                                    <param id="0" name="Variable">GreenBotlCnt</param>
                                    <param id="1" name="Value">min(GreenBotlCnt, 40)</param>
                                </action>
                                <action id="-9" name="Set value" sid="237055891048298" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">25</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="698905456350546">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="880012161674628" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">9</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="808643310509284" type="System">
                                    <param id="0" name="Variable">BlueBotlCnt</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="-9" name="Set value" sid="779005293085531" type="System">
                                    <param id="0" name="Variable">BlueBotlCnt</param>
                                    <param id="1" name="Value">min(BlueBotlCnt, 40)</param>
                                </action>
                                <action id="-9" name="Set value" sid="815553149335340" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">25</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="215134940738426">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="766564000941857" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">10</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="-10" name="Add to" sid="888423189107205" type="System">
                                    <param id="0" name="Variable">OrangeBotlCnt</param>
                                    <param id="1" name="Value">Function.Param(1)</param>
                                </action>
                                <action id="-9" name="Set value" sid="173458407672810" type="System">
                                    <param id="0" name="Variable">OrangeBotlCnt</param>
                                    <param id="1" name="Value">min(OrangeBotlCnt, 40)</param>
                                </action>
                                <action id="-9" name="Set value" sid="402989896014869" type="System">
                                    <param id="0" name="Variable">ShokUID</param>
                                    <param id="1" name="Value">25</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="2710209778250611">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="530442219853059" type="PlantBut">
                                    <param id="0" name="Unique ID">ShokUID</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="7989717598280157" type="GoldCntFont">
                                    <param id="0" name="Unique ID">16</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="8971191422081675" type="GoldCntFont">
                                    <param id="0" name="Text">AppleCntVar&amp;newline&amp;RiseCntVar&amp;newline&amp;CarrotCntVar&amp;newline&amp;MashCntVar</param>
                                </action>
                                <action behavior="Sine" id="0" name="Set active" sid="55006148416592" type="PlantBut">
                                    <param id="0" name="State">1</param>
                                </action>
                                <action id="-16" name="Wait" sid="4801799717536131" type="System">
                                    <param id="0" name="Seconds">0.5</param>
                                </action>
                                <action behavior="Sine" id="0" name="Set active" sid="8687102131697857" type="PlantBut">
                                    <param id="0" name="State">0</param>
                                </action>
                                <action id="-7" name="Set size" sid="8243205543037134" type="PlantBut">
                                    <param id="0" name="Width">32</param>
                                    <param id="1" name="Height">32</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="906279375568459">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="373293540787923" type="GoldCntFont">
                                    <param id="0" name="Unique ID">37</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="751672542310125" type="GoldCntFont">
                                    <param id="0" name="Text">&quot; &quot;</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="892200973402129">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="338518443370207" type="System">
                                            <param id="0" name="Variable">RedBotlCnt</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Set text" sid="941303278930610" type="GoldCntFont">
                                            <param id="0" name="Text">RedBotlCnt</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="844031971132769">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="362814272409796" type="System">
                                            <param id="0" name="Variable">GreenBotlCnt</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Set text" sid="425696415589908" type="GoldCntFont">
                                            <param id="0" name="Text">GoldCntFont.Text&amp;newline&amp;GreenBotlCnt</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="990597715451711">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="423411390478123" type="System">
                                            <param id="0" name="Variable">GreenBotlCnt</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Set text" sid="708893173795991" type="GoldCntFont">
                                            <param id="0" name="Text">GoldCntFont.Text&amp;newline&amp;&quot; &quot;</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="514904924574678">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="944174446867453" type="System">
                                            <param id="0" name="Variable">BlueBotlCnt</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Set text" sid="153531350007514" type="GoldCntFont">
                                            <param id="0" name="Text">GoldCntFont.Text&amp;newline&amp;BlueBotlCnt</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="711000014764987">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="141917239929710" type="System">
                                            <param id="0" name="Variable">BlueBotlCnt</param>
                                            <param id="1" name="Comparison">0</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Set text" sid="692320430324758" type="GoldCntFont">
                                            <param id="0" name="Text">GoldCntFont.Text&amp;newline&amp;&quot; &quot;</param>
                                        </action>
                                    </actions>
                                </event-block>
                                <event-block sid="997817730369964">
                                    <conditions>
                                        <condition id="-14" name="Compare variable" sid="343142894923353" type="System">
                                            <param id="0" name="Variable">OrangeBotlCnt</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Value">0</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action id="0" name="Set text" sid="576221689713768" type="GoldCntFont">
                                            <param id="0" name="Text">GoldCntFont.Text&amp;newline&amp;OrangeBotlCnt</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>Вернуть стоимость ресурса</comment>
                <event-block sid="4530728225158211">
                    <conditions>
                        <condition id="0" name="On function" sid="328977524730791" type="Function">
                            <param id="0" name="Name">&quot;GetCost&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="5230443473202272">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="7119699307333427" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">1</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="7603693815048425" type="Function">
                                    <param id="0" name="Value">round(1*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="8363692165400179">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="6076587321364807" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">2</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="7888148252123764" type="Function">
                                    <param id="0" name="Value">round(2*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="1884967443080982">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="7307957983679194" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">3</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="1769707796029233" type="Function">
                                    <param id="0" name="Value">round(3*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="2529273027351416">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="9850974707647127" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">4</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="3378982155770935" type="Function">
                                    <param id="0" name="Value">round(4*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="117527394061732">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="720408187029869" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">7</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="254053301533552" type="Function">
                                    <param id="0" name="Value">round(12*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="108628361904227">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="725282157372943" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">8</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="275802244250930" type="Function">
                                    <param id="0" name="Value">round(16*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="367696143466546">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="314872502765124" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">9</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="116791456531539" type="Function">
                                    <param id="0" name="Value">round(20*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="564710919150028">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="962233731177605" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">10</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="421704006771805" type="Function">
                                    <param id="0" name="Value">round(28*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                        <comment>Красная бутылка</comment>
                        <event-block sid="819180667778541">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="195047453752640" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">7</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="848455804502420" type="Function">
                                    <param id="0" name="Value">round(20*Function.Param(1)*random(0.5,2))</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>Преобразовать цыфру золота в текст с сокращением в тысячи и милионы</comment>
                <event-block sid="5755878913449363">
                    <conditions>
                        <condition id="0" name="On function" sid="6049019865367529" type="Function">
                            <param id="0" name="Name">&quot;GoldToText&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="4788360367371073">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="1725772119109629" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">2</param>
                                    <param id="2" name="Value">1000000000</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="6014326996535299" type="Function">
                                    <param id="0" name="Value">round(Function.Param(0)/1000000)&amp;&quot;M&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="6439979393534417">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="191370040713674" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">2</param>
                                    <param id="2" name="Value">1000000</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="1173555501558906" type="Function">
                                    <param id="0" name="Value">round(Function.Param(0)/1000)&amp;&quot;K&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="7140765658291172">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="402741419438637" type="Function">
                                    <param id="0" name="Index">0</param>
                                    <param id="1" name="Comparison">2</param>
                                    <param id="2" name="Value">1000</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="1" name="Set return value" sid="6390938784395698" type="Function">
                                    <param id="0" name="Value">Function.Param(0)</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <comment>Заполняет диалог торговли Dialog(NeedItem1,NeedCnt1,NeedItem2,NeedCnt2,NeedItem3,NeedCnt3,GiveItem1,GiveCnt1,Text)</comment>
                <event-block sid="346068501454555">
                    <conditions>
                        <condition id="0" name="On function" sid="935020698517250" type="Function">
                            <param id="0" name="Name">&quot;Dialog&quot;</param>
                        </condition>
                    </conditions>
                    <actions>
                        <action behavior="Sine" id="0" name="Set active" sid="855586372535787" type="FaseSprite">
                            <param id="0" name="State">1</param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="390821530342737">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="482396304368258" type="Function">
                                    <param id="0" name="Index">1</param>
                                    <param id="1" name="Comparison">0</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action behavior="Sine" id="0" name="Set active" sid="928862497325013" type="FaseSprite">
                                    <param id="0" name="State">0</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="475411045241771">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="114290537277346" type="Function">
                                    <param id="0" name="Index">1</param>
                                    <param id="1" name="Comparison">4</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="775483605314262" type="MobNeedSprite">
                                    <param id="0" name="Unique ID">6</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="173809117337747" type="GoldCntFont">
                                    <param id="0" name="Unique ID">19</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="4" name="Set animation" sid="468624053591095" type="MobNeedSprite">
                                    <param id="0" name="Animation">&quot;Item&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                                <action id="5" name="Set frame" sid="937059053975592" type="MobNeedSprite">
                                    <param id="0" name="Frame number">Function.Param(0)</param>
                                </action>
                                <action id="-15" name="Set visible" sid="929892138352243" type="MobNeedSprite">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                                <action id="0" name="Set text" sid="803262030163954" type="GoldCntFont">
                                    <param id="0" name="Text">Function.Param(1)&amp;&quot; / &quot;&amp;Function.Call(&quot;GetItemCnt&quot;,Function.Param(0))</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="251435877351032">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="604445777850643" type="System">
                                            <param id="0" name="First value">Function.Param(1)</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Second value">Function.Call(&quot;GetItemCnt&quot;,Function.Param(0))</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action behavior="Sine" id="0" name="Set active" sid="297647539214690" type="FaseSprite">
                                            <param id="0" name="State">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="288602902971853">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="964072343534337" type="Function">
                                    <param id="0" name="Index">3</param>
                                    <param id="1" name="Comparison">4</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="463163620295208" type="MobNeedSprite">
                                    <param id="0" name="Unique ID">12</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="509980131979041" type="GoldCntFont">
                                    <param id="0" name="Unique ID">19</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="4" name="Set animation" sid="227450590318490" type="MobNeedSprite">
                                    <param id="0" name="Animation">&quot;Item&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                                <action id="5" name="Set frame" sid="697399705132998" type="MobNeedSprite">
                                    <param id="0" name="Frame number">Function.Param(2)</param>
                                </action>
                                <action id="-15" name="Set visible" sid="458824710912646" type="MobNeedSprite">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                                <action id="0" name="Set text" sid="666565218676718" type="GoldCntFont">
                                    <param id="0" name="Text">GoldCntFont.Text&amp;newline&amp;Function.Param(3)&amp;&quot; / &quot;&amp;Function.Call(&quot;GetItemCnt&quot;,Function.Param(2))</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="139444377573443">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="219905529981823" type="System">
                                            <param id="0" name="First value">Function.Param(3)</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Second value">Function.Call(&quot;GetItemCnt&quot;,Function.Param(2))</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action behavior="Sine" id="0" name="Set active" sid="844474441353749" type="FaseSprite">
                                            <param id="0" name="State">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="713973174155952">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="582908915242491" type="Function">
                                    <param id="0" name="Index">5</param>
                                    <param id="1" name="Comparison">4</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="530900682531244" type="MobNeedSprite">
                                    <param id="0" name="Unique ID">34</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="763244088582147" type="GoldCntFont">
                                    <param id="0" name="Unique ID">19</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="4" name="Set animation" sid="424477937731869" type="MobNeedSprite">
                                    <param id="0" name="Animation">&quot;Item&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                                <action id="5" name="Set frame" sid="209579608150601" type="MobNeedSprite">
                                    <param id="0" name="Frame number">Function.Param(4)</param>
                                </action>
                                <action id="-15" name="Set visible" sid="956406890260350" type="MobNeedSprite">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                                <action id="0" name="Set text" sid="857346929200294" type="GoldCntFont">
                                    <param id="0" name="Text">GoldCntFont.Text&amp;newline&amp;Function.Param(5)&amp;&quot; / &quot;&amp;Function.Call(&quot;GetItemCnt&quot;,Function.Param(4))</param>
                                </action>
                            </actions>
                            <sub-events>
                                <event-block sid="493660015459185">
                                    <conditions>
                                        <condition id="-8" name="Compare two values" sid="699491345279019" type="System">
                                            <param id="0" name="First value">Function.Param(5)</param>
                                            <param id="1" name="Comparison">4</param>
                                            <param id="2" name="Second value">Function.Call(&quot;GetItemCnt&quot;,Function.Param(4))</param>
                                        </condition>
                                    </conditions>
                                    <actions>
                                        <action behavior="Sine" id="0" name="Set active" sid="774398007494515" type="FaseSprite">
                                            <param id="0" name="State">0</param>
                                        </action>
                                    </actions>
                                </event-block>
                            </sub-events>
                        </event-block>
                        <event-block sid="619387707312917">
                            <conditions>
                                <condition id="1" name="Compare parameter" sid="643258005475729" type="Function">
                                    <param id="0" name="Index">7</param>
                                    <param id="1" name="Comparison">4</param>
                                    <param id="2" name="Value">0</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="815548417474933" type="MobNeedSprite">
                                    <param id="0" name="Unique ID">36</param>
                                </condition>
                                <condition id="-14" name="Pick by unique ID" sid="674139935120882" type="GoldCntFont">
                                    <param id="0" name="Unique ID">23</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="4" name="Set animation" sid="999094241228558" type="MobNeedSprite">
                                    <param id="0" name="Animation">&quot;Item&quot;</param>
                                    <param id="1" name="From">1</param>
                                </action>
                                <action id="5" name="Set frame" sid="928894027778654" type="MobNeedSprite">
                                    <param id="0" name="Frame number">Function.Param(6)</param>
                                </action>
                                <action id="-15" name="Set visible" sid="206082749858775" type="MobNeedSprite">
                                    <param id="0" name="Visibility">1</param>
                                </action>
                                <action id="0" name="Set text" sid="195025377930110" type="GoldCntFont">
                                    <param id="0" name="Text">Function.Param(7)</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <event-group description="" sid="8763103580389422" title="StartLevel">
            <sub-events>
                <event-block sid="5690787321159929">
                    <conditions>
                        <condition id="-2" name="On start of layout" sid="5438276718971999" type="System" />
                    </conditions>
                    <actions>
                        <action id="0" name="Call function" sid="9428992961660803" type="Function">
                            <param id="0" name="Name">&quot;ResetTrade&quot;</param>
                            <param id="1" name="Parameter {n}"></param>
                        </action>
                        <action id="0" name="Call function" sid="529576054026849" type="Function">
                            <param id="0" name="Name">&quot;AddItemCnt&quot;</param>
                            <param id="1" name="Parameter {n}">0{###}0</param>
                        </action>
                        <action id="-9" name="Destroy" sid="733128138202971" type="LabPlase" />
                        <action id="0" name="Set text" sid="401207666367255" type="GoldCntFont">
                            <param id="0" name="Text">&quot;&quot;</param>
                        </action>
                    </actions>
                    <sub-events>
                        <event-block sid="3985507068637767">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="3573609959322221" type="GoldCntFont">
                                    <param id="0" name="Unique ID">29</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="3274328026844633" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;Что бы закрыть, нажми на это сообщение&quot;&amp;newline&amp;&quot;Клик по яблоку, растению на земле - собрать. Клик по растению в инвентаре слева - посадить. Клик по НПС - узнать чего хочет. Клик по аватару НПС - согласиться с ним.&quot;</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="752304247402676">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="679675938486937" type="GoldCntFont">
                                    <param id="0" name="Unique ID">16</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="900534797647854" type="GoldCntFont">
                                    <param id="0" name="Text">AppleCntVar&amp;newline&amp;RiseCntVar&amp;newline&amp;CarrotCntVar&amp;newline&amp;MashCntVar</param>
                                </action>
                            </actions>
                        </event-block>
                        <event-block sid="872922202400502">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="543623961742667" type="GoldCntFont">
                                    <param id="0" name="Unique ID">17</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="206620466235011" type="GoldCntFont">
                                    <param id="0" name="Text">Function.Call(&quot;GoldToText&quot;,GoldCnt)</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
        <variable constant="0" name="HelpCnt" sid="1341428428411741" static="0" type="number">0</variable>
        <event-group description="Обучалка" sid="2164813101842231" title="Help">
            <sub-events>
                <event-block sid="1891298188095264">
                    <conditions>
                        <condition id="-14" name="Compare variable" sid="7200368816779774" type="System">
                            <param id="0" name="Variable">HelpCnt</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">0</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="5928890482059871">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="3587396158531631" type="GoldCntFont">
                                    <param id="0" name="Unique ID">29</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="2291196076060499" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;Кликни по яблоку, чтобы собрать&quot;</param>
                                </action>
                                <action id="-10" name="Add to" sid="3265138055807767" type="System">
                                    <param id="0" name="Variable">HelpCnt</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="270544819223905">
                    <conditions>
                        <condition id="-14" name="Compare variable" sid="6572485017177998" type="System">
                            <param id="0" name="Variable">HelpCnt</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">1</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="8886967774997135" type="System">
                            <param id="0" name="Variable">AppleCntVar</param>
                            <param id="1" name="Comparison">4</param>
                            <param id="2" name="Value">2</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="7432357307344374">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="3334528207076697" type="GoldCntFont">
                                    <param id="0" name="Unique ID">29</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="6281328282883329" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;Теперь по траве на островке&quot;</param>
                                </action>
                                <action id="-10" name="Add to" sid="7152629023017434" type="System">
                                    <param id="0" name="Variable">HelpCnt</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="8270584596778175">
                    <conditions>
                        <condition id="-14" name="Compare variable" sid="888039752040048" type="System">
                            <param id="0" name="Variable">HelpCnt</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">2</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="1505481793410562" type="System">
                            <param id="0" name="Variable">RiseCntVar</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">3</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="1264294640261751">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="9451279023072902" type="GoldCntFont">
                                    <param id="0" name="Unique ID">29</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="640258418248246" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;Кликни по иконке травы слева экрана, чтобы посадить.&quot;</param>
                                </action>
                                <action id="-10" name="Add to" sid="838892583930391" type="System">
                                    <param id="0" name="Variable">HelpCnt</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="8040762148595007">
                    <conditions>
                        <condition id="-14" name="Compare variable" sid="2914604623370274" type="System">
                            <param id="0" name="Variable">HelpCnt</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">3</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="8273924413318257" type="System">
                            <param id="0" name="Variable">RiseCntVar</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">2</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="9566196073870381">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="2512124334497191" type="GoldCntFont">
                                    <param id="0" name="Unique ID">29</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="1215554616942198" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;Кликни по НПС, чтобы узнать что она хочет.&quot;</param>
                                </action>
                                <action id="-10" name="Add to" sid="275227661576708" type="System">
                                    <param id="0" name="Variable">HelpCnt</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="3811872698963323">
                    <conditions>
                        <condition id="-14" name="Compare variable" sid="5707857229878376" type="System">
                            <param id="0" name="Variable">HelpCnt</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">4</param>
                        </condition>
                        <condition id="2" name="Is playing" sid="7997533723834792" type="FaseSprite">
                            <param id="0" name="Animation">&quot;Default&quot;</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="6153973001703456">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="1899418265673398" type="GoldCntFont">
                                    <param id="0" name="Unique ID">29</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="7520837229813717" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;Кликни по НПС, чтобы узнать что она хочет. Собери что она хочет.&quot;</param>
                                </action>
                                <action id="-10" name="Add to" sid="8177443226740251" type="System">
                                    <param id="0" name="Variable">HelpCnt</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="3010097683129395">
                    <conditions>
                        <condition id="-14" name="Compare variable" sid="2163738488506929" type="System">
                            <param id="0" name="Variable">HelpCnt</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">5</param>
                        </condition>
                        <condition behavior="Sine" id="0" name="Is active" sid="8688379524802004" type="FaseSprite" />
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="1984478206045579">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="314073854345108" type="GoldCntFont">
                                    <param id="0" name="Unique ID">29</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="904943995417963" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;Кликни по аватару, чтобы согласится со сделкой.&quot;</param>
                                </action>
                                <action id="-10" name="Add to" sid="7862299016095209" type="System">
                                    <param id="0" name="Variable">HelpCnt</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
                <event-block sid="1149197316503656">
                    <conditions>
                        <condition id="-14" name="Compare variable" sid="3954793613012283" type="System">
                            <param id="0" name="Variable">HelpCnt</param>
                            <param id="1" name="Comparison">0</param>
                            <param id="2" name="Value">6</param>
                        </condition>
                        <condition id="-14" name="Compare variable" sid="1228933403989723" type="System">
                            <param id="0" name="Variable">GoldCnt</param>
                            <param id="1" name="Comparison">4</param>
                            <param id="2" name="Value">0</param>
                        </condition>
                    </conditions>
                    <actions />
                    <sub-events>
                        <event-block sid="7778036261836594">
                            <conditions>
                                <condition id="-14" name="Pick by unique ID" sid="9999082719211808" type="GoldCntFont">
                                    <param id="0" name="Unique ID">29</param>
                                </condition>
                            </conditions>
                            <actions>
                                <action id="0" name="Set text" sid="3514033700930106" type="GoldCntFont">
                                    <param id="0" name="Text">&quot;Великая оранжевая бутылка победы - твоя цель!!!&quot;</param>
                                </action>
                                <action id="-16" name="Wait" sid="6190565444763591" type="System">
                                    <param id="0" name="Seconds">5</param>
                                </action>
                                <action id="-10" name="Add to" sid="7026872225429335" type="System">
                                    <param id="0" name="Variable">HelpCnt</param>
                                    <param id="1" name="Value">1</param>
                                </action>
                                <action id="-15" name="Set visible" sid="6619869501473406" type="GoldCntFont">
                                    <param id="0" name="Visibility">0</param>
                                </action>
                                <action id="-12" name="Set group active" sid="3308684329018221" type="System">
                                    <param id="0" name="Group name">&quot;Help&quot;</param>
                                    <param id="1" name="State">0</param>
                                </action>
                            </actions>
                        </event-block>
                    </sub-events>
                </event-block>
            </sub-events>
        </event-group>
    </events>
</c2eventsheet>
