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

    {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}

    {DEFAULT_SCHEDULE_DUSK}

    [story]
        # Diary entries split into two parts until story screens allow vertical scrolling (FR #17492).
        # wmllint: local spelling Grey
        [part]
            story=_"27 V, 363 YW
Excerpt from the journal of Baran of Maghre

Almost home now. The last week has been full of mixed feelings for me — blissful and difficult by turns. It was wonderful to be out of that dungeon cell and in the sunlight again without the threat of death or worse hanging over my head... but with that behind me, I turned to the almost equally daunting task of making amends with my brother.

Arvith had largely forgiven me by the time he freed me from my cell. All the same, it has taken all of the past week for us to rebuild the sense of comfort in each other we once had. It is fortunate that we have been able to take our time getting back — we gave the Grey Woods a wide berth, and on our way around it we traveled through some truly beautiful countryside. It has given us plenty of time to talk."
        [/part]
        [part]
            story=_ "27 V, 363 YW
Excerpt from the journal of Baran of Maghre

Though I am more at ease now, my thoughts often turn back to Toen Caric. We should have been able to repel the orcs without great loss — the pincer attack Arvith devised would surely have carried the day but for me. It was reckless of me to leave my men behind — I wounded the warlord and forced him to flee the field, but the cost far outweighed the gain. Those under my command could have been saved if I had remained with them.

I can hardly blame Arvith for having taken their deaths ill, and I can never undo the wrong that I have done, but I suppose that time heals some things. We return to the village as brothers once more.

But I am still troubled. I wonder... is this sense of foreboding I feel merely a remnant of my time locked away in that dungeon, or is it a sign of something real?"
        [/part]
    [/story]
    {TB_TRACK {JOURNEY_STAGE4}}

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

            {TURNS_RUN_OUT}
            {IS_LAST_SCENARIO}
        [/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=Arvith
        name= _ "Arvith"
        unrenamable=yes
        profile="portraits/arvith.png~RIGHT()"
        side=1
        canrecruit=yes
        controller=human
        recruit=Horseman,Bowman,Spearman,Footpad
        team_name=good
        user_team_name=_"Humans"
        fog=yes
        {FLAG_VARIANT loyalist}
    [/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"
        {FLAG_VARIANT ragged}
    [/side]

    [side]
        type=Longbowman
        id=Reeve Hoban
        name= _ "Reeve 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
        {FLAG_VARIANT loyalist}
    [/side]

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

    [event]
        name=start
        [recall]
            id=Baran
        [/recall]

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

    [event]
        name=sighted
        [filter]
            id=Tairach
        [/filter]
        [filter_second]
            side=1
        [/filter_second]
        [message]
            speaker=unit
            message= _ "We’re almost there!"
        [/message]
        [message]
            speaker=Baran
            message= _ "That warlord! It’s..."
        [/message]
        [message]
            speaker=Arvith
            message= _ "Yes, I’d know that face anywhere. Especially after what you did to it."
        [/message]
        [message]
            speaker=Baran
            message= _ "The warlord from Toen Caric."
        [/message]
        [message]
            speaker=Tairach
            message= _ "You! The mage who scarred me with fire! KILL THEM!"
        [/message]
        [message]
            speaker=Baran
            message= _ "Let’s finish what we started, brother."
        [/message]
        [message]
            speaker=Arvith
            message= _ "Aye. I’ll be the right arm, and you’ll be the left. Let’s go!"
        [/message]
        [fire_event]
            name=defeat_enemy_leader_objectives
        [/fire_event]
    [/event]

    [event]
        name=sighted
        [filter]
            side=3
        [/filter]
        [filter_second]
            side=1
        [/filter_second]
        [message]
            speaker=Reeve Hoban
            message= _ "I am glad to see you returned."
        [/message]
        [message]
            speaker=Baran
            message= _ "No gladder than I am to be here. But what has happened to Maghre?"
        [/message]
        [message]
            speaker=Reeve 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=Reeve Hoban
            message= _ "The orcish warlord aims to enslave us. We will not be able to hold out for much longer."
        [/message]
        [message]
            speaker=Reeve 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]
        [fire_event]
            name=defeat_enemy_leader_objectives
        [/fire_event]
    [/event]

    [event]
        name=defeat_enemy_leader_objectives
        [objectives]
            side=1
            [objective]
                description= _ "Slay the Orcish Warlord to free the village"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Arvith"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Baran"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}
            {IS_LAST_SCENARIO}
        [/objectives]
    [/event]

    [event]
        name=enemies defeated
        [message]
            speaker=Arvith
            message= _ "It is finished. We’ve defeated him at last. It was good to have you at my side, Baran."
        [/message]
        [message]
            speaker=Baran
            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=Arvith
            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=Baran
        [/filter]
        [message]
            speaker=Baran
            message= _ "It is over, I am vanquished."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

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

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