#textdomain wesnoth-sotbe
[scenario]
    id="Desert_Of_Death"
    name= _ "The Desert of Death"
    map_data="{campaigns/Son_Of_The_Black_Eye/maps/Desert_Of_Death.map}"
    {TURNS 22 20 18}

    {DEFAULT_SCHEDULE}

    next_scenario="Silent_Forest"

    {SCENARIO_MUSIC "wanderer.ogg"}
    {EXTRA_SCENARIO_MUSIC "the_dangerous_symphony.ogg"}

    [event]
        name=prestart
        [objectives]
            side=1
            [objective]
                description= _ "Reach the Oasis"
                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]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]

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

    [side]
        type=Orcish Leader
        id="Kapou'e"
        name= _ "Kapou'e"
        side=1
        canrecruit=yes
        controller=human
        recruit= Wolf Rider, Orcish Grunt, Troll Whelp, Orcish Archer
        team_name=Kapoue
        user_team_name=_ "Kapou'e"
        gold=100
        fog=yes
        {BLACK_FLAG}
    [/side]

    [side]
#ifdef HARD
        type=Assassin
#else
        type=Rogue
#endif
        id=Ar-Dant
        name= _ "Ar-Dant"
        side=2
        team_name=villains
        user_team_name=_"Villains"
        canrecruit=yes
        [ai]
            aggression=-1.0
            village_value=50.0
            leader_value=10.0
            recruitment_pattern=fighter,fighter
        [/ai]
#ifdef EASY
        recruit=Thief,Thug
#endif
#ifdef NORMAL
        recruit=Thief,Bandit
#endif
#ifdef HARD
        recruit=Rogue,Bandit
#endif
        {GOLD 60 120 200}
    [/side]

    [side]
        no_leader=yes
        type=Giant Scorpion
        side=3
        team_name=villains
        user_team_name=_"Villains"
        canrecruit=no
        [ai]
            aggression=1.0
            village_value=0.0
            leader_value=50.0
        [/ai]
    [/side]

    [story]
        [part]
            background=farnorth.png
            story= _ "Resting during the day and doing most of their marching by night, the party moved steadily through the sand for two days."
        [/part]

        [part]
            background=farnorth.png
            story= _ "The heat of the day and the chill of the night wore heavily on the orcs. Fortunately, they didn't encounter any giant scorpions, but neither did they discover any source of food or water."
        [/part]

        [part]
            background=farnorth.png
            story= _ "By the dawn of the third day the party was hungry, tired and weary, but according to their map, a good-sized oasis was not far away."
        [/part]

        [part]
            background=farnorth.png
            story= _ "Just then, however, a strong wind began to blow. It rapidly increased in fury, whipping hot sand up all around them. They could see little further than the reach of their hands and it began to seem they would be buried alive by smothering sand."
        [/part]

        [part]
            show_title=yes
            {TO_DESERT_OF_DEATH}
        [/part]
    [/story]
    [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= _ "Ack! This blasted sand!"
            image=portraits/kapoue-angry.png
        [/message]
        [message]
            speaker="Grüü"
            message= _ "I'm hungry and we found no giant scorpion yet. I'm sure it would be tasty."
        [/message]
        [message]
            speaker="Kapou'e"
            message= _ "I hope we won't find one! They are terrible armored beasts; your hammer would be useless against their heavy shells."
        [/message]
        [message]
            speaker="Vraurk"
            message= _ "I've been told the best way to defeat them is to attack their eyes with sharp blades, set them afire, or pierce them with arrows. But I hope too we won't meet them."
        [/message]
        [message]
            speaker="Pirk"
            message= _ "I wouldn't worry about the scorpions right now, I would worry about getting out of this sandstorm! These things can last for weeks, and if we aren't buried alive by all the sand we will die of hunger and thirst."
        [/message]
        [message]
            speaker="Kapou'e"
            message= _ "Hurry then, break camp, we must get to the oasis!"
        [/message]

        [message]
            speaker="Pirk"
            message= _ "What!? Through all this chaos!?"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "We don't have any other choice. If we remain here we'll die."
        [/message]

        {NOTRAIT_UNIT 3 "Giant Scorpion" 10 10}
        {NOTRAIT_UNIT 3 "Giant Scorpion" 11  8}
        {NOTRAIT_UNIT 3 "Giant Scorpion" 17 11}
        {NOTRAIT_UNIT 3 "Giant Scorpion"  8  7}
        {NOTRAIT_UNIT 3 "Giant Scorpion" 11 15}
#ifdef NORMAL
        {NOTRAIT_UNIT 3 "Giant Scorpion" 13  3}
#endif
#ifdef HARD
        {NOTRAIT_UNIT 3 "Giant Scorpion"  6 11}
        {NOTRAIT_UNIT 3 "Giant Scorpion" 13  3}
#endif
        {NOTRAIT_UNIT 3 "Giant Scorpion" 26  4}
        {NOTRAIT_UNIT 3 "Giant Scorpion" 11 22}
    [/event]

    [event]
        name=enemies defeated

        [message]
            speaker="Kapou'e"
            message= _ "Finally we've done it! Now let's wait out this sandstorm, resupply and get some rest before we continue on our journey."
        [/message]

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

    [event]
        name=sighted
        [filter]
            side=3
        [/filter]

        [message]
            speaker="Kapou'e"
            message= _ "There you go, Grüü, there is your giant scorpion!"
        [/message]

        [message]
            speaker=Vraurk
            message= _ "Oh great, perfect timing."
        [/message]

        [message]
            speaker=Grüü
            message= _ "Yeah, I am really hungry."
        [/message]

        [message]
            speaker=Vraurk
            message= _ "That is not what I meant!"
        [/message]
    [/event]

    [event]
        name=die

        [filter]
            type=Giant Scorpion
        [/filter]

        [filter_second]
            id=Grüü
        [/filter_second]

        [message]
            speaker=Grüü
            message= _ "Ahh, finally! Lunchtime!"
        [/message]

        [message]
            speaker=Vraurk
            message= _ "You trolls are just sick!"
        [/message]

        [message]
            speaker=Grüü
            message= _ "YUCK! Disgusting! These things taste horrible!"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "I don't know if you should have eaten that Grüü, you don't look so good."
        [/message]

        [message]
            speaker=Grüü
            message= _ "Ugh... I feel sick."
        [/message]

        [message]
            speaker=Gork
            message= _ "Hmmm, it seems that scorpions are poisonous."
        [/message]

        [message]
            speaker=Vraurk
            message= _ "But what about Grüü?"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Ahh, he will be fine in a few minutes. He is a troll, after all. Right, Grüü?"
        [/message]

        [message]
            speaker=Grüü
            message= _ " *puke*"
        [/message]

        {VARIABLE second_unit.status.poisoned yes}

        [unstore_unit]
            variable=second_unit
            find_vacant=no
            #textdomain wesnoth
            text= _ "poisoned"
            #textdomain wesnoth-sotbe
            {COLOR_HARM}
        [/unstore_unit]
    [/event]

    [event]
        name=sighted
        [filter]
            side=2
        [/filter]

        [message]
            speaker=unit
            message= _ "Hold it right there! This oasis is ours! Begone or you all will be killed!"
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Look, fool, we are in the middle of a sandstorm, and we are almost completely out of food and water. There is no way we can keep going without stopping at this oasis."
        [/message]

        [message]
            speaker=unit
            message= _ "I don't care, get lost!"
        [/message]

        [message]
            speaker=Pirk
            message= _ "It's no use reasoning with them, Kapou'e, they aren't going to listen."
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "Yeah, I can see that. Well, I guess we have to clean these rabble out of here. Stab, smite, slay!"
        [/message]

        [objectives]
            side=1
            [objective]
                description= _ "Defeat Ar-Dant"
                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]
            [objective]
                description= _ "Turns run out"
                condition=lose
            [/objective]

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

    [event]
        name=time over

        [message]
            speaker=Grüü
            message= _ "...food..."
        [/message]

        [message]
            speaker=Vraurk
            message= _ "...water..."
        [/message]

        [message]
            speaker="Kapou'e"
            message= _ "...Come... on .... people .... we have .... to .... keep.... going...."
        [/message]

        [message]
            speaker=Pirk
            message= _ ".... can't.... the .... heat.... is.... too..... much...."
        [/message]
    [/event]

    {campaigns/Son_Of_The_Black_Eye/utils/deaths.cfg}
[/scenario]
