#textdomain wesnoth-dw

# Get a couple quick lower-level units first to start taking
# gold. Also get some level one cannon fodder to help soak up the
# awesome damage capability of the first wave of monsters. Then,
# recall your most powerful units. You need firepower. You also could
# really use the slow ability of netcasters and entanglers. Two
# healers are probably a minimum. Slide the first units around the
# edges getting gold, because your income will be very negative in a
# hurry, and you probably need all the firepower you can get. Don't
# worry about gold too much though--you probably can't start the next
# scenario with more than the minimum. Keshan can handle the upper
# middle section himself. He is good against the tentacles, and even
# the cuttlefish if he stays healed. Put everyone else in the
# middle. Use your auras as much as possible: leadership and
# illuminate (Cylanna *is* a diviner by now isn't she?), and use
# "slows" to keep all your units from dying. You will probably lose a
# couple leveled-up ones anyway.

# The loyal cuttle fish isn't terribly useful, but cool to have
# anyway. It has to be a Cuttle Fish2 to work around a problem with
# the [advancefrom] tag. When he levels into a kraken, he is quite a
# bit nicer to have. (And pretty cool looking if I do say so myself.)

[scenario]
    name= _ "Uncharted Islands"
    map_data="{campaigns/Dead_Water/maps/Uncharted_Islands.map}"

    id=06_Uncharted_Islands
    next_scenario=07_Bilheld

    [story]
        [part]
            {DW_BIGMAP}
            story= _ "Now the merfolk had no choice but to travel through the open ocean, which they knew was more dangerous than shallow water. After a few days, they found some islands in their path. The infirm and young among the refugees needed a break from travel; Cylanna only vaguely remembered them, but thought they might be safe."
        [/part]
    [/story]

    {BIGMAP_06}

    {DEFAULT_SCHEDULE_DAWN}
    {TURNS4 25 24 23 22}

    [side]
        {SIDE_1}
        {GOLD4 240 200 180 160}
    [/side]
    {STARTING_VILLAGES 1 6}

    [side]
        side=2
        controller=ai
        user_team_name= _ "Growloff and His Pets"
        team_name=pets
        color=purple

        id=Growloff
        name= _ "Growloff"
        canrecruit=yes
        type=Ranger
        recruit=Vampire Bat, Blood Bat, Cuttle Fish, Water Serpent, Tentacle of the Deep
        [ai]
            villages_per_scout=0
            #recruitment_pattern=fighter,fighter,fighter,scout
        [/ai]
        [village]
            x=1
            y=2
        [/village]
        {GOLD4 280 340 380 460}
        {INCOME4 22 24 28 30}
    [/side]

    # I want mostly cuttle fish and water serpents, so I'll limit
    # everything else. Also, I'll limit the cuttle fish a little,
    # because the AI prefers them, but they're quite expensive.  On
    # hard levels, he has enough gold to buy a few more sea serpents
    # at a time.
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Tentacle of the Deep) 4}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Blood Bat) 2}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Vampire Bat) 2}
#ifdef EASY
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Cuttle Fish) 3}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Sea Serpent) 2}
#endif
#ifdef NORMAL
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Cuttle Fish) 4}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Sea Serpent) 2}
#endif
#ifdef HARD
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Cuttle Fish) 4}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Sea Serpent) 3}
#endif
#ifdef NIGHTMARE
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Cuttle Fish) 5}
    {LIMIT_CONTEMPORANEOUS_RECRUITS 2 (Sea Serpent) 3}
#endif

    [event]
        name=prestart

        [music]
            name=vengeful.ogg
        [/music]
        [music]
            name=frantic.ogg
            append=yes
        [/music]

        {RECALL_LOYAL_UNITS}

        [objectives]
            side=1
            [objective]
                description= _ "Defeat enemy leader"
                condition=win
            [/objective]

            {HOW_TO_LOSE}

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

        [unit]
            x=6
            y=3
            type=Cuttle Fish
            side=2
            id=pet
            name= _ "Beloved Pet"
        [/unit]

        [unit]
            type=Tentacle of the Deep
            x=6
            y=2
            side=2
        [/unit]
        [unit]
            type=Tentacle of the Deep
            x=7
            y=2
            side=2
        [/unit]
        [unit]
            type=Tentacle of the Deep
            x=8
            y=2
            side=2
        [/unit]
        [unit]
            type=Tentacle of the Deep
            x=7
            y=3
            side=2
        [/unit]
    [/event]

    [event]
        name=start
        [message]
            speaker=Kai Krellis
            message= _ "Uh oh. There is someone else here. Hey! He is being attacked by a cuttle fish!"
        [/message]
        [message]
            speaker=Growloff
            message= _ "Look my pet, here’s a yummy treat!"
        [/message]
        [message]
            speaker=Kai Krellis
            message= _ "Or...is he <i>talking</i> to it?!"
        [/message]
        [message]
            speaker=Cylanna
            message= _ "It is worse than that. I think <i>we</i> are the treat!"
        [/message]
        [message]
            speaker=Growloff
            message= _ "Who is ready for a merfolk snack?"
        [/message]
        [message]
            speaker=Kai Krellis
            message= _ "Brace yourselves."
        [/message]
    [/event]

    [event]
        name=recruit

        [filter]
            type=Sea Serpent
        [/filter]

        [message]
            speaker=Kai Krellis
            message= _ "Oh no! Look what he has frisking at his heels now. And I thought the cuttle fish was bad!"
        [/message]
    [/event]

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

        [message]
            speaker=Growloff
            message= _ "You killed my pet! You’ll pay for that!"
        [/message]
    [/event]

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

        [store_unit]
            variable=Growloff_stored
            [filter]
                id=Growloff
            [/filter]
            kill=yes
        [/store_unit]

        [set_variable]
            name=Growloff_stored.hitpoints
            value=1
        [/set_variable]

        [unstore_unit]
            variable=Growloff_stored
        [/unstore_unit]

        {CLEAR_VARIABLE Growloff_stored}

        [message]
            speaker=Growloff
            message= _ "Don’t kill me!"
        [/message]
        [message]
            speaker=Kai Krellis
            message= _ "But you attacked us with these monsters."
        [/message]
        [message]
            speaker=Growloff
            message= _ "They are my friends. I’ve been so lonely here...and you killed so many of my friends. They could be your friends too. Spare me, and I’ll give you my favorite cuttle fish. His name is Inky."
        [/message]
        [message]
            speaker=Kai Krellis
            message= _ "I do not want a dangerous beast like that!"
        [/message]
        [message]
            speaker=Growloff
            message= _ "But he’s tame! Really! He understands dozens of commands. He’ll do what you tell him. He’s a really nice fish."
        [/message]
        [message]
            speaker=Cylanna
            message= _ "Maybe we could use a pet sea monster."
        [/message]
        [message]
            speaker=Kai Krellis
            message= _ "Very well. I will take the cuttle fish. But do not trouble us again, or I shall kill you and all the rest of your pets."
        [/message]
        [message]
            speaker=Growloff
            message= _ "Of course, of course. I promise! I never wanted to hurt you nice people anyway."
        [/message]
        [unit]
            x=6
            y=3
            type=Cuttle Fish
            side=1
            id=Inky
            name= _ "Inky"
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_HEALTHY}
            [/modifications]
            {IS_LOYAL}
            animate=yes
        [/unit]
        [message]
            speaker=Kai Krellis
            message= _ "Right. Tell me how to control this thing."
        [/message]

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

    {HERO_DEATHS}
[/scenario]
