<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="getBool">
            <string id="id">StartTextDone</string>
            <string id="value" values="yesno">no</string>
            <sequence>
                <string id="Is blocking">yes</string>
                <action id="setBool">
                    <string id="id">StartTextDone</string>
                    <string id="value" values="yesno">yes</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">lvl209a1_wizard vegetables</string>
                    <float id="Duration">0.00</float>
                    <string id="Texture">portrait_necromancer</string>
                    <string id="Location" values="textLocation">right</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl209a2_king destroyed</string>
                    <float id="Duration">0.00</float>
                    <string id="Texture">portrait_aztecking</string>
                    <string id="Location" values="textLocation">left</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl209a3_instakiller pride</string>
                    <float id="Duration">0.00</float>
                    <string id="Texture">portrait_asiannemesis</string>
                    <string id="Location" values="textLocation">right</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl209a4_king destroy</string>
                    <float id="Duration">0.00</float>
                    <string id="Texture">portrait_aztecking</string>
                    <string id="Location" values="textLocation">left</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl209a5_instakiller undefended</string>
                    <float id="Duration">0.00</float>
                    <string id="Texture">portrait_asiannemesis</string>
                    <string id="Location" values="textLocation">right</string>
                </action>
                <action id="showText">
                    <string id="Text identifier">lvl209a6_king riddles</string>
                    <float id="Duration">0.00</float>
                    <string id="Texture">portrait_aztecking</string>
                    <string id="Location" values="textLocation">left</string>
                </action>
                <action id="showMission">
                    <string id="Text identifier">lvl209obj</string>
                </action>
                <action id="setFreezeGame">
                    <string id="Freeze game" values="yesno">no</string>
                    <string id="Freeze input" values="yesno">no</string>
                </action>
            </sequence>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">230.00</float>
            <condition id="unitNear">
                <string id="unitType" values="enemies" multiselect="true">ANY;;</string>
                <string id="rangeType" values="offsetsFromBase">percentual</string>
                <float id="range">40.00</float>
                <string id="ownUnits" values="yesno">no</string>
                <condition id="getBool">
                    <string id="id">ReinforcementsDone</string>
                    <string id="value" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">yes</string>
                        <action id="setBool">
                            <string id="id">ReinforcementsDone</string>
                            <string id="value" values="yesno">yes</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">lvl209c1_king close</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_aztecking</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl209c2_chiefevil bibble</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_enemychiefmc</string>
                            <string id="Location" values="textLocation">right</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl209c3_king strange</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_aztecking</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl209c4_chiefevil help</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_enemychiefmc</string>
                            <string id="Location" values="textLocation">right</string>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl209c5_wizard summon</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_necromancer</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">DoReinforments</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">DoReinforments</string>
            <string id="value" values="yesno">yes</string>
            <condition id="counter">
                <string id="id">NumInforcements</string>
                <int id="count">5</int>
                <sequence>
                    <string id="Is blocking">yes</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">VikingHammer</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">VikingMelee</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">VikingRanged</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">VikingCatapult</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">3.00</float>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">VikingMelee</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">VikingMelee</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="incrementCounter">
                        <string id="id">NumInforcements</string>
                    </action>
                </sequence>
            </condition>
        </condition>
    </behaviour>
</enemy>
