#textdomain wesnoth-tb
[scenario]
    id=4_Return_To_The_Village
    name= _ "Return to the Village"
    map_data="{campaigns/Two_Brothers/maps/4_Return_to_the_Village.map}"
#ifdef EASY
    turns=26
#endif
#ifdef HARD
    turns=24
#endif
    next_scenario=epilog

    {SCENARIO_MUSIC northerners.ogg}
    {EXTRA_SCENARIO_MUSIC underground.ogg}
    {EXTRA_SCENARIO_MUSIC loyalists.ogg}
    {EXTRA_SCENARIO_MUSIC battle.ogg}
    {EXTRA_SCENARIO_MUSIC knolls.ogg}
    {EXTRA_SCENARIO_MUSIC vengeful.ogg}

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

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Find out what is happening in the village"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Arne"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Bjarn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    {PLACE_IMAGE scenery/village-human-burned1.png 10 15}
    {PLACE_IMAGE scenery/village-human-burned2.png 8 21}
    {PLACE_IMAGE scenery/village-human-burned3.png 22 10}
    {PLACE_IMAGE scenery/village-human-burned4.png 17 4}
    {PLACE_IMAGE scenery/village-human-burned4.png 11 26}
    {PLACE_IMAGE scenery/village-human-burned2.png 7 12}

    [side]
#ifdef EASY
        gold=140
#endif
#ifdef HARD
        gold=120
#endif
        type=Knight
        id=Arne
        name= _ "Arne"
        unrenamable=yes
        profile="portraits/humans/knight.png"
        side=1
        canrecruit=yes
        controller=human
        recruit=Horseman,Bowman,Spearman,Footpad
        team_name=good
        user_team_name=_"Humans"
        fog=yes
    [/side]

    [side]
        type=Orcish Warlord
        id=Tairach
        name= _ "Tairach"
        unrenamable=yes
        side=2
        controller=ai
        canrecruit=yes
        [ai]
            [avoid]
                x=10-14
                y=1-4
            [/avoid]
        [/ai]
#ifdef EASY
        gold=150
        income=10
        recruit=Goblin Spearman, Wolf Rider, Orcish Archer, Orcish Grunt, Troll Whelp
#endif
#ifdef HARD
        gold=200
        income=16
        recruit=Orcish Warrior, Goblin Impaler, Wolf Rider, Orcish Crossbowman, Troll Whelp, Orcish Assassin
#endif
        team_name=evil
        user_team_name=_"Enemies"
    [/side]

    [side]
        type=Longbowman
        id=Councillor Hoban
        name= _ "Councillor Hoban"
        unrenamable=yes
        side=3
        controller=ai
        canrecruit=yes
        team_name=good
        user_team_name=_"Humans"
#ifdef EASY
        income=4
        gold=60
#endif
#ifdef HARD
        gold=35
#endif
        recruit=Bowman,Spearman
    [/side]

    {STARTING_VILLAGES 1 8}
    {STARTING_VILLAGES 2 10}
    {STARTING_VILLAGES 3 8}

    [event]
        name=start
        [recall]
            id=Bjarn
            {IS_HERO}
        [/recall]

        # wmllint: local spelling Hoban
        [message]
            speaker=Arne
            message= _ "There. Your village is just across those hills, and already I see men coming to greet us!"
        [/message]
        [message]
            speaker=Bjarn
            message= _ "No, they are fleeing from something. We must find out what is happening over there!"
        [/message]
        [message]
            speaker=Arne
            message= _ "Men! Ready your weapons!"
        [/message]
        [message]
            speaker=Bjarn
            message= _ "We should go there and talk to Counselor Hoban. Maybe he knows what is going on here."
        [/message]
    [/event]

    [event]
        name=sighted
        [filter]
            side=3
        [/filter]
        [message]
            speaker=Councillor Hoban
            message= _ "I am glad to see you returned."
        [/message]
        [message]
            speaker=Bjarn
            message= _ "No gladder than I am to be here. But what has happened to Maghre?"
        [/message]
        [message]
            speaker=Councillor Hoban
            message= _ "Soon after you departed we were beset by orcs. With half the men of Maghre gone, we could not stop them."
        [/message]
        [message]
            speaker=Councillor Hoban
            message= _ "The orcish warlord aims to enslave us. We will not be able to hold out for much longer."
        [/message]
        [message]
            speaker=Councillor Hoban
            message= _ "Have a care, his men are fell fighters and have killed many. Very few remain who can bear arms, but I will send them to aid you in battle."
        [/message]
        [objectives]
            side=1
            [objective]
                description= _ "Slay the Orcish Warlord to free the village"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Arne"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Bjarn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    [event]
        name=enemies defeated
        [message]
            speaker=Arne
            message= _ "Finally the warlord is killed. Now you can go back to Maghre."
        [/message]
        [message]
            speaker=Bjarn
            message= _ "So much has been destroyed. It will be difficult to repair all that the orcs and undead have wrecked. And they could come again."
        [/message]
        [message]
            speaker=Arne
            message= _ "I must go back to earning my living. But we have our amulets, little brother. If you are beset again, I will come."
        [/message]
        [endlevel]
            result=victory
            carryover_report=no
        [/endlevel]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Bjarn
        [/filter]
        [message]
            speaker=Bjarn
            message= _ "It is over, I am vanquished."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Arne
        [/filter]
        [message]
            speaker=Arne
            message= _ "Everything is lost now that I am dead..."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=time over
        [message]
            speaker=Arne
            message= _ "I don't think we can rescue anyone from these villages. It is too late."
        [/message]
        [message]
            speaker=Bjarn
            message= _ "I was too weak to protect these people. Oh why did this happen to me?!?"
        [/message]
    [/event]
[/scenario]
