#textdomain wesnoth-sotbe
[scenario]
    id=Clash_of_armies
    name= _ "Clash of Armies"
    map_data="{campaigns/Son_Of_The_Black_Eye/maps/Clash_Of_Armies.map}"
    turns=24

    {SECOND_WATCH}
    {DAWN}
    {MORNING}
    {AFTERNOON}
    {DUSK}
    {FIRST_WATCH}

    next_scenario=Giving_Some_Back
    {SCENARIO_MUSIC "loyalists.ogg"}

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Defend Prestim successfully for four days"
                condition=win
            [/objective]
            [objective]
                description= _ "Destruction of a tower of Prestim"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Kapou'e"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Grüü"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    [side]
        type=Orcish Leader
        description="Kapou'e"
        user_description= _ "Kapou'e"
        side=1
        canrecruit=yes
        controller=human
        recruit= Wolf Rider, Orcish Grunt, Troll Whelp, Orcish Archer
        team_name=Kapoue
        gold=100
        {BLACK_FLAG}
        [village]
            x=11
            y=1
        [/village]

        [village]
            x=10
            y=3
        [/village]

        [village]
            x=14
            y=1
        [/village]

        [village]
            x=12
            y=5
        [/village]

        [village]
            x=14
            y=4
        [/village]

        [village]
            x=15
            y=4
        [/village]

        [village]
            x=22
            y=1
        [/village]

        [village]
            x=24
            y=5
        [/village]

        [village]
            x=25
            y=2
        [/village]

        [village]
            x=26
            y=4
        [/village]

        [village]
            x=27
            y=5
        [/village]

        [village]
            x=28
            y=1
        [/village]
    [/side]

    [side]
        type=Elvish Champion
        description=Mkel
        user_description= _ "Mkel"
        side=2
        canrecruit=yes
        [ai]
            aggression=1.0
            recruitment_pattern=scout, scout, fighter, fighter, fighter, healer, archer
            grouping=no
            [target]
                type="Watch Tower"
                value=50
            [/target]
            recruitment_ignore_bad_combat=yes
            recruitment_ignore_bad_movement=yes
        [/ai]
        recruit=Elvish Captain, Elvish Fighter, Elvish Archer, Elvish Marksman, Elvish Druid, Elvish Scout
        team_name=vilains
        village_value=0.0
        leader_value=50.0
        {GOLD 200 200 250}
        {INCOME 15 30 45}
    [/side]

    [side]
        type=Dwarvish Steelclad
        description=Oumph
        user_description= _ "Oumph"
        side=3
        canrecruit=yes
        [ai]
            recruitment_pattern=scout, scout, scout, scout, fighter, mixed fighter, archer
            aggression=1.0
            villages_per_scout=10
            grouping=no
            [target]
                type="Watch Tower"
                value=50
            [/target]
            recruitment_ignore_bad_combat=yes
            recruitment_ignore_bad_movement=yes
        [/ai]
        village_value=0.0
        recruit=Dwarvish Fighter, Dwarvish Thunderer, Bandit, Gryphon Rider
        team_name=vilains
        {GOLD 200 250 300}
        {INCOME 15 30 45}
    [/side]

    [side]
        type=General
        description="Earl Lanbec'h"
        user_description= _ "Earl Lanbec'h"
        side=4
        canrecruit=yes
        grouping=no
        [ai]
            aggression=1.0
            recruitment_pattern=fighter, archer, mixed fighter
            [target]
                type="Watch Tower"
                value=50
            [/target]
            recruitment_ignore_bad_combat=yes
            recruitment_ignore_bad_movement=yes
        [/ai]
        leader_value=50.0
        village_value=0.0
        recruit=Swordsman, Red Mage, Pikeman, Heavy Infantryman, Fencer, Bowman
        team_name=vilains
        {GOLD 150 200 250}
        {INCOME 15 30 45}
    [/side]

    [side]
        type=Merman Warrior
        description=Plouf
        user_description= _ "Plouf"
        side=5
        canrecruit=no
        [ai]
            aggression=1.0
        [/ai]
        team_name=vilains
        no_leader=yes
    [/side]

    [story]
        [part]
            background=sotbe3.png
            show_title=yes
            {CROSS 318 378}
        [/part]
    [/story]

    [event]
        name=prestart
        {RECALL Grüü}
        {RECALL Inarix}
        {RECALL Plonk}
        {WATCH_TOWER 30 5 (Eastern Tower)}
        {WATCH_TOWER 10 4 (Western Tower)}
        {WATCH_TOWER 19 5 (Southern Tower)}
        [role]
            type=Orcish Warlord,Troll Warrior,Orcish Warrior,Saurian Ambusher,Troll,Orcish Grunt,Saurian Skirmisher,Troll Whelp
            role=cannonfodder
        [/role]
        [recall]
            role=cannonfodder
            x=19
            y=12
        [/recall]

        [role]
            role=cannonfodder2
            type=Orcish Crossbowman,Orcish Slayer,Orcish Archer,Orcish Assassin
        [/role]
        [recall]
            role=cannonfodder2
            x=20
            y=11
        [/recall]
    [/event]

    [event]
        name=start

        [message]
            role=cannonfodder
            message= _ "So here we are, and they are preparing to assault."
        [/message]

        [message]
            speaker="Grüü"
            message= _ "Prestim's walls are rock-hard, they'll waste themselves on them."
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "I'm not that sure. Every fortress has its own weakness. Prestim's walls are built on three towers. If one of them is destroyed, a breach will allow humans to enter Prestim... which would be the end for us."
        [/message]

        [message]
            role=cannonfodder
            message= _ "We've received messengers from the Council, saying that they are gathering tribes into the Great Horde."
        [/message]

        [message]
            speaker="Grüü"
            message= _ "Great! When do they arrive?"
        [/message]

        [message]
            role=cannonfodder
            message= _ "In four days minimum. I fear it will be too late."
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "I don't think so, there is still a way..."
        [/message]

        [message]
            role=cannonfodder
            message= _ "Which one?"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Most of their forces will cross the river by the ford where the bridge previously stood. If we can hold that ford, we might still have a chance."
        [/message]

        [message]
            role=cannonfodder
            message= _ "And if we fail?"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Then, they will assault Prestim at five versus one. We'll just have to do the best we can."
        [/message]

        [message]
            role=cannonfodder
            message= _ "Great."
        [/message]

        [message]
            speaker="narrator"
            message= _ "Then, the battle for Prestim began."
        [/message]
    [/event]

    [event]
        name=turn 2
        [unit]
            side=5
            type=Merman Warrior
            description=Plouf
            user_description= _ "Plouf"
            x=16
            y=12
        [/unit]
        {MERMAN 13 15 Soaf}
        {MERMAN 13 15 Glou}
        {MERMAN 13 15 Glorg}
        [message]
            speaker="Plouf"
            message= _ "We arrive to honor our alliance, Earl Lanbec'h."
        [/message]

        [message]
            description="Kapou'e"
            message= _ "Ahh shoot! They have mermen on their side."
        [/message]
    [/event]

    [event]
        name=turn 3
        {MERMAN 13 15 Leffe}
        {MERMAN 13 15 Kro}
        {MERMAN 13 15 Sezkat}
    [/event]

    [event]
        name=turn 4
        {MERMAN 13 15 Kir}
        {MERMAN 13 15 Pastis}
#ifdef NORMAL
        {MERMAN 13 15 Jidé}
#endif
#ifdef HARD
        {MERMAN 13 15 Jidé}
#endif
    [/event]

    [event]
        name=turn 5
        {MERMAN 13 15 Fisher}
        {MERMAN 13 15 Bunshmills}
#ifdef NORMAL
        {MERMAN 13 15 Despé}
#endif
#ifdef HARD
        {MERMAN 13 15 Despé}
#endif
    [/event]

    [event]
        name=turn 6
        {MERMAN 13 15 Fisher}
#ifdef NORMAL
        {MERMAN 13 15 Bunshmills}
        {MERMAN 13 15 Despé}
#endif
#ifdef HARD
        {MERMAN 13 15 Bunshmills}
        {MERMAN 13 15 Despé}
#endif
    [/event]

    [event]
        name=turn 9
        {MERMAN 13 15 Fisher}
#ifdef NORMAL
        {MERMAN 13 15 Bunshmills}
        {MERMAN 13 15 Despé}
#endif
#ifdef HARD
        {MERMAN 13 15 Bunshmills}
        {MERMAN 13 15 Despé}
#endif
    [/event]

    [event]
        name=turn 11
        {MERMAN 13 15 Fisher}
#ifdef NORMAL
        {MERMAN 13 15 Bunshmills}
        {MERMAN 13 15 Despé}
#endif
#ifdef HARD
        {MERMAN 13 15 Bunshmills}
        {MERMAN 13 15 Despé}
#endif
    [/event]

    [event]
        name=turn 12
        [unit]
            side=4
            type=Duelist
            description="J'rem"
            user_description= _ "J'rem"
            x=16
            y=12
        [/unit]
        [message]
            speaker="J'rem"
            message= _ "We arrive to honor our alliance, Earl Lanbec'h."
        [/message]
        [message]
            speaker="Earl Lanbec'h"
            message= _ "Reinforcements, at last. We don't have much time, the Orcish hordes are on their way. To the attack!"
        [/message]
    [/event]

    [event]
        name=time over

        {ORCISH_GRUNT 38 1}
        {ORCISH_GRUNT 38 1}
        {ORCISH_GRUNT 38 1}
        {ORCISH_ARCHER 38 1}
        {ORCISH_ARCHER 38 1}
        {ORCISH_ARCHER 38 1}
        {WOLF_RIDER 38 1}
        {WOLF_RIDER 38 1}
        {WOLF_RIDER 38 1}
        {WOLF_RIDER 38 1}
        {WOLF_RIDER 38 1}
        {ORCISH_SHAMAN 38 1 Pirk _"Pirk"}
        {OLD_ORCISH_SHAMAN 38 1 Gork _"Gork"}
        {NOVICE_ORCISH_SHAMAN 38 1 Vraurk _"Vraurk"}

        [message]
            speaker="Gork"
            message= _ "Here we are! Hold on Prestim, we arrive to push them to the river!"
        [/message]

        [message]
            speaker="Earl Lanbec'h"
            message= _ "They are too numerous now, RETREAT!"
        [/message]

        [kill]
            side=5
            animate=no
        [/kill]
        [kill]
            side=2
            animate=no
        [/kill]
        [kill]
            side=3
            animate=no
        [/kill]
        [kill]
            side=4
            animate=no
        [/kill]

        [message]
            speaker="Kapou'e"
            message= _ "The Great Horde at last! I was beginning to think they would never come."
        [/message]

        [message]
            speaker="Gork"
            message= _ "Your defense of Prestim was heroic, facing such opposition surely undermined the morale of humans. Now they are retreating to their fortresses and will not venture out anytime soon."
        [/message]

        [message]
            speaker="Pirk"
            message= _ "It is now time to show them who we are and to lead the Great Horde in pursuit. We will not rest until we destroy Earl Lanbec'h. Smite, stab, slay!"
        [/message]

        [endlevel]
            result=victory
            bonus=no
        [/endlevel]
    [/event]

    [event]
        name=die
        [filter]
            type=Watch Tower
        [/filter]
        [message]
            speaker="Kapou'e"
            message= _ "No! The walls of Prestim are destroyed, we are done!"
        [/message]
        {DEFEAT}
    [/event]

    [event]
        name=victory
        [kill]
            description=Eastern Tower
        [/kill]
        [kill]
            description=Western Tower
        [/kill]
        [kill]
            description=Southern Tower
        [/kill]

        [kill]
            description=Pirk
        [/kill]
        [kill]
            description=Vraurk
        [/kill]
        [kill]
            description=Gork
        [/kill]
    [/event]

    {@campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
[/scenario]
