#textdomain wesnoth-nr
[scenario]
    # Set up basic scenario data, music, turns and default timeschedule.
    # Killing enemy AI is not enough, player needs to reach Eryssa in time.
    id=08a_Elvish_Princess
    name= _ "Elvish Princess"
    map_data="{campaigns/Northern_Rebirth/maps/08a_Elvish_Princess.map}"
    {TURNS4 24 21 18 15}
    {DEFAULT_SCHEDULE}
    victory_when_enemies_defeated=no
    next_scenario=09a_Introductions

    {INTRO_AND_SCENARIO_MUSIC "knalgan_theme.ogg" "breaking_the_chains.ogg"}
    {EXTRA_SCENARIO_MUSIC "elvish-theme.ogg"}
    {EXTRA_SCENARIO_MUSIC "nunc_dimittis.ogg"}

    # Story, as usual in parts with portraits
    # wmllint: local spelling Bitterhold
    [story]
        [part]
            story= _ "After securing the help of the two lich-mages, the party returned to Knalga."
        [/part]

        {STORY_PART_HAMEL (_ "Och, that was a piece o’ good work, lad, getting both the lich-mages and Stalrag on our side. Now let’s plan our way to bringing Rakshas down...")}
        [part]
            story= _ "The lich-mages sent forth gryphons to scout out the number, formation and deployment of the orcish forces, and to seek allies as well."
        [/part]
        [part]
            story= _ "One day a gryphon came screeching into the caves with the news that a large elvish force approached from the east. Messages were quickly dispatched to the elves asking their purpose. The haughty reply was that their purpose was none of any dwarf’s or human’s business, and that all would be well-advised to stay in their holes when the elves passed near."
        [/part]
        [part]
            story= _ "Before the humans and dwarves could respond to this message, another gryphon arrived with the news that the orcs were holding an elvish sorceress prisoner in the castle of Bitterhold, less than a day’s march distant to the northwest. The castle had attracted notice because it had been recently rebuilt and manned by a unit known to include some of the hardiest and toughest of veteran orcs."
        [/part]
        [part]
            story= _ "Gryphons and a picked force of human woodsmen were sent out that very night, and less than two days later managed to ambush an orcish messenger on the road out of Bitterhold. The messenger was carrying a ransom demand to the elves — for the sorceress was, in fact, a princess of the highest rank."
        [/part]
        [part]
            story= _ "The leaders met in council, considering what to do..."
        [/part]

        {STORY_PART_TALLIN (_ "This kidnapped princess explains a great deal. It is not easy to draw the elves out of their forests.")}

        {STORY_PART_HAMEL (_ "Aye, lad. Her kin will have come either to do battle or pay ransom. By the looks of things, they’ve busked themselves for either.")}
        # wmllint: local spelling Pah
        {STORY_PART_ARTHIAN (_ "Pah! Who cares? Let the elves and orcs chop each other into mincemeat. It will just make things easier for us.")}

        {STORY_PART_STALRAG (_ "Hah! I ken yer brain has rotted awa’ entire. Think on it, skull-head, what would happen if the elves dinna’ fight and pay the ransom instead?")}

        {STORY_PART_ARTHIAN (_ "Do you want to die, dwarf?")}

        {STORY_PART_FATHER_MORVIN (_ "Peace, peace! If you two want to kill something, there are plenty of orcs outside.")}

        {STORY_PART_FATHER_MORVIN (_ "But you do have a point, Stalrag, That ransom will buy more troops and weapons for the orcs, worse news for us.")}

        {STORY_PART_TALLIN (_ "I think we have a chance to make some new allies here...")}

        [part]
            story= _ "Allies? I take it we’re to go to them and ask them to join us in return for our help in rescuing their Princess? You heard their message — those elves have got their noses so high in the air they canna’ see over them. They wouldna’ ally themselves with the likes o’ us."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "Of course we won’t do that. As a matter of fact I think it’s best that we don’t say anything to the elves at all."
            background=portraits/Tallin.png
        [/part]
        [part]
            story= _ "Why d’ye say that?"
            background=portraits/Stalrag.png
        [/part]
        [part]
            story= _ "Well, suppose we do join up with the elves — assuming they will let us — and we make a combined raid on the fortress, what will the orcs most likely do when the ransom slips from their grasp?"
            background=portraits/Tallin.png
        [/part]
        [part]
            story= _ "Kenning the way of orcs, belike they’d kill the princess, especially if it seems the rescue ha’ any chance of succeeding."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "Exactly. On the other hand, if we raided the fortress while the orcs were talking ransom with the elves, the orcs might hesitate just long enough."
            background=portraits/Tallin.png
        [/part]
        [part]
            story=  _ "Hmmm... I think you’ve the right of it, lad. Most orcs being thicker than a wood-knot, I’d lay odds on Rakshas giving strict orders that she not be touched without his direct word on the matter."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "But it would be unwise to trust that the orcs will stay stupid forever. If we do go ahead with this raid, we are going to have to be in and out like lightning."
            background=portraits/Tallin.png
        [/part]
        [part]
            story= _ "My Shinsplitters will be invaluable for a job like this. They are fierce and never give ground and will not stop attacking until either they or their opponent lies dead. No fortress can stand long against them."
            background=portraits/Stalrag.png
        [/part]
        [part]
            story= _ "Ha ha, I like this plan. Once we get our hands on this little sorceress the elves will be forced to do whatever we want them to."
            background=portraits/Arthian.png
        [/part]
        [part]
            story= _ "Remember, Ro’Arthian, we need willing allies rather than resentful lackeys that would turn on us at the first reverse. If we rescue their princess, the elves may yet choose not to help us, but that is a risk we’ll have to take."
            background=portraits/Father_Morvin.png
        [/part]
        [part]
            story= _ "Elves are deeply honor-bound, especially in matters that touch their kin. If we rescue the princess, I am certain the deed will not go without reward."
            background=portraits/Sister_Thera.png
        [/part]
        [part]
            story= _ "And at the very least, the orcs will not be able to raise troops with ransom money they don’t have."
            background=portraits/Tallin.png
        [/part]
        [part]
            story= _ "Bah... weak, soft humans. Have it your way if you must."
            background=portraits/Arthian.png
        [/part]
        [part]
            story= _ "So it shall be, Tallin, I’ll hold the caves here while you and Stalrag’s Shinsplitters fare to Bitterhold. The orcs still haven’t given up their attack on our southern tunnels."
            background=portraits/Hamel.png
        [/part]
        [part]
            story= _ "Then to arms, men! For Knalga and the princess!"
            background=portraits/Tallin.png
        [/part]
        [part]
            show_title=yes
            {TO_ELVISH_PRINCESS}
        [/part]
    [/story]

    # Prestart event, set objectives
    [event]
        name=prestart

        [objectives]
            side=1
            [objective]
                description= _ "Turns run out"
                condition=win
                show_turn_counter=yes
            [/objective]
            {ALTERNATIVE_OBJECTIVE_BONUS (_ "Rescue the Princess")}

            [objective]
                description= _ "Death of Tallin"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro’Arthian"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Ro’Sothian"
                condition=lose
            [/objective]
        [/objectives]
    [/event]

    # Players side
    [side]
        type=Lieutenant
        id=Tallin
        name=_ "Tallin"
        canrecruit=yes
        side=1
        controller=human
        recruit=Peasant,Woodsman,Thug,Poacher,Spearman,Bowman,Gryphon,Dwarvish Fighter,Dwarvish Thunderer,Dwarvish Ulfserker,Dwarvish Scout,Footpad
        team_name=knalgans
        user_team_name=_"Knalgans"
    [/side]

    # Opposing AI
    [side]
        type=Orcish Warlord
        id=Atul
        name= _ "Atul"
        canrecruit=yes
        side=2
        {GOLD4 200 300 400 500}
        {INCOME4 10 15 20 25}
        recruit=Orcish Grunt,Orcish Archer,Wolf Rider,Orcish Assassin,Troll Whelp
        team_name=Orcs
        user_team_name=_"Orcs"
        {FLAG_VARIANT ragged}
    [/side]

    # Empty side for guarding units
    [side]
        side=3
        no_leader=yes
        team_name=Orcs
        user_team_name=_"Orcs"
    [/side]

    # Prestart event, place some decorations, recall heroes, place guards
    [event]
        name=prestart

        {SCATTER_IMAGE (terrain=Gg) 6 scenery/oak-leaning.png}
        {PLACE_IMAGE "units/elves-wood/sorceress.png~RC(magenta>red)" 11 14}
        {PLACE_IMAGE items/cage.png 11 14}
        {PLACE_IMAGE scenery/dwarven-doors-closed.png 18 1}
        [remove_shroud]
            side=1
            x=0-30
            y=0-21
        [/remove_shroud]
        {RECALL_SUPPORTER}
        [recall]
            id=Abhai
        [/recall]
        [recall]
            id=Camerin
        [/recall]
        [recall]
            id=Father Morvin
        [/recall]
        [recall]
            id=Sister Thera
        [/recall]
        [recall]
            id=Krash
        [/recall]
        [recall]
            id=Elenia
        [/recall]

        [unit]
            type=Dwarvish Lord
            id=Stalrag
            name= _ "Stalrag"
            profile=portraits/Stalrag.png
            x=15
            y=2
            side=1
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_HEALTHY}
            [/modifications]
            {IS_LOYAL}
        [/unit]
        [unit]
            type=Ancient Lich
            id="Ro'Arthian"
            name= _ "Ro’Arthian"
            profile=portraits/Arthian.png
            side=1
            x=15
            y=2
            [modifications]
                {TRAIT_LOYAL}
            [/modifications]
            {IS_HERO}
        [/unit]
        [unit]
            type=Lich
            id="Ro'Sothian"
            name= _ "Ro’Sothian"
            profile=portraits/Ro_Sothian.png
            side=1
            x=15
            y=2
            [modifications]
                {TRAIT_LOYAL}
            [/modifications]
            {IS_HERO}
        [/unit]

        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 10 13}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 11 15}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 12 14}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 11 13}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 13 11}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 15 14}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 9 16}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 7 14}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warlord" 9 12}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Slurbow" 12 13}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Slurbow" 10 14}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Slurbow" 19 16}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Slurbow" 18 15}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Slurbow" 6 10}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 14 9}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 15 10}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 17 11}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 18 11}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 15 19}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 13 19}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 7 18}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 6 17}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 4 16}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 4 15}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 4 12}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 4 11}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 8 11}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 9 11}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 8 16}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 9 17}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 13 17}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 16 13}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Warrior" 16 14}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 12 10}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 14 11}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 16 12}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 16 15}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 14 16}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 12 17}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 10 17}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 7 16}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 6 14}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 6 13}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 7 12}
        {GENERIC_GUARDIAN_UNIT 3 "Orcish Crossbowman" 10 10}
    [/event]

    # do the talk
    [event]
        name=start
        [message]
            speaker=narrator
            message= _ "Upon emerging from the mouth of a hidden tunnel near the fortress, Tallin and his men surveyed the scene before them."
            image=wesnoth-icon.png
        [/message]
        [message]
            id=Tallin
            message= _ "There’s the fortress of Bitterhold. A grim and impressive pile indeed..."
        [/message]
        [message]
            role=Supporter
            message= _ "They have dammed the river to make a moat for their castle."
        [/message]
        [message]
            id="Ro'Arthian"
            message= _ "Are we here to sight-see or to rescue this blasted sorceress? And if you really want to sight-see, then check out that orcish encampment south of us."
        [/message]
        [message]
            id=Tallin
            message= _ "Just our luck to be here when they’re mustering a field force — probably to attack the caves. Avoid them if you can, kill them if you can’t."
        [/message]
        [message]
            id=Atul
            message= _ "INTRUDERS! KILL THEM!!"
        [/message]
    [/event]

    # Freeing Eryssa event - victory proceed to introductions
    [event]
        name=moveto
        [filter]
            side=1
            x=11
            y=14
        [/filter]

        [remove_item]
            x=11
            y=14
        [/remove_item]
        [unit]
            type=Elvish Sorceress
            side=1
            id=Eryssa
            name= _ "Eryssa"
            profile=portraits/Eryssa.png
            x=11
            y=14
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_DEXTROUS}
            [/modifications]
            {IS_LOYAL}
        [/unit]
        [message]
            id=Eryssa
            message= _ "I am free! Thank you, my saviors. Who has come to rescue me from vile captivity?"
        [/message]
        [message]
            id=Tallin
            # wmllint: local spelling outta
            message= _ "Later, princess, first let’s get outta — uh, let us take our leave of this place as swiftly as may be!"
        [/message]
        [message]
            id=Eryssa
            message= _ "Lead; I will follow."
        [/message]
        [endlevel]
            result=victory
            bonus=no
        [/endlevel]
    [/event]

    # Didn't make it in time, still victory but go to stolen gold
    [event]
        name=time over

        [message]
            race=orc
            message= _ "Hey, those intruders are going to free the elf! We can’t let that happen! Kill her! Kill the elf!"
        [/message]
        [message]
            id=Tallin
            message= _ "Darn it! We weren’t fast enough."
        [/message]
        [endlevel]
            result=victory
            next_scenario=10a_Stolen_Gold
        [/endlevel]
    [/event]

    # Set a symbol that will correctly set the brothers and Stalrag death events for this and future scenarios
#define ALLIED_LICH
#enddef
    # Load death events
    {campaigns/Northern_Rebirth/utils/herodeaths.cfg}
[/scenario]
