<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="getBool">
            <string id="id">upgradebase1</string>
            <string id="value" values="yesno">no</string>
            <sequence>
                <string id="Is blocking">no</string>
                <action id="upgradeBase" />
                <action id="setBool">
                    <string id="id">upgradebase1</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </sequence>
        </condition>
        <condition id="getBool">
            <string id="id">tekst giant</string>
            <string id="value" values="yesno">no</string>
            <condition id="unitCount">
                <string id="unitType" values="enemies">AztecGiant</string>
                <string id="logic" values="unitcountlogic">equals</string>
                <string id="ownUnits" values="yesno">yes</string>
                <int id="unitCount">1</int>
                <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="showText">
                        <string id="Text identifier">lvl106b0_hammerman what</string>
                        <float id="Duration">4.00</float>
                        <string id="Texture">portrait_chief</string>
                        <string id="Location" values="textLocation">left</string>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl106b1_hammerman help</string>
                        <float id="Duration">3.00</float>
                        <string id="Texture">portrait_stormhammer</string>
                        <string id="Location" values="textLocation">left</string>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl106b2_giant grrr</string>
                        <float id="Duration">2.00</float>
                        <string id="Texture">portrait_giant</string>
                        <string id="Location" values="textLocation">right</string>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl106b3_king meet</string>
                        <float id="Duration">7.00</float>
                        <string id="Texture">portrait_aztecnemesis</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">3.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">lvl106b4_chief away</string>
                        <float id="Duration">8.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="setBool">
                        <string id="id">tekst giant</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">firstkillgiant</string>
            <string id="value" values="yesno">no</string>
            <condition id="timePassed">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">123.00</float>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">AztecGiant</string>
                    <string id="logic" values="unitcountlogic">lesser</string>
                    <string id="ownUnits" values="yesno">yes</string>
                    <int id="unitCount">1</int>
                    <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="showText">
                            <string id="Text identifier">lvl106c1_peppa kill</string>
                            <float id="Duration">5.00</float>
                            <string id="Texture">portrait_aztecnemesis</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">3.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">lvl106c2_peppa jaguar</string>
                            <float id="Duration">3.00</float>
                            <string id="Texture">portrait_aztecnemesis</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">1.00</float>
                        </action>
                        <action id="createUnit">
                            <string id="unitType" values="enemies">AztecMelee</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="createUnit">
                            <string id="unitType" values="enemies">AztecMelee</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="createUnit">
                            <string id="unitType" values="enemies">AztecMelee</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="createUnit">
                            <string id="unitType" values="enemies">AztecMelee</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="showText">
                            <string id="Text identifier">lvl106c3_jaguar miauw</string>
                            <float id="Duration">2.00</float>
                            <string id="Texture">portrait_jaguarwarrior</string>
                            <string id="Location" values="textLocation">right</string>
                        </action>
                        <action id="setBool">
                            <string id="id">firstkillgiant</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">freehammer</string>
            <string id="value" values="yesno">no</string>
            <condition id="buttonHasBeenClicked">
                <string id="Button" values="buttons">VikingHammer</string>
                <string id="Team to check" values="teams">ownTeam</string>
                <string id="HasBeenClicked" values="yesno">yes</string>
                <action id="setBool">
                    <string id="id">freehammer</string>
                    <string id="value" values="yesno">yes</string>
                </action>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">freehammer</string>
            <string id="value" values="yesno">no</string>
            <condition id="unitNear">
                <string id="unitType" values="enemies" multiselect="true">VikingMelee;;VikingRanged;;VikingWorker;;</string>
                <string id="rangeType" values="offsetsFromBase">percentual</string>
                <float id="range">70.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">-19.00</float>
                        <float id="Scrolling duration">1.50</float>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl106a1_hammerman thanks</string>
                        <float id="Duration">2.00</float>
                        <string id="Texture">portrait_stormhammer</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">VikingRage</string>
                        <string id="Team" values="teams">enemyTeam</string>
                        <string id="Enabled" values="yesno">yes</string>
                    </action>
                    <action id="setButtonEnabled">
                        <string id="Button" values="buttons">VikingHammer</string>
                        <string id="Team" values="teams">enemyTeam</string>
                        <string id="Enabled" values="yesno">yes</string>
                    </action>
                    <action id="setButtonHighlighted">
                        <string id="Button" values="buttons">VikingHammer</string>
                        <string id="Team" values="teams">enemyTeam</string>
                        <string id="Highlighted" values="yesno">yes</string>
                    </action>
                    <action id="setButtonHighlighted">
                        <string id="Button" values="buttons">VikingRage</string>
                        <string id="Team" values="teams">enemyTeam</string>
                        <string id="Highlighted" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">freehammer</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
        </condition>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">3.00</float>
            <condition id="unitCount">
                <string id="unitType" values="enemies">AztecWorker</string>
                <string id="logic" values="unitcountlogic">lesser</string>
                <string id="ownUnits" values="yesno">yes</string>
                <int id="unitCount">8</int>
                <condition id="getBool">
                    <string id="id">p1</string>
                    <string id="value" values="yesno">yes</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AztecWorker</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>
            <condition id="timePassed">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">20.00</float>
                <condition id="unitNear">
                    <string id="unitType" values="enemies" multiselect="true">VikingMelee;;VikingRanged;;</string>
                    <string id="rangeType" values="offsetsFromBase">percentual</string>
                    <float id="range">65.00</float>
                    <string id="ownUnits" values="yesno">no</string>
                    <condition id="getBool">
                        <string id="id">p1</string>
                        <string id="value" values="yesno">no</string>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AztecCagetrap</string>
                            <string id="unitType" values="enemies">ANY</string>
                            <string id="target" values="targets">BackMilitaryUnit</string>
                            <string id="ownUnits" values="yesno">no</string>
                            <string id="cheat" values="yesno">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                            <string id="ignoreFogOfWar" values="yesno">yes</string>
                        </action>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">90.00</float>
            <action id="setBool">
                <string id="id">p3</string>
                <string id="value" values="yesno">yes</string>
            </action>
            <condition id="getBool">
                <string id="id">p4</string>
                <string id="value" values="yesno">no</string>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">AztecGiant</string>
                    <string id="logic" values="unitcountlogic">lesser</string>
                    <string id="ownUnits" values="yesno">yes</string>
                    <int id="unitCount">1</int>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="createUnit">
                            <string id="unitType" values="enemies">AztecGiant</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="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">90.00</float>
                        </action>
                    </sequence>
                </condition>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AztecMelee</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>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">15.00</float>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AztecMelee</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>
                </sequence>
                <sequence>
                    <string id="Is blocking">no</string>
                    <action id="useAbility">
                        <string id="abilityType" values="abilities">AztecPoisonCloud</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">no</string>
                        <string id="ignoreCooldown" values="yesno">no</string>
                        <string id="ignoreFogOfWar" values="yesno">yes</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">8.00</float>
                    </action>
                </sequence>
                <condition id="unitNear">
                    <string id="unitType" values="enemies" multiselect="true">VikingHammer;;</string>
                    <string id="rangeType" values="offsetsFromBase">percentual</string>
                    <float id="range">20.00</float>
                    <string id="ownUnits" values="yesno">no</string>
                    <condition id="unitCount">
                        <string id="unitType" values="enemies">AztecGiant</string>
                        <string id="logic" values="unitcountlogic">lesser</string>
                        <string id="ownUnits" values="yesno">yes</string>
                        <int id="unitCount">1</int>
                        <sequence>
                            <string id="Is blocking">no</string>
                            <action id="createUnit">
                                <string id="unitType" values="enemies">AztecGiant</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>
                            <action id="wait">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">50.00</float>
                            </action>
                        </sequence>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">60.00</float>
            <action id="setBool">
                <string id="id">p2</string>
                <string id="value" values="yesno">yes</string>
            </action>
            <condition id="getBool">
                <string id="id">p3</string>
                <string id="value" values="yesno">no</string>
                <condition id="timePassed">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">90.00</float>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="createUnit">
                            <string id="unitType" values="enemies">AztecMelee</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>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">5.00</float>
                        </action>
                    </sequence>
                    <condition id="unitNear">
                        <string id="unitType" values="enemies" multiselect="true">VikingMelee;;VikingRanged;;</string>
                        <string id="rangeType" values="offsetsFromBase">percentual</string>
                        <float id="range">65.00</float>
                        <string id="ownUnits" values="yesno">no</string>
                        <sequence>
                            <string id="Is blocking">no</string>
                            <action id="useAbility">
                                <string id="abilityType" values="abilities">AztecCagetrap</string>
                                <string id="unitType" values="enemies">ANY</string>
                                <string id="target" values="targets">BackMilitaryUnit</string>
                                <string id="ownUnits" values="yesno">no</string>
                                <string id="cheat" values="yesno">no</string>
                                <string id="ignoreCooldown" values="yesno">no</string>
                                <string id="ignoreFogOfWar" values="yesno">yes</string>
                            </action>
                            <action id="wait">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">8.00</float>
                            </action>
                        </sequence>
                    </condition>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">40.00</float>
            <action id="setBool">
                <string id="id">p1</string>
                <string id="value" values="yesno">yes</string>
            </action>
            <condition id="getBool">
                <string id="id">p2</string>
                <string id="value" values="yesno">no</string>
                <condition id="timePassed">
                    <string id="timeunit" values="timeunits">seconds</string>
                    <float id="time">90.00</float>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="createUnit">
                            <string id="unitType" values="enemies">AztecMelee</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>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">5.00</float>
                        </action>
                    </sequence>
                </condition>
                <condition id="unitNear">
                    <string id="unitType" values="enemies" multiselect="true">VikingMelee;;VikingRanged;;</string>
                    <string id="rangeType" values="offsetsFromBase">percentual</string>
                    <float id="range">65.00</float>
                    <string id="ownUnits" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="useAbility">
                            <string id="abilityType" values="abilities">AztecCagetrap</string>
                            <string id="unitType" values="enemies">ANY</string>
                            <string id="target" values="targets">BackMilitaryUnit</string>
                            <string id="ownUnits" values="yesno">no</string>
                            <string id="cheat" values="yesno">no</string>
                            <string id="ignoreCooldown" values="yesno">no</string>
                            <string id="ignoreFogOfWar" values="yesno">yes</string>
                        </action>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">8.00</float>
                        </action>
                    </sequence>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">15.00</float>
            <action id="setBool">
                <string id="id">trappeh</string>
                <string id="value" values="yesno">yes</string>
            </action>
        </condition>
        <condition id="unitCount">
            <string id="unitType" values="enemies">AztecWorker</string>
            <string id="logic" values="unitcountlogic">lesser</string>
            <string id="ownUnits" values="yesno">yes</string>
            <int id="unitCount">20</int>
            <action id="createUnit">
                <string id="unitType" values="enemies">AztecWorker</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="unitCount">
            <string id="unitType" values="enemies">VikingHammer</string>
            <string id="logic" values="unitcountlogic">lesser_equals</string>
            <string id="ownUnits" values="yesno">no</string>
            <int id="unitCount">0</int>
            <action id="setBool">
                <string id="id">attacked</string>
                <string id="value" values="yesno">no</string>
            </action>
        </condition>
    </behaviour>
</enemy>
