#textdomain wesnoth-sotbe
[scenario]
    id=08_Silent_Forest
    name= _ "Silent Forest"
    map_file=08_Silent_Forest.map
    {TURNS 28 26 24}

    {DEFAULT_SCHEDULE}

    next_scenario=09_Shan_Taum_the_Smug

    {SCENARIO_MUSIC "knolls.ogg"}
    {EXTRA_SCENARIO_MUSIC "elvish-theme.ogg"}

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Defeat the elves"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Kapou’e"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Grüü"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of a Shaman"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

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

        [capture_village]
            side=2
            x=20-38
        [/capture_village]

        [capture_village]
            side=3
            x,y=1-19,7-30
        [/capture_village]
    [/event]

    [side]
        side=1
        id="Kapou'e"
        type=Orcish Leader
        controller=human
        team_name=Kapoue
        user_team_name=_ "Kapou’e"
        {GOLD 175 150 125}
        {BLACK_FLAG}
        fog=yes

        [village]
            x=5
            y=3
        [/village]
    [/side]

    [side]
        type=Elvish Sharpshooter
        gender=female
        id=Lucile
        name= _ "Lucile"
        side=2
        team_name=elves
        user_team_name=_"Elves"
        canrecruit=yes
        [ai]
            aggression=0.4
        [/ai]
        recruit=Elvish Fighter, Elvish Captain, Elvish Scout, Elvish Shaman, Elvish Druid, Elvish Archer, Wose
        {GOLD 120 140 160}
        {INCOME 12 15 18}
        {FLAG_VARIANT wood-elvish}
    [/side]

    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 Wose 3}

    [side]
        type=Elvish Captain
        id=Raceme
        name= _ "Raceme"
        side=3
        team_name=elves
        user_team_name=_"Elves"
        canrecruit=yes
        [ai]
            aggression=1.0
        [/ai]
        recruit=Elvish Fighter, Elvish Hero, Elvish Shaman, Elvish Archer, Elvish Marksman
        {GOLD 120 150 180}
        {INCOME 2 3 4}
        {FLAG_VARIANT wood-elvish}
    [/side]

    {LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Elvish Hero) 2}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 3 (Elvish Marksman) 1}

    [story]
        [part]
            story= _ "As soon as the sandstorm died down, Kapou’e and his men — eager to escape the searing heat — left the oasis and continued on their trek."
            {SOTBE_BIGMAP}
            {JOURNEY_07_OLD}
        [/part]

        [part]
            story= _ "It was with great relief that they finally spotted the Silent Forest on the evening of their second day. They quickly made camp in the hope of getting some much needed rest. However, as dawn approached, a thick fog rolled in and all the natural sounds of the forest died away — leaving everything deathly quiet."
            {SOTBE_BIGMAP}
            {JOURNEY_07_OLD}
        [/part]
    [/story]

    {SOTBE_TRACK {JOURNEY_08_NEW} }

    [event]
        name=start
        [recall]
            id=Grüü
        [/recall]
        [recall]
            id=Jetto
        [/recall]
        [recall]
            id=Pirk
        [/recall]
        [recall]
            id=Gork
        [/recall]
        [recall]
            id=Vraurk
        [/recall]

        [message]
            speaker="Kapou'e"
            message= _ "This fog and the silence are starting to unsettle me. What is this place, anyway?"
        [/message]
        [message]
            speaker="Gork"
            message= _ "It has not always been like this. A lot of hunters from the tribes used to hunt here and fish in the River Bork. But that all changed a few years ago. Now, few would enter here unless forced."
        [/message]
        [message]
            speaker="Vraurk"
            message= _ "What happened? Why did people stop coming here?"
        [/message]
        [message]
            speaker="Gork"
            message= _ "The fact is that few people entered this forest and returned home safe. I am not sure, but most likely, this forest is full of elvish renegades."
        [/message]
        [message]
            speaker="Kapou'e"
            message= _ "What would elves be doing so far into orcish territory? Anyway, we need some rest. We are sufficiently armed to cope with a bunch of elvish poachers. If we meet any, we’ll cut them to pieces."
        [/message]

        [micro_ai]
            side=2
            ai_type=healer_support
            action=add

            injured_units_only=yes
        [/micro_ai]

        [micro_ai]
            side=3
            ai_type=healer_support
            action=add

            injured_units_only=yes
        [/micro_ai]
    [/event]

    [event]
        name=sighted
        [filter]
            side=2,3
        [/filter]
        [filter_second]
            side=1
        [/filter_second]

        [if]
            [variable]
                name=second_unit.id
                equals=Gork
            [/variable]
            [then]
                [message]
                    speaker=second_unit
                    message= _ "Elves! I was right, this place is infested with the skinny weaklings."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=second_unit
                    message= _ "Elves! You were right, Gork, this place is infested with the skinny weaklings."
                [/message]
            [/else]
        [/if]

        [message]
            speaker=unit
            message= _ "Blast it, the orcs have discovered us."
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "What is your purpose for trespassing on orcish territory?"
        [/message]

        [message]
            speaker=unit
            message= _ "Fool, do you really think we are going to tell you?"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Men, capture one of these elves and interrogate him. I am sure that will get us some answers."
        [/message]
    [/event]

    [event]
        name=last breath
        [filter_second]
            side=1
        [/filter_second]

        [message]
            speaker=second_unit
            message= _ "Now we’re going to have some answers out of you."
        [/message]

        [message]
            speaker=unit
            message= _ "You might as well go ahead and kill me, I’m not telling you anything."
        [/message]

        [message]
            speaker=second_unit
            message= _ "Very well then..."
        [/message]

        [message]
            speaker=narrator
            message= _ "Some time later..."
            image=wesnoth-icon.png
        [/message]

        [message]
            speaker=second_unit
            message= _ "So you elves have set up an enclave here have you. Why is that?"
        [/message]

        [message]
            speaker=unit
            message= _ "We made an agreement with the humans some time ago. They were planning a major assault on you war-mongers, and the humans pledged that if we assisted them they would give us a large chunk of your territory once the battle was over."
        [/message]

        [message]
            speaker=second_unit
            message= _ "Why would you elves want still more territory? You already have the undisputed rule of the whole elvish forest."
        [/message]

        [message]
            speaker=unit
            message= _ "Yes, but our prince has been banished from those lands for collaborating with humans. He now seeks to carve out an empire for himself."
        [/message]

        [message]
            speaker=second_unit
            message= _ "Hmmm, interesting. So you set up a base here to launch your attacks on us. Is that right?"
        [/message]

        [message]
            speaker=unit
            message= _ "Yes, that is correct."
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Well folks, it looks like we have our work cut out for us. We must destroy this enclave."
        [/message]

        [if]
            [variable]
                name=second_unit.id
                equals="Kapou'e"
            [/variable]

            [then]
                [if]
                    [variable]
                        name=unit.gender
                        equals=female
                    [/variable]

                    [then]
                        [message]
                            speaker="Kapou'e"
                            message= _ "As for this weakling, I’ll personally behead her."
                        [/message]
                    [/then]

                    [else]
                        [message]
                            speaker="Kapou'e"
                            message= _ "As for this weakling, I’ll personally behead him."
                        [/message]
                    [/else]
                [/if]
            [/then]

            [else]
                [if]
                    [variable]
                        name=unit.gender
                        equals=female
                    [/variable]

                    [then]
                        [message]
                            speaker=second_unit
                            #po: In this string, the speaker is male while the person described as a "weakling" is female.
                            message= _ "female^With pleasure. But what should I do with this weakling?"
                        [/message]

                        [message]
                            speaker="Kapou'e"
                            message= _ "Behead her."
                        [/message]
                    [/then]

                    [else]
                        [message]
                            speaker=second_unit
                            message= _ "With pleasure. But what should I do with this weakling?"
                        [/message]

                        [message]
                            speaker="Kapou'e"
                            message= _ "Behead him."
                        [/message]
                    [/else]
                [/if]
            [/else]
        [/if]

        [message]
            speaker=unit
            message= _ "Ahhhhh!"
        [/message]
    [/event]

    [event]
        name=enemies defeated

        [message]
            speaker="Kapou'e"
            message= _ "Good work, men, we’ve done it! Now we don’t have to worry about these elves attacking us. Let’s get some rest and continue our journey."
        [/message]

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

    [event]
        name=last breath
        [filter]
            id=Lucile
        [/filter]

        [message]
            speaker=Lucile
            message= _ "Ahhh! Flee; warn the Prince that I have been slain and the enclave destroyed."
        [/message]

        [unit]
            side=3
            x=36
            y=24
            type=Elvish Scout
            id="Linduilas"
            name= _ "Linduilas"
        [/unit]

        [message]
            speaker="Linduilas"
            message= _ "As you command, my lady."
        [/message]

        [kill]
            id="Linduilas"
        [/kill]

        [move_unit_fake]
            type=Elvish Scout
            side=3
            x=36,36,36,36,36,36,36
            y=24,25,26,27,28,29,30
        [/move_unit_fake]
    [/event]

    {HERO_DEATHS}
[/scenario]
