#textdomain wesnoth-thot
[scenario]
    name=_"The Siege of Kal Kartha"
    id=10_The_Siege_of_Kal_Kartha
    next_scenario=11_The_Court_of_Karrag
    victory_when_enemies_defeated=yes
    map_data="{campaigns/The_Hammer_of_Thursagan/maps/10_The_Siege_of_Kal_Kartha.map}"
    {DEFAULT_SCHEDULE}
    turns=35    # BALANCE

    # The map should be thematically something like a reflection of the one
    # for "At The East Gate", but on a larger scale.  The player’s
    # encampment should be at the west edge.  Kal Kartha will be
    # represented by an underground keep (the West Gate) set into
    # high mountains at the east edge of the map.

    {SCENARIO_MUSIC "the_dangerous_symphony.ogg"}
    {EXTRA_SCENARIO_MUSIC "loyalists.ogg"}
    {EXTRA_SCENARIO_MUSIC "northerners.ogg"}

    [story]
        [part]
            show_title=yes
            {TO_THE_SIEGE_OF_KAL_KARTHA}
        [/part]
    [/story]

    # wmllint: directory spelling underlevels

    [side]
        type="Dwarvish Fighter"
        id="Aiglondur"
        name=_"Aiglondur"
        canrecruit=yes
        side="1"
        controller="human"
        team_name="goodguys"
        user_team_name=_"Alliance"
        {FLAG_VARIANT knalgan}
        fog="no"
        shroud="no"
        recruit="Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Guardsman, Dwarvish Scout"
        {GOLD 140 120 100}  # BALANCE
        {FLAG_VARIANT knalgan}
    [/side]

    [side]
        type="Dwarvish Steelclad"
        id="Dulcatulos"
        name=_"Dulcatulos"
        profile=portraits/dulcatulos.png
        canrecruit=yes
        side="2"
        controller="ai"
        team_name="goodguys"
        user_team_name=_"Alliance"
        fog="no"
        shroud="no"
        recruit="Dwarvish Fighter,Dwarvish Thunderer"
        [ai]
            {NO_SCOUTS}
            passive_leader=yes
            grouping=defensive
            caution=2.0
            recruitment_pattern=fighter,fighter,mixed fighter
            {ATTACK_DEPTH 4 5 5}
        [/ai]
        {GOLD 320 320 320}  # BALANCE
        {FLAG_VARIANT knalgan}
    [/side]

    {STARTING_VILLAGES 2 5}

    [side]
        type=Orcish Warlord
        id=Tan-Morgh
        name= _ "Tan-Morgh"
        profile=portraits/orcs/transparent/grunt-2.png
        side=3
        canrecruit=yes
#ifdef EASY
        recruit=Orcish Archer, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Spearman
#endif

#ifdef NORMAL
        recruit=Orcish Archer, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Pillager, Goblin Spearman
#endif

#ifdef HARD
        recruit=Orcish Archer, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Orcish Warrior, Goblin Knight, Goblin Pillager, Orcish Slayer, Goblin Spearman, Goblin Impaler
#endif

        team_name=orcs
        user_team_name=_"Orcs"
        [ai]
            {NO_SCOUTS}
            recruitment_ignore_bad_movement=yes
#ifndef HARD
            recruitment_pattern=scout,fighter,fighter,archer
#else
            recruitment_pattern=scout,fighter,fighter,mixed fighter,archer
#endif
            {ATTACK_DEPTH 4 5 5}
            [leader_goal]
                x,y=44,15   # wants to take the Kal Karthans' keep.
            [/leader_goal]
            [target]
                side=2      # wants to kill Kal Karthans
                value=4.0
            [/target]
        [/ai]
        [ai]
            time_of_day=dusk,first_watch,second_watch
            aggression=0.75
            caution=0.0
            grouping=no
        [/ai]
        {GOLD 160 200 240}  # BALANCE
        {FLAG_VARIANT ragged}
    [/side]

    [side]
        type=Orcish Warlord
        id=Tan-Garukh
        name= _ "Tan-Garukh"
        profile=portraits/orcs/transparent/grunt-2.png
        side=4
        canrecruit=yes
        recruit=Orcish Archer, Orcish Grunt, Wolf Rider, Orcish Crossbowman, Goblin Pillager, Goblin Spearman

        team_name=orcs
        user_team_name=_"Orcs"
        [ai]
            {NO_SCOUTS}
            recruitment_ignore_bad_movement=yes
            recruitment_pattern=scout,fighter,fighter,archer
            {ATTACK_DEPTH 4 5 5}
            [leader_goal]
                x,y=44,15   # wants to take the Kal Karthans' keep.
            [/leader_goal]
            [target]
                side=2      # wants to kill Kal Karthans
                value=4.0
            [/target]
        [/ai]
        [ai]
            time_of_day=dusk,first_watch,second_watch
            aggression=0.75
            caution=0.0
            grouping=no
        [/ai]
        {GOLD 160 200 240}  # BALANCE
        {FLAG_VARIANT ragged}
    [/side]

    [side]
        type=Orcish Warlord
        id="Tan-Wagran"
        name= _ "Tan-Wagran"
        profile=portraits/orcs/transparent/warlord.png
        side=5
        canrecruit=yes
        recruit=Orcish Archer, Orcish Grunt, Wolf Rider, Orcish Warrior, Goblin Spearman
        team_name=orcs
        user_team_name=_"Orcs"
        [ai]
            {NO_SCOUTS}
            recruitment_ignore_bad_movement=yes
            recruitment_pattern=scout,fighter,fighter,archer
            {ATTACK_DEPTH 4 5 5}
            [leader_goal]
                x,y=44,15   # wants to take the Kal Karthans' keep.
            [/leader_goal]
            [target]
                side=2      # wants to kill Kal Karthans
                value=4.0
            [/target]
        [/ai]
        [ai]
            time_of_day=dusk,first_watch,second_watch
            aggression=0.75
            caution=0.0
            grouping=no
        [/ai]
        {GOLD 160 200 240}  # BALANCE
        {FLAG_VARIANT ragged}
    [/side]

    {campaigns/The_Hammer_of_Thursagan/utils/herodeaths.cfg}

    {SET_RIGHTEOUS_FLAME_EVENT}

    [event]
        name="prestart"

        [recall]
            id="Angarthing"
        [/recall]

        [recall]
            id="Ratheln"
        [/recall]

        [recall]
            id="Darchas"
        [/recall]

        [recall]
            id="Lorinne"
        [/recall]

        [objectives]
            side="1"
            [objective]
                description=_"Defeat all enemies"
                condition="win"
            [/objective]
            [objective]
                description=_"Death of Aiglondur"
                condition="lose"
            [/objective]
            [objective]
                description=_"Death of Angarthing"
                condition="lose"
            [/objective]
            [objective]
                description=_"Death of West Gate commander"
                condition="lose"
            [/objective]

            {TURNS_RUN_OUT}

            [gold_carryover]
                bonus=yes
                carryover_percentage=40
            [/gold_carryover]
        [/objectives]
    [/event]

    [event]
        name="start"
        {CONDITIONAL_MAGE_RECRUITING}

        [message]
            speaker="Angarthing"
            message=_"Behold! The West Gate of Kal Kartha!"
        [/message]
        [message]
            speaker="Aiglondur"
            message=_"And under siege, I see. There is a mighty host of orcs between us and that gate."
        [/message]
        [message]
            speaker="Tan-Morgh"
            message=_"Ahhh... more stinky-midgets, come to get killed just like these cowards in their den."
        [/message]
        [message]
            speaker="Aiglondur"
            message=_"Let us bring our kin that orc’s head as a guesting-gift."
        [/message]
    [/event]

    # Dulcatulos gets a castle of reinforcements about the
    # time the orcs will have killed off his first wave.
    [event]
        name=turn 7
        [gold]
            amount=120
            side=2
        [/gold]
        [message]
            speaker=Dulcatulos
            message=_"Kal Kartha shall not fall!"
        [/message]
    [/event]

    [event]
        name="die"
        [filter]
            id="Dulcatulos"
        [/filter]

        [message]
            speaker=Aiglondur
            message=_ "Kal Kartha is taken. Our mission has failed."
        [/message]

        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name="enemies defeated"

        # wmllint: directory spelling Karrag
        [message]
            speaker=Dulcatulos
            message=_"Well fought, and our thanks; we were sore pressed. You are our honored guests, and I will show you to the best quarters we have myself. Our lord, the runemaster Karrag, will want to have speech with you on the morrow."
        [/message]

        [message]
            speaker=Angarthing
            message=_"A runemaster? There had been none such since Thursagan’s day. And for one to lead a holding was unheard-of; they tended towards the solitary life."
        [/message]

        [message]
            speaker=Dulcatulos
            message=_"Aye? Well, you’d know such things better than I, loremaster. Our Karrag toiled for long years to recover the craft lore. He was elevated when our old lord fell in battle against the besieging orcs. Karrag himself was wounded near to death; none thought he would recover. But he leads us today, and his runelore has oft been the only shield between us and the orcs."
        [/message]

        [message]
            speaker=Angarthing
            message=_"He has grasped the Hammer of Thursagan, then?"
        [/message]

        [message]
            speaker=Dulcatulos
            message=_"Aye. Toils over it in a workshop in the underlevels with his personal followers. He has promised all of us that the Hammer’s power will smash and scatter all our enemies."
        [/message]

        [message]
            speaker=Angarthing
            message=_"That is strange. The Hammer is a tool of crafting and making, not a weapon. What can he mean to do with it?"
        [/message]

        [message]
            speaker=Dulcatulos
            message=_"That’s for lords and loremasters to worry about, not the likes of me. I must see to my troop’s care. Food will be brought to you; rest well, we will speak again."
        [/message]

        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]
[/scenario]
