<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="getBool">
            <string id="id">FirstBuilt</string>
            <string id="value" values="yesno">no</string>
            <action id="createUnit">
                <string id="unitType" values="enemies">AztecMelee</string>
                <string id="offsetType" values="offsetsFromBase">percentual</string>
                <float id="offset">100.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">90.00</float>
                <string id="cheat" values="yesno">yes</string>
                <string id="ignoreCooldown" values="yesno">yes</string>
            </action>
            <action id="setBool">
                <string id="id">FirstBuilt</string>
                <string id="value" values="yesno">yes</string>
            </action>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">8.00</float>
            <condition id="getBool">
                <string id="id">SecondUnit</string>
                <string id="value" values="yesno">no</string>
                <sequence>
                    <string id="Is blocking">yes</string>
                    <action id="setBool">
                        <string id="id">SecondUnit</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AztecRanged</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>
                </sequence>
            </condition>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">24.00</float>
                <condition id="getBool">
                    <string id="id">Text1Done</string>
                    <string id="value" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">yes</string>
                        <action id="setBool">
                            <string id="id">Text1Done</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">lvl203c1_wizard warning</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">lvl203c2_king poisonkill</string>
                            <float id="Duration">0.00</float>
                            <string id="Texture">portrait_aztecking</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>
                    </sequence>
                </condition>
                <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>
            </condition>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">72.00</float>
                <sequence>
                    <string id="Is blocking">yes</string>
                    <action id="createUnit">
                        <string id="unitType" values="enemies">AztecRanged</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>
                </sequence>
            </condition>
            <condition id="timer">
                <string id="timeunit" values="timeunits">seconds</string>
                <float id="time">96.00</float>
                <condition id="getBool">
                    <string id="id">FirstTimeGroup</string>
                    <string id="value" values="yesno">yes</string>
                    <condition id="getBool">
                        <string id="id">GroupTextDone</string>
                        <string id="value" values="yesno">no</string>
                        <sequence>
                            <string id="Is blocking">yes</string>
                            <action id="setBool">
                                <string id="id">GroupTextDone</string>
                                <string id="value" values="yesno">yes</string>
                            </action>
                            <action id="wait">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">2.00</float>
                            </action>
                            <action id="setBool">
                                <string id="id">FirstTimeGroup</string>
                                <string id="value" 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">lvl203d4_king minimap</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">lvl203d2_wizard groups</string>
                                <float id="Duration">0.00</float>
                                <string id="Texture">portrait_necromancer</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>
                        </sequence>
                    </condition>
                </condition>
                <condition id="getBool">
                    <string id="id">FirstTimeGroup</string>
                    <string id="value" values="yesno">no</string>
                    <action id="setBool">
                        <string id="id">FirstTimeGroup</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">GroupTextDone</string>
                        <string id="value" values="yesno">no</string>
                    </action>
                </condition>
                <action id="createUnit">
                    <string id="unitType" values="enemies">AztecRanged</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 id="random">
                <int id="amount">4</int>
                <action id="setTwoWay">
                    <int id="Index">0</int>
                    <string id="CountFromOwnBase" values="yesno">yes</string>
                    <string id="Type" values="twoWayChoices">switch</string>
                </action>
            </condition>
        </condition>
        <condition id="unitNear">
            <string id="unitType" values="enemies" multiselect="true">AztecRanged;;</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">TextBlowersDone</string>
                <string id="value" values="yesno">no</string>
                <sequence>
                    <string id="Is blocking">yes</string>
                    <action id="setBool">
                        <string id="id">TextBlowersDone</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">lvl203d3_king dartblowers</string>
                        <float id="Duration">0.00</float>
                        <string id="Texture">portrait_aztecking</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>
                </sequence>
            </condition>
        </condition>
    </behaviour>
</enemy>
