#textdomain wesnoth-ei
[scenario]
    id=Two_Paths
    name= _ "Two Paths"
    map_data="{campaigns/Eastern_Invasion/maps/Two_Paths.map}"
    next_scenario=Crossing
    {TURNS 18 16 14}

    {DEFAULT_SCHEDULE}

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

    {campaigns/Eastern_Invasion/utils/deaths.cfg}

    [story]
        [part]
            show_title=yes
            {TO_TWO_PATHS}
        [/part]
    [/story]

    [side]
        type=Lieutenant
        id=Gweddry
        name= _ "Gweddry"
        side=1
        canrecruit=yes
        controller=human
        team_name=wesnothians
        user_team_name=_"Wesnothians"
        {GOLD 200 150 100}
    [/side]

    {STARTING_VILLAGES 1 5}

    [side]
        type=Orcish Warlord
        id=Wak-Rano
        name= _ "Wak-Rano"
        side=2
        canrecruit=yes
        recruit=Orcish Warrior,Orcish Grunt,Troll Whelp,Orcish Assassin,Orcish Archer
        {GOLD 50 70 100}
        {INCOME 5 8 10}
        team_name=evil
        user_team_name=_"Evil"
    [/side]

    {STARTING_VILLAGES 2 5}

    [side]
        type=Dark Sorcerer
        id=Mal-Arnai
        name= _ "Mal-Arnai"
        side=3
        canrecruit=yes
        recruit=Vampire Bat,Skeleton,Revenant,Skeleton Archer,Walking Corpse
        [ai]
            recruitment_pattern=scout,scout,fighter,fighter,archer
        [/ai]
        {GOLD 50 75 150}
        {INCOME 5 8 10}
        {FLAG_VARIANT undead}
        team_name=evil
        user_team_name=_"Evil"
    [/side]

    {STARTING_VILLAGES 3 5}

    [event]
        name=prestart

        # {SCATTER_IMAGE (terrain=Gg) 12 scenery/pine1.png}

        [objectives]
            side=1
            [objective]
                description= _ "Defeat either enemy leader"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Gweddry"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Dacyn"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Owaec"
                condition=lose
            [/objective]

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

    [event]
        name=start
        [recall]
            id=Dacyn
        [/recall]
        [recall]
            id=Owaec
        [/recall]
        [message]
            speaker=Gweddry
            message= _ "Look! The road splits here. Which way shall we go?"
        [/message]
        [message]
            speaker=Owaec
            message= _ "We're in the land of the Clans now; I know it well. The road north leads directly to the Great River; across it lies the orcs' home country in the Northlands. The westward road will keep us inside the realm of Wesnoth, for a time, before we reach another crossing point north of Glyn's Forest. If we travel along that path, we will not have to fight orcs immediately."
        [/message]
        [message]
            speaker=Dacyn
            message= _ "We should probably go north to the orcish lands immediately. I suspect that the undead have already bypassed us, and cut off any crossing to the west of here."
        [/message]
        [message]
            speaker=Owaec
            message= _ "The orcs are more powerful than you suspect. I doubt the undead have had time to get past us in large enough numbers to make them more dangerous than the orcs."
        [/message]
        [message]
            speaker=Gweddry
            message= _ "Either way we will have to fight. Look, the orcs and undead are in a conflict, and block our path!"
        [/message]
        [message]
            speaker=Mal-Arnai
            message= _ "Well, orc, we can either continue this fight, or we can crush the humans and battle later. How shall it be?"
        [/message]
        [message]
            speaker=Wak-Rano
            message= _ "Hmm... I know. We will make a pact to destroy these men, and continue our fight later. " + {ASIDE _"Perhaps he will die, and I will win our battle without fighting."}
        [/message]
        [message]
            speaker=Mal-Arnai
            message= _ "Very well, we are allies, for now. " + {ASIDE _"This foolish orc will surely perish."}
        [/message]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Wak-Rano
        [/filter]
        [message]
            speaker=Wak-Rano
            message= _ "Arrgh! I have failed to defend the northern homeland!"
        [/message]
        [set_variable]
            name="second_fork"
            value="north"
        [/set_variable]
        [endlevel]
            result=victory
            next_scenario=Crossing
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Mal-Arnai
        [/filter]
        [message]
            speaker=Mal-Arnai
            message= _ "I was supposed to kill you all! I have failed."
        [/message]
        [set_variable]
            name="second_fork"
            value="west"
        [/set_variable]
        [endlevel]
            result=victory
            next_scenario=Undead_Crossing
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]

    {WESNOTH_DEFEAT}
[/scenario]
