<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.20</float>
            <condition id="getBool">
                <string id="id">rockets</string>
                <string id="value" values="yesno">yes</string>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">AsianRanged</string>
                    <string id="logic" values="unitcountlogic">lesser_equals</string>
                    <string id="ownUnits" values="yesno">yes</string>
                    <int id="unitCount">4</int>
                    <condition id="unitCount">
                        <string id="unitType" values="enemies">AsianRanged</string>
                        <string id="logic" values="unitcountlogic">greater</string>
                        <string id="ownUnits" values="yesno">yes</string>
                        <int id="unitCount">0</int>
                        <sequence>
                            <string id="Is blocking">no</string>
                            <action id="showText">
                                <string id="Text identifier">lvl307c3_morerockets</string>
                                <float id="Duration">5.00</float>
                                <string id="Texture">portrait_footsoldier</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="wait">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">40.00</float>
                            </action>
                        </sequence>
                    </condition>
                </condition>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">AsianRanged</string>
                    <string id="logic" values="unitcountlogic">equals</string>
                    <string id="ownUnits" values="yesno">yes</string>
                    <int id="unitCount">5</int>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="showText">
                            <string id="Text identifier">lvl307c5_gettingthere</string>
                            <float id="Duration">6.00</float>
                            <string id="Texture">portrait_asianemperor</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">40.00</float>
                        </action>
                    </sequence>
                </condition>
                <condition id="unitCount">
                    <string id="unitType" values="enemies">AsianRanged</string>
                    <string id="logic" values="unitcountlogic">greater_equals</string>
                    <string id="ownUnits" values="yesno">yes</string>
                    <int id="unitCount">6</int>
                    <sequence>
                        <string id="Is blocking">no</string>
                        <action id="setBool">
                            <string id="id">rockets</string>
                            <string id="value" values="yesno">no</string>
                        </action>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">1.00</float>
                        </action>
                        <action id="showText">
                            <string id="Text identifier">lvl307c4_enoughrockets</string>
                            <float id="Duration">4.00</float>
                            <string id="Texture">portrait_rocketeer</string>
                            <string id="Location" values="textLocation">left</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
            <condition id="getBool">
                <string id="id">CINa</string>
                <string id="value" values="yesno">yes</string>
                <condition id="getBool">
                    <string id="id">CINb</string>
                    <string id="value" values="yesno">no</string>
                    <condition id="unitCount">
                        <string id="unitType" values="enemies">AsianRanged</string>
                        <string id="logic" values="unitcountlogic">lesser_equals</string>
                        <string id="ownUnits" values="yesno">yes</string>
                        <int id="unitCount">0</int>
                        <sequence>
                            <string id="Is blocking">no</string>
                            <action id="wait">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">1.50</float>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl307d1_rocketsdead</string>
                                <float id="Duration">6.00</float>
                                <string id="Texture">portrait_berserker</string>
                                <string id="Location" values="textLocation">right</string>
                            </action>
                            <action id="wait">
                                <string id="timeunit" values="timeunits">seconds</string>
                                <float id="time">30.00</float>
                            </action>
                            <action id="showText">
                                <string id="Text identifier">lvl307c2_artillery</string>
                                <float id="Duration">5.00</float>
                                <string id="Texture">portrait_rocketeer</string>
                                <string id="Location" values="textLocation">left</string>
                            </action>
                            <action id="createUnit">
                                <string id="unitType" values="enemies">AsianRanged</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">AsianRanged</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">AsianRanged</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">AsianRanged</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>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">90.00</float>
            <condition id="getBool">
                <string id="id">CINb</string>
                <string id="value" values="yesno">yes</string>
                <sequence>
                    <string id="Is blocking">yes</string>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">2.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="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">1.00</float>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl307c1_toomany</string>
                        <float id="Duration">5.00</float>
                        <string id="Texture">portrait_footsoldier</string>
                        <string id="Location" values="textLocation">left</string>
                    </action>
                    <action id="moveCamera">
                        <float id="Target position">-50.00</float>
                        <float id="Scrolling duration">2.00</float>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl307c2_artillery</string>
                        <float id="Duration">5.00</float>
                        <string id="Texture">portrait_footsoldier</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="createUnit">
                        <string id="unitType" values="enemies">AsianRanged</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">AsianRanged</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">AsianRanged</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="setBool">
                        <string id="id">CINb</string>
                        <string id="value" values="yesno">no</string>
                    </action>
                    <action id="wait">
                        <string id="timeunit" values="timeunits">seconds</string>
                        <float id="time">20.00</float>
                    </action>
                    <action id="setBool">
                        <string id="id">rockets</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.00</float>
            <condition id="getBool">
                <string id="id">CINa</string>
                <string id="value" 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="showText">
                        <string id="Text identifier">lvl307a1_start</string>
                        <float id="Duration">6.00</float>
                        <string id="Texture">portrait_asianemperor</string>
                        <string id="Location" values="textLocation">left</string>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl307a2_hissnowai</string>
                        <float id="Duration">6.00</float>
                        <string id="Texture">portrait_poekie</string>
                        <string id="Location" values="textLocation">right</string>
                    </action>
                    <action id="showText">
                        <string id="Text identifier">lvl307a3_fullscale</string>
                        <float id="Duration">8.00</float>
                        <string id="Texture">portrait_asianemperor</string>
                        <string id="Location" values="textLocation">left</string>
                    </action>
                    <action id="showMission">
                        <string id="Text identifier">lvl307obj</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">CINa</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                    <action id="setBool">
                        <string id="id">CINb</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
        </condition>
    </behaviour>
</enemy>
