<?xml version="1.0" ?>
<enemy>
    <behaviour>
        <condition id="timer">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">0.50</float>
            <condition id="buttonHasBeenClicked">
                <string id="Button" values="buttons">AsianRangedUpgrade</string>
                <string id="Team to check" values="teams">ownTeam</string>
                <string id="HasBeenClicked" values="yesno">yes</string>
                <action id="setButtonHighlighted">
                    <string id="Button" values="buttons">AsianRangedUpgrade</string>
                    <string id="Team" values="teams">ownTeam</string>
                    <string id="Highlighted" values="yesno">no</string>
                </action>
            </condition>
            <condition id="buttonHasBeenClicked">
                <string id="Button" values="buttons">AsianRanged</string>
                <string id="Team to check" values="teams">ownTeam</string>
                <string id="HasBeenClicked" values="yesno">yes</string>
                <condition id="getBool">
                    <string id="id">rockets</string>
                    <string id="value" values="yesno">no</string>
                    <sequence>
                        <string id="Is blocking">yes</string>
                        <action id="wait">
                            <string id="timeunit" values="timeunits">seconds</string>
                            <float id="time">1.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">lvl301d1_rocketeers</string>
                            <float id="Duration">7.00</float>
                            <string id="Texture">portrait_rocketeer</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">rockets</string>
                            <string id="value" values="yesno">yes</string>
                        </action>
                    </sequence>
                </condition>
            </condition>
        </condition>
        <condition id="timePassed">
            <string id="timeunit" values="timeunits">seconds</string>
            <float id="time">120.00</float>
            <condition id="getBool">
                <string id="id">reinforcements</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">lvl301b2_reinforcements</string>
                        <float id="Duration">7.00</float>
                        <string id="Texture">portrait_asianemperor</string>
                        <string id="Location" values="textLocation">left</string>
                    </action>
                    <action id="setButtonEnabled">
                        <string id="Button" values="buttons">AsianRangedUpgrade</string>
                        <string id="Team" values="teams">ownTeam</string>
                        <string id="Enabled" values="yesno">yes</string>
                    </action>
                    <action id="setButtonHighlighted">
                        <string id="Button" values="buttons">AsianRangedUpgrade</string>
                        <string id="Team" values="teams">ownTeam</string>
                        <string id="Highlighted" values="yesno">yes</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">reinforcements</string>
                        <string id="value" values="yesno">yes</string>
                    </action>
                </sequence>
            </condition>
        </condition>
        <condition id="getBool">
            <string id="id">start</string>
            <string id="value" values="yesno">no</string>
            <action id="setButtonEnabled">
                <string id="Button" values="buttons">AsianRangedUpgrade</string>
                <string id="Team" values="teams">ownTeam</string>
                <string id="Enabled" values="yesno">no</string>
            </action>
            <action id="setBool">
                <string id="id">start</string>
                <string id="value" values="yesno">yes</string>
            </action>
        </condition>
    </behaviour>
</enemy>
