#textdomain wesnoth-ei
[scenario]
    id=Xenophobia
    name= _ "Xenophobia"
    map_data="{campaigns/Eastern_Invasion/maps/Tribal_Warfare.map}"
    {TURNS 40 36 32}
    next_scenario=Lake

    {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
        {GOLD 250 200 150}
    [/side]

    {STARTING_VILLAGES 1 9}

    [side]
        type=Dwarvish Lord
        description=Pelathsil
        user_description= _ "Pelathsil"
        side=2
        canrecruit=yes
        controller=ai
#ifdef EASY
        recruit=Dwarvish Thunderguard,Dwarvish Steelclad,Dwarvish Fighter
#else
        recruit=Dwarvish Thunderguard,Dwarvish Steelclad,Dwarvish Fighter,Dwarvish Berserker
#endif
        {GOLD 150 200 300}
    [/side]

    {STARTING_VILLAGES 2 9}

    [side]
        type=Orcish Warlord
        description=Prok-Bak
        user_description= _ "Prok-Bak"
        side=3
        canrecruit=yes
        controller=ai
#ifdef EASY
        recruit=Troll,Wolf Rider,Goblin Knight,Gobin Pillager,Orcish Warrior
#else
        recruit=Troll,Wolf Rider,Goblin Knight,Gobin Pillager,Direwolf Rider,Orcish Warrior
#endif
        {GOLD 160 235 310}
        [ai]
            grouping=no
        [/ai]
    [/side]

    {STARTING_VILLAGES 3 9}

    [side]
        type=Elvish Marshal
        description=Elandin
        user_description= _ "Elandin"
        side=4
        canrecruit=yes
        controller=ai
        recruit=Elvish Ranger,Elvish Rider,Elvish Avenger
        {GOLD 170 230 300}
        [ai]
            grouping=defensive
        [/ai]
    [/side]

    {STARTING_VILLAGES 4 9}

    [event]
        name=prestart

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

        [objectives]
            side=1
            [objective]
                description= _ "Defeat all enemy leaders"
                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]
        [/objectives]
    [/event]

    [event]
        name=start
        [recall]
            description=Dacyn
        [/recall]
        [recall]
            description=Owaec
        [/recall]
        [recall]
            description=Grug
        [/recall]
        [message]
            description=Dacyn
            message= _ "Hail, dwarves! Will you help us get by these foul orcs? We need to get further along this path."
        [/message]
        [message]
            description=Prok-Bak
            message= _ "You human! Call us foul, will you?!?!"
        [/message]
        [message]
            description=Pelathsil
            message= _ "Why should we help you? You're not a dwarf!"
        [/message]
        [message]
            description=Gweddry
            message= _ "Your people helped us in the past, in the tunnels in the south. Will you not help us now?"
        [/message]
        [message]
            description=Pelathsil
            message= _ "Impossible! I canna believe any of my kin would ha' helped a human!"
        [/message]
        [message]
            description=Elandin
            message= _ "Indeed. Why should any of us help those not of our people?"
        [/message]
        [message]
            description=Owaec
            message= _ "Will you but let us pass, so that we may fight the orcs on our own?"
        [/message]
        [message]
            description=Elandin
            message= _ "I am afraid that is... impossible."
        [/message]
        [message]
            description=Prok-Bak
            message= _ "Orcs, kill'em all! Humans, elves or dwarves, it don't matter!"
        [/message]
        [message]
            description=Elandin
            message= _ "These orcs will die. But so will you, human. You have trespassed on elvish land."
        [/message]
        [message]
            description=Pelathsil
            message= _ "Oh, elvish land is it now? Die, ye elf-dog! And you too, human!"
        [/message]
        [message]
            description=Dacyn
            message= _ "These people won't listen to reason, they are all blinded by their beliefs in their own supposed superiority. We probably will have to fight them, although we may be able to bypass them."
        [/message]
        [message]
            description=Gweddry
            message= _ "True. As much as I dislike killing anything but orcs and undead, it seems we will have to kill these elves, and these dwarves, before they do the same to us."
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            description=Pelathsil
        [/filter]
        [message]
            description=Pelathsil
            message= _ "Argh! I'm dead! Well, dwarves are still the best!"
        [/message]
        [gold]
            side=3
            amount=50
        [/gold]
        [gold]
            side=4
            amount=50
        [/gold]
    [/event]
    [event]
        name=die
        [filter]
            description=Prok-Bak
        [/filter]
        [message]
            description=Prok-Bak
            message= _ "I die? Orcs rule all!"
        [/message]
        [gold]
            side=2
            amount=50
        [/gold]
        [gold]
            side=4
            amount=50
        [/gold]
    [/event]
    [event]
        name=die
        [filter]
            description=Elandin
        [/filter]
        [filter_second]
            side=1
        [/filter_second]
        [message]
            description=Elandin
            message= _ "It seems these humans are more powerful than I thought. Ugh."
        [/message]
        [gold]
            side=2
            amount=50
        [/gold]
        [gold]
            side=3
            amount=50
        [/gold]
    [/event]
    [event]
        name=die
        [filter]
            description=Elandin
        [/filter]
        [filter_second]
            side=2
        [/filter_second]
        [message]
            description=Elandin
            message= _ "Cursed dwarves! Perhaps we should have allied with the humans..."
        [/message]
    [/event]
    [event]
        name=die
        [filter]
            description=Elandin
        [/filter]
        [filter_second]
            side=3
        [/filter_second]
        [message]
            description=Elandin
            message= _ "Foul orcs! Perhaps we should have allied with the humans..."
        [/message]
    [/event]
    [event]
        name=die
        [filter]
            description=Pelathsil
        [/filter]
        [filter_second]
            side=1
        [/filter_second]
        [message]
            description=Pelathsil
            message= _ "It seems yon humans are mightier than I kenned..."
        [/message]
    [/event]
    [event]
        name=die
        [filter]
            description=Pelathsil
        [/filter]
        [filter_second]
            side=3
        [/filter_second]
        [message]
            description=Pelathsil
            message= _ "Foul orcs! Perhaps we should ha' allied wi' the humans..."
        [/message]
    [/event]
    [event]
        name=die
        [filter]
            description=Pelathsil
        [/filter]
        [filter_second]
            side=4
        [/filter_second]
        [message]
            description=Pelathsil
            message= _ "Cursed elves! Perhaps we should have allied wi' the humans..."
        [/message]
    [/event]

    #eternal holy water!
    [item]
        x=20
        y=12
        image=items/ankh-necklace.png
    [/item]

    [event]
        name=moveto
        [filter]
            side=1
            x=20
            y=12
        [/filter]
        [object]
            id=holyamulet
            name= _ "Holy Amulet"
            image=items/ankh-necklace.png
            duration=forever
            description= _ "Wearing this amulet will cause every blow you deal to inflict arcane damage!"
            cannot_use_message= _ "I am not suited to using this item! Let another take it."
            [then]
                [removeitem]
                    x=20
                    y=12
                [/removeitem]
            [/then]
            [effect]
                apply_to=attack
                range=melee
                set_type=arcane
            [/effect]
            [effect]
                apply_to=attack
                range=ranged
                set_type=arcane
            [/effect]
        [/object]
    [/event]
[/scenario]
