#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=null

    [music]
        name=northerners.ogg
        ms_before=500
    [/music]
    [music]
        name=underground.ogg
        ms_before=500
        append=yes
    [/music]
    [music]
        name=loyalists.ogg
        ms_before=500
        append=yes
    [/music]
    [music]
        name=battle.ogg
        ms_before=500
        append=yes
    [/music]
    [music]
        name=knolls.ogg
        ms_before=500
        append=yes
    [/music]
    [music]
        name=vengeful.ogg
        ms_before=500
        append=yes
    [/music]

    {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
        description=Arne
        user_description= _ "Arne"
        unrenamable=yes
        side=1
        canrecruit=yes
        controller=human
        recruit=Horseman,Bowman,Spearman,Footpad
        team_name=good
        fog=yes
    [/side]

    [side]
        type=Orcish Warlord
        description=Tairach
        user_description= _ "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
    [/side]

    [side]
        type=Longbowman
        description=Councillor Hoban
        user_description= _ "Councillor Hoban"
        unrenamable=yes
        side=3
        controller=ai
        canrecruit=yes
        team_name=good
#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]
            description=Bjarn
            {IS_HERO}
        [/recall]

        [message]
            description=Arne
            message= _ "There. Your village is just across those hills, and already I see men coming to greet us!"
        [/message]
        [message]
            description=Bjarn
            message= _ "No. They are fleeing from something. We have to find out what is happening over here!"
        [/message]
        [message]
            description=Arne
            message= _ "I think your village is protected well, though."
        [/message]
        [message]
            description=Bjarn
            message= _ "We should go there and talk to Councillor Hoban. Maybe he knows what is going on here."
        [/message]
    [/event]

    [event]
        name=sighted
        [filter]
            side=3
        [/filter]
        [message]
            description=Councillor Hoban
            message= _ "I am glad to see you back again."
        [/message]
        [message]
            description=Bjarn
            message= _ "So am I. But what is happening to our village?"
        [/message]
        [message]
            description=Councillor Hoban
            message= _ "In the time you have been away a looting band of orcs took over this region. There was noone here to stop them."
        [/message]
        [message]
            description=Councillor Hoban
            message= _ "The orcish Warlord wants to enslave us. We will not be able to hold out for long."
        [/message]
        [message]
            description=Councillor Hoban
            message= _ "Be careful, he is responsible for the deaths of many of us. 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=victory
        [message]
            description=Arne
            message= _ "Finally the orc is killed. Now you can go back to your village."
        [/message]
        [message]
            description=Bjarn
            message= _ "So much has been destroyed. We will have a hard time fixing the damage the orcs and the undead caused. I hope this does not happen again."
        [/message]
        [message]
            description=Arne
            message= _ "I have to leave you now. My men and I are needed by others, too. But should you ever face another grim foe, send me a messenger. I'll come as fast as I can, little brother."
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            description=Bjarn
        [/filter]
        [message]
            description=Bjarn
            message= _ "It is over, I am vanquished."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=die
        [filter]
            description=Arne
        [/filter]
        [message]
            description=Arne
            message= _ "Everything is lost now that I am dead..."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

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