#textdomain wesnoth-ei
[scenario]
    id=Elven_Alliance
    name= _ "An Elven Alliance"
    map_data="{campaigns/Eastern_Invasion/maps/An_Elven_Alliance.map}"
    {TURNS 24 22 20}
    next_scenario=Northern_Outpost

    {DEFAULT_SCHEDULE}

    {DEFAULT_MUSIC_PLAYLIST}
    {VICTORY_AND_DEFEAT_MUSIC}

    {campaigns/Eastern_Invasion/utils/deaths.cfg}

    [side]
        type=Lieutenant
        description=Gweddry
        user_description= _ "Gweddry"
        side=1
        canrecruit=yes
        controller=human
        team_name=good
    [/side]

    [side]
        type=Elvish Ranger
        description=Volas
        user_description= _ "Volas"
        side=2
        canrecruit=yes
        controller=ai
        recruit=Elvish Fighter,Elvish Shaman,Elvish Scout
        {GOLD 150 100 75}
        team_name=good
        [ai]
            passive_leader=yes
        [/ai]
    [/side]
    [side]
        type=Orcish Warrior
        description=Gruga-Har
        user_description= _ "Gruga-Har"
        side=3
        canrecruit=yes
        controller=ai
        recruit=Troll Whelp,Wolf Rider,Orcish Grunt,Orcish Archer
        {GOLD 125 150 175}
    [/side]

    [event]
        name=prestart

        # {SCATTER_IMAGE (terrain=Gs^Fp) 20 scenery/pine1.png}

        [objectives]
            side=1
            [objective]
                description= _ "Defeat 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 Volas"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    [event]
        name=start
        #hide Gruga-Har until he arrives
        [hide_unit]
            x=17
            y=3
        [/hide_unit]
        [recall]
            description=Dacyn
        [/recall]
        [message]
            description=Volas
            message= _ "Greetings, travelers! Welcome to my realm."
        [/message]
        [message]
            description=Gweddry
            message= _ "Would it be possible for us to rest in your lands for a while? We have been pursued by fell undead, although they did not dare to enter the forest... yet."
        [/message]
        [message]
            description=Volas
            message= _ "Certainly."
        [/message]
        [message]
            description=Dacyn
            message= _ "Good. Now, you should be warned. This undead warlord is very powerful. If you choose to battle with him then, even if you are victorious, few will survive. I invite you to join us, and head north. We may be able to leave the area he wishes to conquer."
        [/message]
        [message]
            description=Volas
            message= _ "I thank you for your offer. But I will not leave my homeland. These undead cannot be as powerful as you say; I will fight them."
        [/message]
        [message]
            description=Dacyn
            message= _ "This is not a wise choice, but it is yours to make. If you will not join us, will you at least help us reach the northern outpost? We wish to warn our comrades there."
        [/message]
        [message]
            description=Volas
            message= _ "I will aid you. Although, I too, think that yours is the foolish choice. You should stay, and fight."
        [/message]
        [message]
            description=Dacyn
            message= _ "After we rest for a short while, we will leave. We have little time to spare."
        [/message]
        #Gruga-Har arrives

        [move_unit_fake]
            type=Orcish Warrior
            side=3
            x=17,17,17
            y=1,2,3
        [/move_unit_fake]
        [unhide_unit]
        [/unhide_unit]
        [message]
            description=Gruga-Har
            message= _ "Intruders!"
        [/message]
        [message]
            description=Dacyn
            message= _ "What? Orcs! Where did they come from?"
        [/message]
        [message]
            description=Volas
            message= _ "I know not. But they are right in the Northern Path. You will have to fight them to move on."
        [/message]
        [message]
            description=Gruga-Har
            message= _ "Bring forth the assassins, we may be able to poison them!"
        [/message]
        [move_unit_fake]
            type=Orcish Slayer
            side=3
            x=18,18,18
            y=1,2,3
        [/move_unit_fake]
        [unit]
            type=Orcish Slayer
            description=Nafga
            user_description= _ "Nafga"
            side=3
            x=18
            y=3
        [/unit]
        [message]
            description=Nafga
            message= _ "Your Warlordship, I am the only assassin left! Do you want me to go poison their leader?"
        [/message]
        [message]
            description=Gruga-Har
            message= _ "Perfect! Go, into the forest!"
        [/message]
        [kill]
            description=Nafga
        [/kill]
        [move_unit_fake]
            type=Orcish Slayer
            side=3
            x=18,18,18,18
            y=3,4,5,6
        [/move_unit_fake]
        [message]
            description=Gweddry
            message= _ "They have sent an assassin into the forest. We will have to be careful, and make sure he does not come out and attack us unexpectedly."
        [/message]
    [/event]

    [event]
        name=turn 6
        [unit]
            type=Orcish Slayer
            description=Nafga
            user_description= _ "Nafga"
            side=3
            x=20
            y=16
        [/unit]
        [message]
            description=Nafga
            message= _ "Hahaha! Nafga will kill the elves!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            description=Nafga
        [/filter]
        [message]
            description=Nafga
            message= _ "No! This is the first time I have failed a mission, and it is my last!"
        [/message]
        [message]
            description=Gruga-Har
            message= _ "My assassin is dead! The elves must pay, not for his death, but for stopping him in his mission!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            description=Volas
        [/filter]
        [message]
            description=Volas
            message= _ "You have failed me, man of Wesnoth..."
        [/message]
        [endlevel]
            result=defeat
        [/endlevel]
    [/event]

    [event]
        name=victory
        [message]
            description=Volas
            message= _ "We have defeated the orcs! Now you can rest, and then leave."
        [/message]
        [message]
            description=Dacyn
            message= _ "We have not the time. This battle has wasted too much of it already. We must leave now."
        [/message]
        [message]
            description=Volas
            message= _ "Very well. I will send guides to lead you to your allies."
        [/message]
    [/event]
[/scenario]
