#textdomain wesnoth-thot
[scenario]
    name=_"Mages and Drakes"
    id="07_Mages_and_Drakes"
    next_scenario="08_Fear"
    victory_when_enemies_defeated=yes

    map_data="{@campaigns/The_Hammer_of_Thursagan/maps/mages_and_drakes.map}"

    {DEFAULT_SCHEDULE}
    {DEFAULT_MUSIC_PLAYLIST}
    {VICTORY_AND_DEFEAT_MUSIC}

    {TURNS 30 24 18}	# BALANCE

    [side]
        type="Dwarvish Fighter"
        description="Aiglondur"
        user_description=_"Aiglondur"
        canrecruit="1"
        side="1"
        controller="human"
        team_name="northern_alliance"
        fog=no
        shroud=no
        recruit="Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Guardsman"
        {GOLD 120 100 80}	# BALANCE
    [/side]

    [side]
        type=Great Mage
        description=Master Perrin
        user_description= _ "Master Perrin"
        profile=portraits/perrin.png
        side=2
        canrecruit=yes
        team_name=northern_alliance
        recruit=Mage
        {GOLD 140 120 100}	# BALANCE
        [ai]
            {ATTACK_DEPTH 1 3 5}
            passive_leader=yes
            recruitment_pattern=mixed fighter
        [/ai]
    [/side]

    {STARTING_VILLAGES 2 7}

    [side]
        type=Drake Flameheart
        description=Glashal
        user_description= _ "Glashal"
        side=3
        canrecruit=yes
        team_name=drakes
        recruit=Drake Fighter,Drake Glider,Drake Burner,Drake Clasher
        {GOLD 100 120 140}	# BALANCE
        {INCOME 5 8 10}
        [ai]
            {ATTACK_DEPTH 3 4 5}
            passive_leader=no
        [/ai]
    [/side]

    {@campaigns/The_Hammer_of_Thursagan/utils/herodeaths.cfg}
    {@campaigns/The_Hammer_of_Thursagan/utils/macros.cfg}

    [event]
        name="start"

        [recall]
            description="Angarthing"
            x,y=8,17
        [/recall]

        [recall]
            description="Ratheln"
        [/recall]

        [unit]
            type=White Mage
            description="Preceptor"
            user_description=_ "Preceptor"
            side=2
            x,y=12,14
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_INTELLIGENT}
            [/modifications]
        [/unit]

        [unit]
            type=Red Mage
            description="Warder"
            user_description=_ "Warder"
            side=2
            x,y=14,14
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_STRONG}
            [/modifications]
        [/unit]

        [message]
            speaker="Preceptor"
            message=_"Master Perrin!  A mage comes down from the High Pass, with a company of dwarves. They are well-armed, but not in battle array."
        [/message]
        [message]
            speaker="Master Perrin"
            message=_"That will be Ratheln, I expect. Hail!  You on the road! Who comes bearing arms into our valley?"
        [/message]
        [message]
            speaker="Glashal"
            message=_"'Our' valley, says Master Perrin. The arrogance of these mages is intolerable!"
        [/message]
        [message]
            speaker="Aiglondur"
            message=_"A delegation of the Northern Alliance, traveling east. I believe we've found a friend of yours in the High Pass."
        [/message]
        [message]
            speaker="Master Perrin"
            message=_"Well met, then. But if you intend to travel east of here, beware of the nest of drakes in the cliffs near the valley's end. They were here before us, and have become more hostile to travelers of late."
        [/message]
        [message]
            speaker="Glashal"
            message=_"The axe-bearers must not be let near our nestlings. Attack!"
        [/message]

        [objectives]
            side="1"
            silent="no"
            [objective]
                description=_"Defeat Glashal"
                condition="win"
            [/objective]
            [objective]
                description=_"Death of Aiglondur"
                condition="lose"
            [/objective]
            [objective]
                description=_"Death of Angarthing"
                condition="lose"
            [/objective]
            [objective]
                description=_"Time runs out"
                condition="lose"
            [/objective]
        [/objectives]
    [/event]

    [event]
        name=victory
        first_time_only=yes

        [if]
            [have_unit]
                description="Master Perrin"
            [/have_unit]

            [then]
                [message]
                    speaker="Master Perrin"
                    message=_"We're grateful for your assistance. And I'd like to send at least one of our senior apprentices with you to the east. It has come time for them to be journeymen...and I sense something being born to the east that I do not like the feel of."
                [/message]

                [message]
                    speaker="Aiglondur"
                    message=_"What sort of thing?"
                [/message]

                [message]
                    speaker="Master Perrin"
                    message=_"There is some great magic brewing. Something...evil. I feel its traces in the currents of the earth and air."
                [/message]

#ifdef EASY
                [unit]
                    type=Mage
                    gender=female
                    description="Lorinne"
                    user_description=_ "Lorinne"
                    experience=40 # of 60
                    side=1
                [/unit]
#endif
                [unit]
                    type=Mage
                    description="Darchas"
                    user_description=_ "Darchas"
                    experience=40 # of 60
                    side=1
                [/unit]

#ifdef HARD
                [message]
                    speaker="Ratheln"
                    message=_"I would travel east with you if I could, but I have duties I must take up here."
                [/message]
                [message]
                    speaker="Aiglondur"
                    message=_"You have your duty, as we have ours. Fare well."
                [/message]
                [kill]
                    description="Ratheln"
                [/kill]
#else
                [message]
                    speaker="Ratheln"
                    message=_"Perrin, I owe these dwarves a debt; I think it is my duty to aid them in their journey. I'll return with your apprentices as soon as I may."
                [/message]

                [message]
                    speaker="Master Perrin"
                    message=_"As you will. Go safely and return swiftly."
                [/message]
#endif
            [/then]
            [else]
                [message]
                    speaker="Ratheln"
                    message=_"I would travel east with you if I could, but the school will need me all the more with Master Perrin gone."
                [/message]
                [message]
                    speaker="Aiglondur"
                    message=_"You have your duty, as we have ours. Fare well."
                [/message]
                [message]
                    speaker="Angarthing"
                    message=_"I think we will regret Perrin's passing. There is much he might have told us."
                [/message]
                [kill]
                    description="Ratheln"
                [/kill]
            [/else]
        [/if]
        [endlevel]
            result=victory
        [/endlevel]
    [/event]
[/scenario]
