#textdomain wesnoth-thot
[scenario]
    name=_"Troll Bridge"
    id="04_Troll Bridge"
    next_scenario="05_Invaders"
    victory_when_enemies_defeated=yes
    map_data="{campaigns/The_Hammer_of_Thursagan/maps/troll_bridge.map}"
    {DEFAULT_SCHEDULE}
    {TURNS 20 16 12}	# BALANCE

    {INTRO_AND_SCENARIO_MUSIC "elvish-theme.ogg" "frantic.ogg"}
    {EXTRA_SCENARIO_MUSIC "wanderer.ogg"}
    {EXTRA_SCENARIO_MUSIC "nunc_dimittis.ogg"}

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

    [side]
        side=2
        type=Troll
        id=Gronk
        name= _ "Gronk"
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_QUICK}
        [/modifications]
        {GOLD 70 100 130}	# BALANCE

        team_name=trolls
        user_team_name=_"Trolls"
        controller=ai

        canrecruit=yes
        [ai]
            passive_leader=yes
#ifndef HARD
            recruitment_pattern=fighter
#else
            recruitment_pattern=fighter,fighter,mixed fighter
#endif
            recruitment_ignore_bad_movement=yes
            grouping=defensive
            {QUANTITY aggression 0.3 0.4 0.5}
            {ATTACK_DEPTH 3 4 5}
        [/ai]
#ifdef EASY
        recruit=Troll Whelp
#endif
#ifdef NORMAL
        recruit=Troll Whelp,Troll
#endif
#ifdef HARD
        recruit=Troll Whelp,Troll,Troll Rocklobber
#endif
    [/side]

    {campaigns/The_Hammer_of_Thursagan/utils/herodeaths.cfg}

    [story]
        [part]
            background=maps/wesnoth.png
            story= _ "Aiglondur and his troop, some still shaking their heads dubiously at the very notion of fighting alongside orcs rather than against them, continued east to the easternmost edge of the Northern Alliance's lands."
        [/part]
        [part]
            show_title=yes
            {TO_TROLL_BRIDGE}
        [/part]
    [/story]

#ifdef NORMAL
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 "Troll" 1}
#endif

#ifdef HARD
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 "Troll Rocklobber" 1}
#endif

    [event]
        name=die
        [filter]
            id=Gronk
        [/filter]
        [message]
            speaker=second_unit
            message=_ "Hey! That troll was sitting on some treasure!"
        [/message]
        {PLACE_IMAGE "items/gold-coins-small.png" 24 7}	# On troll keep
        [redraw]
        [/redraw]
        {LOOT 200 1}
        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]

    [event]
        name="prestart"
        [recall]
            id="Angarthing"
            x,y=2,9
        [/recall]

        [objectives]
            side="1"
            [objective]
                description=_"Defeat Gronk"
                condition="win"
            [/objective]
            [objective]
                description=_"Death of Aiglondur"
                condition="lose"
            [/objective]
            [objective]
                description=_"Death of Angarthing"
                condition="lose"
            [/objective]
            [objective]
                description=_"Time runs out"
                condition="lose"
            [/objective]

            note={EARLY_FINISH_BONUS_NOTE}+{NEW_GOLD_CARRYOVER_NOTE_40}
        [/objectives]
    [/event]

    [event]
        name="start"

        # wmllint: local spelling dat Er
        [message]
            speaker="Gronk"
            message=_"Dis a troll bridge. You pay toll. Er..."
        [/message]
        [message]
            speaker="Gronk"
            message=_"Dat not right. Dis a toll bridge. You pay troll. Er..."
        [/message]
        [message]
            speaker="Gronk"
            message=_"Dat not right either. Big words confuse Gronk. You pay now or we smash you."
        [/message]
        [message]
            speaker="Angarthing"
            message=_"The stonework of yon bridge is not good enough to be dwarf-made, but it is nowhere near crude enough to be troll-work."
        [/message]
        [message]
            speaker="Aiglondur"
            message=_"Then it will be of the Alliance's making, right enough, like this road that leads to it. It won't do to have wild trolls squatting on it. Axes up!"
        [/message]
    [/event]
[/scenario]
