<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="getBool">
            <string id="id">reflect</string>
            <string id="value" values="yesno">no</string>
            <condition id="timePassed">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">40.00</float>
                <condition id="unitNear">
                    <string id="unitType" values="enemies" multiselect="true">VikingRanged;;</string>
                    <string id="rangeType" values="offsetsFromBase">percentual</string>
                    <float id="range">45.00</float>
                    <string id="ownUnits" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="showText">
                            <string id="Text identifier">lvl104e1_axethrower</string>
                            <float id="Duration">4.00</float>
                            <string id="Texture">portrait_axethrower</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="setBool">
                            <string id="id">reflect</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">notice</string>
            <string id="value" values="yesno">no</string>
            <condition id="unitNear">
                <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                <string id="rangeType" values="offsetsFromBase">percentual</string>
                <float id="range">70.00</float>
                <string id="ownUnits" values="yesno">no</string>
                <action id="setBool">
                    <string id="id">notice</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">notice</string>
            <string id="value" values="yesno">no</string>
            <condition id="timePassed">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">40.00</float>
                <action id="setBool">
                    <string id="id">notice</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">firsttext</string>
            <string id="value" values="yesno">no</string>
            <sequence>
                <string id="Is blocking">yes</string>
                <action id="setButtonEnabled">
                    <string id="Button" values="buttons">VikingMana2</string>
                    <string id="Team" values="teams">enemyTeam</string>
                    <string id="Enabled" values="yesno">no</string>
                </action>
                <action id="setFreezeGame">
                    <string id="Freeze game" values="yesno">yes</string>
                    <string id="Freeze input" values="yesno">yes</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl104a0_asian what</string>
                    <float id="Duration">5.00</float>
                    <string id="Texture">portrait_asiannemesis</string>
                    <string id="Location" values="textLocation">right</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl104a00_chief gold</string>
                    <float id="Duration">5.00</float>
                    <string id="Texture">portrait_chief</string>
                    <string id="Location" values="textLocation">left</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl104a000_asian no</string>
                    <float id="Duration">5.00</float>
                    <string id="Texture">portrait_asiannemesis</string>
                    <string id="Location" values="textLocation">right</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl104a1_advisor supply</string>
                    <float id="Duration">5.00</float>
                    <string id="Texture">portrait_berserker</string>
                    <string id="Location" values="textLocation">right</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl104a2_chief getfast</string>
                    <float id="Duration">5.00</float>
                    <string id="Texture">portrait_chief</string>
                    <string id="Location" values="textLocation">left</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl104a3_advisor destroy</string>
                    <float id="Duration">10.00</float>
                    <string id="Texture">portrait_berserker</string>
                    <string id="Location" values="textLocation">right</string>
                </action>
                <action id="showMission">
                    <string id="Text identifier">lvl104obj</string>
                </action>
                <action id="setFreezeGame">
                    <string id="Freeze game" values="yesno">no</string>
                    <string id="Freeze input" values="yesno">no</string>
                </action>
                <action id="wait">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">10.00</float>
                </action>
                <action id="setFreezeGame">
                    <string id="Freeze game" values="yesno">yes</string>
                    <string id="Freeze input" values="yesno">yes</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl104a4_chief mana</string>
                    <float id="Duration">0.00</float>
                    <string id="Texture">portrait_chief</string>
                    <string id="Location" values="textLocation">left</string>
                </action>
                <action id="setFreezeGame">
                    <string id="Freeze game" values="yesno">no</string>
                    <string id="Freeze input" values="yesno">no</string>
                </action>
                <action id="setButtonEnabled">
                    <string id="Button" values="buttons">VikingMana2</string>
                    <string id="Team" values="teams">enemyTeam</string>
                    <string id="Enabled" values="yesno">yes</string>
                </action>
                <action id="setBool">
                    <string id="id">firsttext</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </sequence>
        </condition>
        <condition id="getBool">
            <string id="id">workerbuild</string>
            <string id="value" values="yesno">no</string>
            <condition id="unitCount">
                <string id="unitType" values="enemies">AsianWorker</string>
                <string id="logic" values="unitcountlogic">lesser</string>
                <string id="ownUnits" values="yesno">yes</string>
                <int id="unitCount">2</int>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianWorker</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                    <action id="setBool">
                        <string id="id">workerbuild</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">monkey</string>
            <string id="value" values="yesno">no</string>
            <condition id="unitNear">
                <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                <string id="rangeType" values="offsetsFromBase">percentual</string>
                <float id="range">35.00</float>
                <string id="ownUnits" values="yesno">no</string>
                <condition id="getBool">
                    <string id="id">monkeytalk</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="unitNear">
                        <string id="unitType" values="enemies" multiselect="true">VikingMelee;;</string>
                        <string id="rangeType" values="offsetsFromBase">percentual</string>
                        <float id="range">35.00</float>
                        <string id="ownUnits" values="yesno">no</string>
                        <sequence>
                            <string id="Is blocking">yes</string>
                            <action id="setFreezeGame">
                                <string id="Freeze game" values="yesno">yes</string>
                                <string id="Freeze input" values="yesno">yes</string>
                            </action>
                            <action id="moveCamera">
                                <float id="Target position">10.00</float>
                                <float id="Scrolling duration">1.50</float>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc0_soldier crates</string>
                                <float id="Duration">0.00</float>
                                <string id="Texture">portrait_berserker</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc1_asianchief steal</string>
                                <float id="Duration">3.00</float>
                                <string id="Texture">portrait_asiannemesis</string>
                                <string id="Location" values="textLocation">right</string>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc2_beserker cute</string>
                                <float id="Duration">3.00</float>
                                <string id="Texture">portrait_berserker</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc3_monkey uhuh</string>
                                <float id="Duration">2.00</float>
                                <string id="Texture">portrait_monkeywarrior</string>
                                <string id="Location" values="textLocation">right</string>
                            </action>
                            <action id="setFreezeGame">
                                <string id="Freeze game" values="yesno">no</string>
                                <string id="Freeze input" values="yesno">no</string>
                            </action>
                            <action id="wait">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">15.00</float>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc5_chief getmoney</string>
                                <float id="Duration">4.00</float>
                                <string id="Texture">portrait_chief</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="setBool">
                                <string id="id">monkeytalk</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </sequence>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">monkeytalk</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="unitNear">
                        <string id="unitType" values="enemies" multiselect="true">VikingRanged;;</string>
                        <string id="rangeType" values="offsetsFromBase">percentual</string>
                        <float id="range">35.00</float>
                        <string id="ownUnits" values="yesno">no</string>
                        <sequence>
                            <string id="Is blocking">yes</string>
                            <action id="setFreezeGame">
                                <string id="Freeze game" values="yesno">yes</string>
                                <string id="Freeze input" values="yesno">yes</string>
                            </action>
                            <action id="moveCamera">
                                <float id="Target position">10.00</float>
                                <float id="Scrolling duration">1.50</float>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc0_soldier crates</string>
                                <float id="Duration">0.00</float>
                                <string id="Texture">portrait_axethrower</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc1_asianchief steal</string>
                                <float id="Duration">3.00</float>
                                <string id="Texture">portrait_asiannemesis</string>
                                <string id="Location" values="textLocation">right</string>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc2_beserker cute</string>
                                <float id="Duration">3.00</float>
                                <string id="Texture">portrait_axethrower</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl104bc3_monkey uhuh</string>
                                <float id="Duration">2.00</float>
                                <string id="Texture">portrait_monkeywarrior</string>
                                <string id="Location" values="textLocation">right</string>
                            </action>
                            <action id="setFreezeGame">
                                <string id="Freeze game" values="yesno">no</string>
                                <string id="Freeze input" values="yesno">no</string>
                            </action>
                            <action id="setBool">
                                <string id="id">monkeytalk</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                        </sequence>
                    </condition>
                </condition>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianNinja</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">1.00</float>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianNinja</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">1.00</float>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianNinja</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">15.00</float>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl104bc5_chief getmoney</string>
                        <float id="Duration">4.00</float>
                        <string id="Texture">portrait_chief</string>
                        <string id="Location" values="textLocation">left</string>
                    </action>
                    <action id="setBool">
                        <string id="id">monkey</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">notice</string>
            <string id="value" values="yesno">yes</string>
            <condition id="getBool">
                <string id="id">here</string>
                <string id="value" values="yesno">no</string>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="showText">
                        <string id="Text identifier">lvl104b1_asianchief youhere</string>
                        <float id="Duration">5.00</float>
                        <string id="Texture">portrait_asiannemesis</string>
                        <string id="Location" values="textLocation">right</string>
                    </action>
                    <action id="setBool">
                        <string id="id">here</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
            <condition id="unitNear">
                <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                <string id="rangeType" values="offsetsFromBase">percentual</string>
                <float id="range">15.00</float>
                <string id="ownUnits" values="yesno">no</string>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianMelee</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">25.00</float>
                    </action>
                </sequence>
            </condition>
            <condition id="unitCount">
                <string id="unitType" values="enemies">AsianMelee</string>
                <string id="logic" values="unitcountlogic">lesser</string>
                <string id="ownUnits" values="yesno">yes</string>
                <int id="unitCount">2</int>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">10.00</float>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianMelee</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">no</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                </sequence>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">5.00</float>
                    </action>
                    <action id="useAbility">
                        <string id="abilityType" values="abilities">AsianArrowRain</string>
                        <string id="unitType" values="enemies">ANY</string>
                        <string id="target" values="targets">FrontUnit</string>
                        <string id="ownUnits" values="yesno">no</string>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">yes</string>
                        <string id="ignoreFogOfWar" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">20.00</float>
                    </action>
                </sequence>
                <condition id="getBool">
                    <string id="id">arrowsdak</string>
                    <string id="value" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">10.00</float>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl104f1_king arrows</string>
                            <float id="Duration">4.00</float>
                            <string id="Texture">portrait_asiannemesis</string>
                            <string id="Location" values="textLocation">right</string>
                        </action>
                        <action id="setBool">
                            <string id="id">arrowsdak</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
                <condition id="timer">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">10.00</float>
                    <condition id="random">
                        <int id="amount">2</int>
                        <action id="createUnit">
                            <string id="unitType" values="enemies">AsianMelee</string>
                            <string id="offsetType" values="offsetsFromBase">percentual</string>
                            <float id="offset">0.00</float>
                            <string id="cheat" values="yesno">no</string>
                            <string id="ignoreCooldown" values="yesno">yes</string>
                        </action>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">5.00</float>
                        </action>
                        <action id="createUnit">
                            <string id="unitType" values="enemies">AsianMelee</string>
                            <string id="offsetType" values="offsetsFromBase">percentual</string>
                            <float id="offset">0.00</float>
                            <string id="cheat" values="yesno">yes</string>
                            <string id="ignoreCooldown" values="yesno">yes</string>
                        </action>
                    </condition>
                </condition>
            </condition>
            <condition id="unitCount">
                <string id="unitType" values="enemies">AsianWorker</string>
                <string id="logic" values="unitcountlogic">lesser</string>
                <string id="ownUnits" values="yesno">yes</string>
                <int id="unitCount">5</int>
                <action id="createUnit">
                    <string id="unitType" values="enemies">AsianWorker</string>
                    <string id="offsetType" values="offsetsFromBase">percentual</string>
                    <float id="offset">0.00</float>
                    <string id="cheat" values="yesno">no</string>
                    <string id="ignoreCooldown" values="yesno">no</string>
                </action>
            </condition>
            <condition id="getBool">
                <string id="id">monkey</string>
                <string id="value" values="yesno">yes</string>
                <condition id="timer">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">25.00</float>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AsianNinja</string>
                        <string id="offsetType" values="offsetsFromBase">percentual</string>
                        <float id="offset">0.00</float>
                        <string id="cheat" values="yesno">yes</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                    </action>
                </condition>
            </condition>
            <condition id="goldAmount">
                <string id="ownGoldAmount" values="yesno">no</string>
                <string id="logic" values="unitcountlogic">greater</string>
                <int id="amount">800</int>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="showText">
                        <string id="Text identifier">lvl104d1_chief almostenough</string>
                        <float id="Duration">3.00</float>
                        <string id="Texture">portrait_chief</string>
                        <string id="Location" values="textLocation">left</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">30.00</float>
                    </action>
                </sequence>
            </condition>
        </condition>
    </behaviour>
</enemy>
