#textdomain wesnoth-After_the_Storm

[scenario]
    id=07B_Dark_Sea
    name= _ "Dark Sea"
    {MAP 07B_Dark_Sea.map}
    {TURNS 22 20 20}
    next_scenario=08A_Interim
    victory_when_enemies_defeated=no

    {H_DEATHS}

    {SCENARIO_MUSIC "revelation.ogg"} {CONTINUE_PLAYING_STORY_MUSIC_FIRST}

    {STORYTXT_DARK_SEA}

    {LONGDARK3} {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK3} {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK3} {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK3} {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK4} {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK4} {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK4} {GLOBAL_LIGHTING_BAD_NIGHT}
    {LONGDARK4} {GLOBAL_LIGHTING_BAD_NIGHT}

    {SHAXTHAL_SET_SURFACE_VARIATIONS_FLAG}

    [event]
        name=turn 8 end
        # The night! Will last! FOREVER!
        [replace_schedule]
            {ENDLESS_NIGHT} {GLOBAL_LIGHTING_BAD_NIGHT}
        [/replace_schedule]
    [/event]

    # wmllint: validate-off
    [side]
        side=1
        controller=human
        save_id=Anya
        team_name=good
        user_team_name= _ "team_name^Anya"

        shroud=yes

        {GOLD 250 240 230}

        # wmllint: recognize Anya
        {CHARACTER_STATS_ANYA}
        canrecruit=yes
        # Start with an L3, teleportation is rather important here.
        type=Nightshade Fire
        # clobber IS_HERO from the stats macro
        {NO_OVERLAYS_NO_ELLIPSE}
    [/side]
    # wmllint: validate-on

    {STARTING_VILLAGES 1 6}

    [side]
        side=2
        controller=human
        save_id=Durvan
        team_name=good
        user_team_name= _ "team_name^Durvan"
        {ALLIANCE_FLAG}

        # wmllint: recognize Durvan

        {NO_ECONOMY}
        no_leader=yes
        hidden=yes
    [/side]

    [side]
        side=3
        team_name=evil
        user_team_name= _ "team_name^Kalari"
        {CHAOS_FLAG}

        {GOLD 120 130 140}
        recruit=Chaos Raider,Chaos Invoker,Chaos Invader

        canrecruit=yes
        type=Chaos Razerman
        id=Mereldyan
        name= _ "Mereldyan"
        facing=sw
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_RESILIENT}
        [/modifications]

        [village]
            x,y=46,22
        [/village]

        [village]
            x,y=44,23
        [/village]

        [village]
            x,y=50,27
        [/village]

        [village]
            x,y=51,29
        [/village]

        [village]
            x,y=44,21
        [/village]

#ifndef EASY
        {GENERIC_UNIT () (Hell Guardian)     54 23} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}
        {GENERIC_UNIT () (Serpent Messenger) 51 22} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING se}
#endif
    [/side]

    [side]
        side=4
        team_name=evil
        user_team_name= _ "team_name^Kalari"
        {CHAOS_FLAG}

        {GOLD 120 130 140}
        recruit=Chaos Invader,Chaos Bowman,Demon

        canrecruit=yes
        type=Demon Warrior
        id=Jarayavel
        name= _ "Jarayavel"
        gender=male
        facing=ne
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_DEXTROUS}
        [/modifications]

        [village]
            x,y=54,18
        [/village]

        [village]
            x,y=57,18
        [/village]

        [village]
            x,y=60,20
        [/village]

        [village]
            x,y=60,25
        [/village]

        {GENERIC_UNIT () (Chaos Invader) 56 19} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}
        {GENERIC_UNIT () (Chaos Invader) 58 21} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}
        {GENERIC_UNIT () (Chaos Invader) 46 24} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING sw}
        {GENERIC_UNIT () (Chaos Invader) 48 26} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING sw}
    [/side]

    [side]
        side=5
        team_name=evil
        user_team_name= _ "team_name^Uria"
        {CHAOS_FLAG}

        {GOLD 110 120 130}
        recruit=Chaos Invoker,Imp,Chaos Headhunter

        canrecruit=yes
        type=Chaos Magus
        id=Zaraphor
        name= _ "Zaraphor"
        facing=nw
        [modifications]
            {TRAIT_RESILIENT}
            {TRAIT_INTELLIGENT}
        [/modifications]

        [village]
            x,y=70,26
        [/village]
    [/side]

    {STARTING_VILLAGES 5 4}

    [side]
        side=6
        team_name=evil
        user_team_name= _ "team_name^Uria"
        {CHAOS_FLAG}

        {GOLD 140 145 150}
        recruit=Demon,Chaos Hound,Psy Crawler

        canrecruit=yes
        type=Demon Spelldancer
        id=Elesmeera
        name= _ "Elesmeera"
        facing=ne
        [modifications]
            {TRAIT_STRONG}
            {TRAIT_RESILIENT}
        [/modifications]

        [village]
            x,y=42,31
        [/village]

        [village]
            x,y=46,35
        [/village]

        [village]
            x,y=49,33
        [/village]

        [village]
            x,y=48,28
        [/village]
    [/side]

    #
    # Delayed enemy sides.
    # These are configured by a later event.
    # The no_leader=yes spec is left out so wmllint stops complaining
    # about shit it doesn't understand.
    #

#define FINALE_A_AI_NO_VILLAGE_GRABBING
    {AI_SIMPLE_ALWAYS_ASPECT village_value           0.0}
    {AI_SIMPLE_ALWAYS_ASPECT scout_village_targeting 0.0}
#enddef

#define FINALE_A_DELAYED_SIDE _AI_CONFIGURATION
    hidden=yes
    controller=null

    {ai/aliases/stable_singleplayer.cfg}
    [ai]
        {_AI_CONFIGURATION}
    [/ai]
#enddef

    [side]
        side=7
        team_name=evil
        user_team_name= _ "team_name^Shaxthals"
        {CHAOS_FLAG}

        no_leader=yes
        {FINALE_A_DELAYED_SIDE ()}
        {NO_ECONOMY}
    [/side]

    [side]
        side=8
        team_name=evil
        user_team_name= _ "team_name^Shaxthals"
        {CHAOS_FLAG}

        no_leader=yes
        {FINALE_A_DELAYED_SIDE (
            {FINALE_A_AI_NO_VILLAGE_GRABBING}
        )}
        {NO_ECONOMY}
    [/side]

    [side]
        side=9
        team_name=evil
        user_team_name= _ "team_name^Shaxthals"
        {CHAOS_FLAG}

        no_leader=yes
        {FINALE_A_DELAYED_SIDE ()}
        {NO_ECONOMY}
    [/side]

    [side]
        side=10
        team_name=evil
        user_team_name= _ "team_name^Uria"
        {CHAOS_FLAG}
        color=pink

        no_leader=yes
        {FINALE_A_DELAYED_SIDE ()}
        {NO_ECONOMY}
    [/side]

    [side]
        side=11
        team_name=evil
        user_team_name= _ "team_name^Uria"
        {CHAOS_FLAG}
        color=gold

        no_leader=yes
        {FINALE_A_DELAYED_SIDE ()}
        {NO_ECONOMY}
    [/side]

    [side]
        side=12
        team_name=evil
        user_team_name= _ "team_name^Uria"
        {CHAOS_FLAG}
        color=gold

        no_leader=yes
        {FINALE_A_DELAYED_SIDE (
            {FINALE_A_AI_NO_VILLAGE_GRABBING}
        )}
        {NO_ECONOMY}
    [/side]

    [side]
        side=13
        team_name=evil
        user_team_name= _ "team_name^Uria"
        {CHAOS_FLAG}
        color=gold

        no_leader=yes
        {FINALE_A_DELAYED_SIDE ()}
        {NO_ECONOMY}
    [/side]

    [side]
        side=14
        team_name=good,evil
        user_team_name= _ "team_name^?"
        {RAGGED_FLAG}
        color=lightblue
        share_vision=none
        scroll_to_leader=no

        no_leader=yes
        hidden=yes
        controller=null
        {NO_ECONOMY}

        {ai/aliases/stable_singleplayer.cfg}
        [ai]
            ai_algorithm=idle_ai
        [/ai]
    [/side]

#undef FINALE_A_DELAYED_SIDE
#undef FINALE_A_AI_NO_VILLAGE_GRABBING

    [label]
        x,y=53,23
        text= _ "Ivæthea’s Bridge" # wmllint: no spellcheck
    [/label]

    [label]
        x,y=55,22
        text= _ "North Keep"
    [/label]

    [label]
        x,y=50,24
        text= _ "South Keep"
    [/label]

    {PLACE_IMAGE ("items/scarecrow.png")   42 22}
    {PLACE_IMAGE ("items/straw-bale2.png") 43 23}
    {PLACE_IMAGE ("items/straw-bale1.png") 58 15}
    #{PLACE_IMAGE ("items/grain-sheaf.png") 56 16}
    {PLACE_IMAGE ("items/scarecrow.png")   74 26}
    {PLACE_IMAGE ("items/straw-bale2.png") 74 25}
    {PLACE_IMAGE ("items/straw-bale1.png") 73 27}

    {PLACE_IMAGE ("scenery/rock2.png") 30 12}
    {PLACE_IMAGE ("scenery/rock1.png")  7 12}

    {PLACE_IMAGE ("items/burial.png") 36 48}
    {PLACE_IMAGE ("items/burial.png") 27 61}
    {PLACE_IMAGE ("items/burial.png") 60 50}
    {PLACE_IMAGE ("items/burial.png") 75 54}

    {PLACE_IMAGE ("items/bonestack.png") 67 62}
    {PLACE_IMAGE ("items/bonestack.png") 62 55}
    {PLACE_IMAGE ("items/bonestack.png") 34 54}

    {PLACE_IMAGE ("scenery/mine-abandoned.png") 45 54}
    {PLACE_IMAGE ("scenery/mine-abandoned.png") 47 55}
    {PLACE_IMAGE ("scenery/mine-abandoned.png") 30 30}

    {PLACE_IMAGE ("items/altar-evil.png") 68 57}

    {PLACE_IMAGE ("items/bones.png~FL(horiz)") 64 38}
    {PLACE_IMAGE ("scenery/rock3.png")         11 37}

    {PLACE_IMAGE ("scenery/shipwreck-1.png")            7 37}
    {PLACE_IMAGE ("scenery/shipwreck-1.png")           14 62}
    {PLACE_IMAGE ("scenery/shipwreck-1.png")            4 56}

    {PLACE_IMAGE ("scenery/village-human-burned1.png") 18 29}

    {PLACE_IMAGE ("scenery/signpost.png") 58 18}

    {PLACE_IMAGE ("items/stone-tablet.png") 29 13}

    [event]
        name=moveto
        [filter]
            side=1,2
            x,y=58,18
        [/filter]

        [allow_undo][/allow_undo]

        [message]
            speaker=narrator
            image=scenery/signpost.png
            message= _ "North Kelenvar" # wmllint: no spellcheck
        [/message]
    [/event]

    {PLACE_IMAGE ("scenery/signpost.png") 44 27}

    [event]
        name=moveto
        [filter]
            side=1,2
            x,y=44,27
        [/filter]

        [allow_undo][/allow_undo]

        [message]
            speaker=narrator
            image=scenery/signpost.png
            message= _ "South Kelenvar" # wmllint: no spellcheck
        [/message]
    [/event]

    {PLACE_IMAGE ("scenery/signpost.png") 57 51}

    [event]
        name=moveto
        [filter]
            side=1,2
            x,y=57,51
        [/filter]

        [allow_undo][/allow_undo]

        [message]
            speaker=narrator
            image=scenery/signpost.png
            message= _ "<s>Moon Guard Post</s>"
        [/message]
    [/event]

    [event]
        name=prestart

        {VARIABLE_DEFAULT swam_in_fountain_of_courage no}
        {VARIABLE_DEFAULT anya_has_mermaid_pendant    no}

        {VARIABLE spotted_daeira no}

        # BEGIN: finale sequence configuration

        # wmlindent: start ignoring
        {BUG_ON ({VARIABLE_NUMERICAL_NOT_EQUALS finale_status.length 1})
                ("E3S7B must be started from a finale scenario")}
        # wmlindent: stop ignoring

        #
        # Restore Elynia's side status from E3S6 (E3S7A.1 prestart)
        #

        [foreach]
            array=finale_status.side_1_units
            [do]
                {VARIABLE location.x recall}
                {VARIABLE location.y recall}

                [if]
                    {VARIABLE_LEXICAL_EQUALS this_item.id Anya}
                    {VARIABLE_LEXICAL_EQUALS this_item.type ("Nightshade Fire")}
                    #
                    # We want the stored Anya to replace the one we get by default here if
                    # she's already an L3 (very likely).
                    #
                    [then]
                        [store_starting_location]
                            side=1
                        [/store_starting_location]

                        {VARIABLE this_item.canrecruit yes}

                        {CLEAR_VARIABLE this_item.overlays}
                        {CLEAR_VARIABLE this_item.ellipse}
                    [/then]
                [/if]

                [unstore_unit]
                    variable=this_item
                    x,y=$location.x,$location.y
                    find_vacant=no
                [/unstore_unit]
            [/do]
        [/foreach]

        {CLEAR_VARIABLE location}

        #
        # Restore the carryover gold from E3S6 (E3S7A.1 prestart)
        #

        [gold]
            side=1
            amount=$finale_status.side_1_gold
        [/gold]

        #
        # TODO: carry the recruit list over from E3S6 instead of specifying
        #       it by hand here.
        #

        [allow_recruit]
            side=1
            type=Faerie Sprite,Skeleton,Skeleton Archer,Ghost,Vampire Bat,Walking Corpse,Footpad,Poacher,Thug,Ruffian
        [/allow_recruit]

        [allow_recruit]
            side=1
            type=Troll Whelp,Demon,Saurian Augur,Saurian Skirmisher
        [/allow_recruit]

        #
        # Recall units and create Ergea for the first time
        #

        # wmllint: recognize Irylean
        {RECALL_IRYLEAN_AT_LOCATION 56  5}
        # wmllint: recognize Ergea
        {RECALL_ERGEA_AT_LOCATION   54  5}
        # wmllint: recognize Cron
        {RECALL_CRON_AT_LOCATION    54  4}
        # wmllint: recognize Igor
        {RECALL_IGOR_AT_LOCATION    56  4}

        {FACE_DIRECTION side=1 s}

        [remove_shroud]
            side=1
            x=30-76
            y= 0-36
        [/remove_shroud]

        #
        # Side 2 is not enabled until a few turns later
        #

        [modify_side]
            side=2
            controller=null
            hidden=yes
        [/modify_side]

        {OBJECTIVES (
            side=1
            victory_string= _ "Current Objectives:"
            {OBJECTIVE_VICTORY ( _ "Capture Zaraphor’s keep and castle before turn 10")}

            {OBJECTIVE_DEFEAT  ( _ "Any number of enemy leaders standing on Zaraphor’s keep and castle by the start of turn 10")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Anya")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Irylean")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Ergea")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Cron")}

            {OBJECTIVE_CARRYOVER}
        )}

        {CLEAR_VARIABLE finale_status}
    [/event]

    [event]
        name=start

        {LOCK_VIEW}

        [message]
            speaker=Ergea
            message= _ "My scouts have just informed me that the bulk of the region’s defenses are already in motion and heading for our present location. They shall be here in just a few hours. It is possible that someone betrayed us, or..."
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Anya
            message= _ "... She is not coming back, is she?"
        [/message]

        [message]
            speaker=Igor
            message= _ "I thought we were all gonna fight together..."
        [/message]

        [message]
            speaker=Irylean
            message= _ "She must have had a good reason for leaving us like this, Anya. Well... I hope so, anyway. My lady, what about those reinforcements?"
        [/message]

        [scroll_to]
            x,y=66,23
        [/scroll_to]

        {HIGHLIGHT_GOAL x,y=66,23}

        [message]
            speaker=Ergea
            scroll=no
            message= _ "The old fort near the river city guards a second portal leading to the northern lands whence you came. I had arranged for your allies to arrive through it at dawn, but... this unexpected development jeopardizes the success of the entire operation."
        [/message]

        [message]
            speaker=Ergea
            scroll=no
            message= _ "We must secure that fort as swiftly as we may. It is only a few hours before dawn breaks. If we manage to distract our enemies for long enough, Elynia might have an opportunity to succeed in her mission."
        [/message]

        [scroll_to]
            x,y=53,23
        [/scroll_to]

        [message]
            speaker=Ergea
            scroll=no
            message= _ "The inhabitants of these lands are not too satisfied with the Iron Triad’s management. I advise that we try to gain their support and stir up a revolution — their numbers and resources may prove essential for what has yet to come."
        [/message]

        [message]
            speaker=Irylean
            message= _ "Let us get moving then. Anya shall lead the way!"
        [/message]

        [message]
            speaker=Anya
            message= _ "I... shall?"
        [/message]

        [message]
            speaker=Irylean
            message= _ "That’s what Elynia said in that note, did she not? But you don’t need to worry about the management aspect — we can help you with that. Your darkness powers and teleportation should be advantageous in the front line, but it’s more important that these men are led by someone with whom they are already well familiarized besides Elynia herself — another someone they can relate to, if you catch my drift."
        [/message]

        [message]
            speaker=Anya
            message= _ "... Wait... you mean..."
        [/message]

        [message]
            speaker=Irylean
            message= _ "Yes!"
        [/message]

        [message]
            speaker=Anya
            message= _ "(annoyed) Your rationale seems rather perverse, and it’s slightly offensive considering I have never... unlike... Ack! How about... we just... move on?!"
        [/message]

        [message]
            speaker=Ergea
            message= _ "I support the motion. This is no time for such frivolous chatter."
        [/message]

        {VARIABLE sep "• "}

        [transient_message]
            message= _ "You can now recruit the following unit types:"+"

$sep|"+_"Demon"+"
$sep|"+{TSTR_UNIT_TYPE_SAURIAN_AUGUR}+"
$sep|"+{TSTR_UNIT_TYPE_SAURIAN_SKIRMISHER}+"
$sep|"+{TSTR_UNIT_TYPE_TROLL_WHELP}
        [/transient_message]

        {CLEAR_VARIABLE sep}

        {REPLACE_SCENARIO_MUSIC "loyalists.ogg"}
        {APPEND_MUSIC           "breaking_the_chains.ogg"}

        {UNLOCK_VIEW}
    [/event]

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

        [message]
            speaker=Jarayavel
            message= _ "So bold— argh..."
        [/message]
    [/event]

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

        [message]
            speaker=Mereldyan
            message= _ "The Fist shall not tolerate your intrusion..."
        [/message]
    [/event]

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

        [message]
            speaker=Zaraphor
            # po: The 'Fist' is a yet unseen male demon.
            message= _ "The Fist knows... He knows everything... Flee while you can..."
        [/message]
    [/event]

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

        [message]
            speaker=Elesmeera
            message= _ "No, n— please no! My fair lady of the Storms, I— I did not have a choice! The Fist— I— I—"
        [/message]

        [message]
            speaker=Ergea
            message= _ "You betrayed me and my people. There is only one possible punishment for such a grave misdeed under my rule and you are well aware what it is."
        [/message]

        [message]
            speaker=Elesmeera
            message= _ "No! I beg you—"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            canrecruit=yes
            side=4,3
        [/filter]
        [filter_condition]
            [not]
                [have_unit]
                    canrecruit=yes
                    side=4,3
                    [not]
                        x,y=$x1,$y1
                    [/not]
                [/have_unit]
            [/not]
        [/filter_condition]

        [unit]
            animate=yes
            side=1
            id=Theneryr
            name= _ "Theneryr"
            type=Bowman
            x,y=49,21
            passable=yes
            {IS_LOYAL}
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]

        [unit]
            animate=yes
            side=1
            id=Maergon
            name= _ "Maergon"
            type=Bowman
            x,y=52,20
            passable=yes
            {IS_LOYAL}
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_INTELLIGENT}
            [/modifications]
        [/unit]

        [unit]
            animate=yes
            side=1
            id=Sergalyr
            name= _ "Sergalyr"
            type=Spearman
            x,y=51,26
            passable=yes
            {IS_LOYAL}
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_STRONG}
            [/modifications]
        [/unit]

        [unit]
            animate=yes
            side=1
            id=Muthel
            name= _ "Muthel"
            type=Thief
            gender=male
            x,y=58,24
            passable=yes
            {IS_LOYAL}
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_INTELLIGENT}
            [/modifications]
        [/unit]

        [unit]
            animate=yes
            facing=nw
            side=1
            id=Cyrelean
            name= _ "Cyrelean"
            type=Thief
            gender=female
            x,y=54,23
            passable=yes
            {IS_LOYAL}
            [modifications]
                {TRAIT_LOYAL}
                {TRAIT_RESILIENT}
            [/modifications]
        [/unit]

        [message]
            speaker=Cyrelean
            message= _ "The old order is coming to an end at last, and in time, freedom will be ours!"
        [/message]

        [message]
            speaker=Sergalyr
            message= _ "Let us purge the foul worshipers of Uria and reclaim our ancestors’ lands!"
        [/message]
    [/event]

    # NOTE: this should really only be used with even numbers
#define FINALE_A_LOOT_EVENT _SIDE _AMOUNT
    [event]
        name=die
        [filter]
            canrecruit=yes
            side={_SIDE}
        [/filter]

        [if]
            [have_unit]
                id=Durvan
            [/have_unit]
            [then]
                [sound]
                    name=gold.ogg
                [/sound]

                {VARIABLE temp_gold_retrieval_amount ("$("+{_AMOUNT}+" / 2)")}

                [message]
                    speaker=narrator
                    image="items/gold-coins-medium.png"
                    message= _ "Both playing teams retrieve $temp_gold_retrieval_amount pieces of gold."
                [/message]

                [gold]
                    side=1,2
                    amount=$temp_gold_retrieval_amount
                [/gold]

                {CLEAR_VARIABLE temp_gold_retrieval_amount}
            [/then]
            [else]
                {RETRIEVE_GOLD {_AMOUNT} }
            [/else]
        [/if]
    [/event]
#enddef

    {FINALE_A_LOOT_EVENT 3 160}

    {FINALE_A_LOOT_EVENT 4 154}

    {FINALE_A_LOOT_EVENT 5 90}

    {FINALE_A_LOOT_EVENT 6 86}

    ############################################################################
    #                                                                          #
    #                                   STAGE 2                                #
    #                                                                          #
    ############################################################################

    [event]
        name=turn 10

        [message]
            speaker=Anya
            message= _ "I don’t understand... It should be dawn already!"
        [/message]

        [message]
            speaker=Ergea
            message= _ "The... day of the Longest Night... This does not bode well."
        [/message]
    [/event]

    [event]
        name=turn 10
        [if]
            [have_unit]
                canrecruit=yes
                [filter_side]
                    [enemy_of]
                        side=1
                    [/enemy_of]
                [/filter_side]
                [filter_location]
                    x,y=66,23
                    radius=1
                [/filter_location]
            [/have_unit]
            [then]
                [message]
                    speaker=Irylean
                    message= _ "We failed to secure that portal in time! Without those reinforcements we will never make it! Retreat!"
                [/message]

                {ENDLEVEL_DEFEAT}
            [/then]
            [else]
                [fire_event]
                    name=stage 2
                [/fire_event]
            [/else]
        [/if]
    [/event]

#define FINALE_A_SETUP_SIDE _SIDE_NUMBER _LEADER_X _LEADER_Y _SIDE_WML _LEADER_WML
    #
    # Enemy leaders start facing wherever Anya is.
    #
    [store_direction]
        from_x={_LEADER_X}
        from_y={_LEADER_Y}
        [to]
            [filter]
                id=Anya
            [/filter]
        [/to]
    [/store_direction]

    [modify_side]
        side={_SIDE_NUMBER}
        controller=ai
        hidden=no

        # Base stats when not overridden by the _SIDE_WML
        # argument contents.

        gold=100
        {DEFAULT_ECONOMY}

        {_SIDE_WML}
    [/modify_side]

    [unit]
        canrecruit=yes
        side={_SIDE_NUMBER}
        x={_LEADER_X}
        y={_LEADER_Y}
        facing=$direction
        {_LEADER_WML}
    [/unit]

    {CLEAR_VARIABLE direction}
#enddef

#define FINALE_A_SETUP_MAP_STARTLOC_SIDE _SIDE_NUMBER _SIDE_WML _LEADER_WML
    [store_starting_location]
        side={_SIDE_NUMBER}
    [/store_starting_location]

    {FINALE_A_SETUP_SIDE {_SIDE_NUMBER} $location.x $location.y ({_SIDE_WML}) ({_LEADER_WML})}

    {CLEAR_VARIABLE location}
#enddef

#define FINALE_A_CAPTURE_INITIAL_VILLAGES _SIDE_NUMBER _RADIUS
    [store_locations]
        [filter]
            canrecruit=yes
            side={_SIDE_NUMBER}
        [/filter]
        variable=location
    [/store_locations]

    {CAPTURE_VILLAGES {_SIDE_NUMBER} $location.x $location.y {_RADIUS} }

    {CLEAR_VARIABLE location}
#enddef

#define FINALE_A_NO_DEMOLITION_ABILITY
    [object]
        silent=yes
        [effect]
            apply_to=remove_ability
            [abilities]
                {ABILITY_DEMOLITION_TEXT_ONLY}
            [/abilities]
        [/effect]
    [/object]
#enddef

    [event]
        name=main music playlist
        first_time_only=no

        {REPLACE_SCENARIO_MUSIC "casualties_of_war.ogg"}
        {APPEND_MUSIC           "legends_of_the_north.ogg"}
    [/event]

#define FINALE_A_RESET_MUSIC
    [fire_event]
        name=main music playlist
    [/fire_event]
#enddef

    [event]
        name=stage 2

        {LOCK_VIEW}

        #
        # Start enemies setup.
        #

        [remove_terrain_overlays]
            terrain=*^Xo
        [/remove_terrain_overlays]

        # Side 7

        {FINALE_A_SETUP_MAP_STARTLOC_SIDE 7 (
            {GOLD 175 190 220}
            recruit=Shaxthal Drone,Shaxthal Razorbird
        ) (
            canrecruit=yes
            type=Shaxthal War Drone
            [modifications]
                {TRAIT_BIOMECHANICAL}
                {TRAIT_STRONG}
            [/modifications]
        )}

        {GENERIC_UNIT 7 (Shaxthal Drone)  6 39} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface}
        {GENERIC_UNIT 7 (Shaxthal Drone)  4 42} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface}
        {GENERIC_UNIT 7 (Shaxthal Drone)  3 43} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface}

#ifndef EASY
        {GENERIC_UNIT 7 (Shaxthal Thunderbird)  2 41} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
        {GENERIC_UNIT 7 (Shaxthal Thunderbird)  7 38} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
#endif

        {GENERIC_UNIT 7 (Shaxthal Protector Drone) 60 58} {NO_UPKEEP_NO_OVERLAY} {FACING nw} {GUARDIAN}
        {GENERIC_UNIT 7 (Shaxthal Protector Drone) 66 52} {NO_UPKEEP_NO_OVERLAY} {FACING nw} {GUARDIAN}
        {GENERIC_UNIT 7 (Shaxthal Stormblade)      63 57} {NO_UPKEEP_NO_OVERLAY} {FACING nw} {GUARDIAN}
        {GENERIC_UNIT 7 (Shaxthal Rayblade)        64 55} {NO_UPKEEP_NO_OVERLAY} {FACING nw} {GUARDIAN}

        {GENERIC_UNIT 7 (Shaxthal Rayblade)      66 47} {NO_UPKEEP_NO_OVERLAY} {FACING ne} {GUARDIAN}
        {GENERIC_UNIT 7 (Shaxthal Assault Drone) 73 43} {NO_UPKEEP_NO_OVERLAY} {FACING nw} {GUARDIAN}

#ifndef EASY
        {GENERIC_UNIT 7 (Shaxthal Demolisher Drone) 59 51} {NO_UPKEEP_NO_OVERLAY} {FACING n}
        [+unit]
            [+modifications]
                {FINALE_A_NO_DEMOLITION_ABILITY}
            [/modifications]
        [/unit]
#endif

        {GENERIC_UNIT 7 (Shaxthal Demolisher Drone)  1 48} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
        [+unit]
            [+modifications]
                {FINALE_A_NO_DEMOLITION_ABILITY}
            [/modifications]
        [/unit]

        {GENERIC_UNIT 7 (Shaxthal Runner Drone) 58 45} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
        {GENERIC_UNIT 7 (Shaxthal Runner Drone) 58 46} {NO_UPKEEP_NO_OVERLAY} {FACING nw}

#ifndef EASY
        {GENERIC_UNIT 7 (Shaxthal Stormblade) 24 42} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
#endif

        {FINALE_A_CAPTURE_INITIAL_VILLAGES 7 8}

        # Side 8

        {FINALE_A_SETUP_MAP_STARTLOC_SIDE 8 (
            {GOLD 150 165 180}
            recruit=Shaxthal Drone,Shaxthal Razorbird
        ) (
            canrecruit=yes
            type=Shaxthal Enforcer Drone
            variation=surface
            [modifications]
                {TRAIT_BIOMECHANICAL}
                {TRAIT_QUICK}
            [/modifications]
        )}

#ifndef EASY
        {GENERIC_UNIT 8 (Shaxthal Assault Drone)  4 18} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN}
#endif
        {GENERIC_UNIT 8 (Shaxthal Assault Drone)  8 13} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN}

        {FINALE_A_CAPTURE_INITIAL_VILLAGES 8 8}

        # Side 9

        {FINALE_A_SETUP_MAP_STARTLOC_SIDE 9 (
            {GOLD 150 165 180}
            recruit=Shaxthal Drone,Shaxthal Razorbird,Shaxthal Rayblade
        ) (
            canrecruit=yes
            type=Shaxthal Demolisher Drone
            [modifications]
                {TRAIT_BIOMECHANICAL}
                {TRAIT_RESILIENT}
                {FINALE_A_NO_DEMOLITION_ABILITY}
            [/modifications]
        )}

        {GENERIC_UNIT 9 (Shaxthal Sentry Drone)  6 47} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface}
#ifndef EASY
        {GENERIC_UNIT 9 (Shaxthal Sentry Drone)  3 54} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface}
#endif

        {GENERIC_UNIT 9 (Shaxthal Drone)  3 52} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface}
        {GENERIC_UNIT 9 (Shaxthal Drone)  4 50} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {VARIATION surface}

        {FINALE_A_CAPTURE_INITIAL_VILLAGES 9 8}

        # Side 10

        {FINALE_A_SETUP_SIDE 10 (20) (41) (
            {GOLD 170 190 220}
            recruit=Chaos Raider,Chaos Invader,Chaos Bowman,Chaos Gunner
        ) (
            canrecruit=yes
            type=Chaos Cataphract
            id=Celwyngyr
            name= _ "Celwyngyr"
            [modifications]
                {TRAIT_RESILIENT}
                {TRAIT_INTELLIGENT}
            [/modifications]
        )}

        {FINALE_A_CAPTURE_INITIAL_VILLAGES 10 4}

        # Side 11

        {FINALE_A_SETUP_SIDE 11 (31) (55) (
            {GOLD 180 200 220}
            recruit=Chaos Headhunter,Chaos Invoker,Chaos Hound
        ) (
            canrecruit=yes
            type=Chaos Soulhunter
            id=Morol
            name= _ "Morol"
            [modifications]
                {TRAIT_INTELLIGENT}
                {TRAIT_STRONG}
            [/modifications]
        )}

        {FINALE_A_CAPTURE_INITIAL_VILLAGES 11 5}

        # Side 12

        {FINALE_A_SETUP_SIDE 12 (69) (45) (
            {GOLD 180 195 210}
            recruit=Skeleton,Skeleton Archer,Ghost,Ghoul,Walking Corpse
        ) (
            canrecruit=yes
            type=Lich
            id=Mal Fyrgwynn
            name= _ "Mal Fyrgwynn"
            [modifications]
                {TRAIT_UNDEAD}
                {TRAIT_RESILIENT}
            [/modifications]
        )}

        {GENERIC_UNIT 12 (Necrophage) 67 43} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}
        {GENERIC_UNIT 12 (Necrophage) 68 47} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}

        {GENERIC_UNIT 12 (Chocobone) 72 47} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}
        {GENERIC_UNIT 12 (Chocobone) 70 42} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}

        {GENERIC_UNIT 12 (Spectre) 20 38} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}

        # Not guardians
#ifndef EASY
        {GENERIC_UNIT 12 (Chocobone) 19 44} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
        {GENERIC_UNIT 12 (Chocobone) 17 39} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
        {GENERIC_UNIT 12 (Chocobone) 25 41} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
#endif

        {GENERIC_UNIT 12 (Wraith) 34 51} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}

        {GENERIC_UNIT 12 (Wraith)  6 19} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}

#ifndef EASY
        {GENERIC_UNIT 12 (Death Knight) 34 55} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
        {GENERIC_UNIT 12 (Deathblade)   35 55} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
        {GENERIC_UNIT 12 (Bone Shooter) 34 54} {NO_UPKEEP_NO_OVERLAY} {FACING ne}
        {GENERIC_UNIT 12 (Revenant)     33 55} {NO_UPKEEP_NO_OVERLAY} {FACING ne}

        {GENERIC_UNIT 12 (Chocobone) 30 59} {NO_UPKEEP_NO_OVERLAY} {FACING ne} # Not guardian either
#endif

        {GENERIC_UNIT 12 (Chocobone) 32 49} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}
        {GENERIC_UNIT 12 (Chocobone) 37 51} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}

        {FINALE_A_CAPTURE_INITIAL_VILLAGES 12 4}

        # Side 13

        {FINALE_A_SETUP_SIDE 13 (65) (57) (
            {GOLD 150 165 180}
            recruit=Chaos Gunner,Chaos Invoker,Automaton,Chaos Raider
        ) (
            canrecruit=yes
            type=Demon Warrior
            gender=male
            id=Demon Lord Alavys
            name= _ "Demon Lord Alavys"
            [modifications]
                {TRAIT_RESILIENT}
                {TRAIT_DEXTROUS}
            [/modifications]
        )}

        {GENERIC_UNIT 13 (Goliath) 65 44} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}
        {GENERIC_UNIT 13 (Goliath) 22 39} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}
        {GENERIC_UNIT 13 (Goliath) 64 58} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}

#ifndef EASY
        {GENERIC_UNIT 13 (Hell Guardian) 62 52} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}
#else
        {GENERIC_UNIT 13 (Doom Guard)    62 52} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}
#endif
        {GENERIC_UNIT 13 (Doom Guard)    59 54} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING ne}
        {GENERIC_UNIT 13 (Doom Guard)    68 51} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}
        {GENERIC_UNIT 13 (Doom Guard)    70 55} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}

        {GENERIC_UNIT 13 (Chaos Marksman) 62 55} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING n}

        {GENERIC_UNIT 13 (Dark Knight) 62 60} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}
        {GENERIC_UNIT 13 (Dark Knight) 68 59} {NO_UPKEEP_NO_OVERLAY} {GUARDIAN} {FACING nw}

        {FINALE_A_CAPTURE_INITIAL_VILLAGES 13 6}

        #
        # Setup Anya's sidequest.
        #

        [if]
            [not]
                {VARIABLE_BOOLEAN_EQUALS swam_in_fountain_of_courage no}
                {VARIABLE_BOOLEAN_EQUALS anya_has_mermaid_pendant    no}
            [/not]
            [then]
                # Remove Daeira's little note and make her actually show up.
                [remove_item]
                    x,y=29,13
                [/remove_item]

                [remove_event]
                    id=daeiras_note
                [/remove_event]

                [modify_side]
                    side=14
                    controller=ai
                    hidden=no
                [/modify_side]

                # wmllint: recognize Daeira
                [unit]
                    {CHARACTER_STATS_DAEIRA}
                    side=14
                    x,y=29,13
                [/unit]
            [/then]
            [else]
                [remove_event]
                    id=daeiras_wait,daeiras_meeting
                [/remove_event]
            [/else]
        [/if]

        #
        # Setup Durvan's side and finalize Anya's side setup.
        #

        [modify_side]
            side=1
            shroud=no
        [/modify_side]

        [redraw]
            side=1
        [/redraw]

        [modify_side]
            side=2
            controller=human
            hidden=no
            {GOLD 290 280 270}
            {DEFAULT_ECONOMY}
            recruit=Footpad,Thug,Poacher,Ruffian,Orcish Grunt,Orcish Archer,Wolf Rider,Orcish Assassin
        [/modify_side]

        [if]
            {VARIABLE_BOOLEAN_EQUALS waited_for_bardyl yes}
            [then]
                # wmlindent: start ignoring
                {BUG_ON ({VARIABLE_NUMERICAL_NOT_EQUALS bardyl_side_state.length 1})
                        ("side 2 status from E3S4.2 is corrupted")}
                # wmlindent: stop ignoring
                [gold]
                    side=2
                    amount=$bardyl_side_state.gold
                [/gold]

                [allow_recruit]
                    side=2
                    type=$bardyl_side_state.recruit
                [/allow_recruit]

                [foreach]
                    array=bardyl_side_units
                    [do]
                        [unstore_unit]
                            variable=this_item
                            x,y=recall,recall
                        [/unstore_unit]
                    [/do]
                [/foreach]
            [/then]
        [/if]

        [if]
            {VARIABLE_NUMERICAL_EQUALS durvan_store.length 1}
            [then]
                #
                # If we have Durvan, we want to place him on his recall
                # list first.
                #
                {VARIABLE durvan_store.side 2}
                {VARIABLE durvan_store.canrecruit yes}
                {CLEAR_VARIABLE durvan_store.overlays,durvan_store.ellipse}

                [unstore_unit]
                    variable=durvan_store
                    x,y=recall,recall
                [/unstore_unit]
            [/then]
        [/if]

        [scroll_to]
            x,y=66,23
        [/scroll_to]

        [store_direction]
            from_x,from_y=66,23
            [to]
                [filter]
                    id=Anya
                [/filter]
            [/to]
        [/store_direction]

        # Recall or create Durvan as necessary.
        [unit]
            {CHARACTER_STATS_DURVAN}
            x,y=66,23
            side=2
            canrecruit=yes
            animate=yes
            facing=$direction

            # clobber IS_HERO from the stats macro
            {NO_OVERLAYS_NO_ELLIPSE}
        [/unit]

        {CLEAR_VARIABLE direction}

        #
        # First try to recall any loyals that might be in the
        # side 2 recall list (when it exists at all).
        #

        {RECALL_SIDE_LOYALS 2 ()}

        #
        # Generate one or two extra loyals if there aren't
        # enough loyals.
        #

        [while]
            [have_unit]
                side=2
                count=1-2
            [/have_unit]
            [do]
                [unit]
                    type=Aragwaith Spearman
                    side=2
                    placement=leader
                    animate=yes
                    upkeep=loyal
                    {IS_LOYAL}
                    generate_name=yes
                    random_traits=yes
                    random_gender=yes
                    [modifications]
                        {TRAIT_LOYAL}
                    [/modifications]
                [/unit]
            [/do]
        [/while]

        [redraw][/redraw]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Durvan
            message= _ "Uh... It seems we arrived just in time."
        [/message]

        [store_locations]
            x= 5, 6,20,31,65,69
            y=17,41,41,55,57,45
            variable=scroll_locations
        [/store_locations]

        [foreach]
            array=scroll_locations
            [do]
                [scroll_to]
                    x,y=$this_item.x,$this_item.y
                [/scroll_to]

                [delay]
                    time=500
                [/delay]
            [/do]
        [/foreach]

        {CLEAR_VARIABLE scroll_locations}

        [if]
            [have_unit]
                id=Igor
            [/have_unit]
            [then]
                [message]
                    speaker=Igor
                    message= _ "Archer guy!"
                [/message]

                [message]
                    speaker=Durvan
                    message= _ "Oh no. Er, I mean, hail!"
                [/message]
            [/then]
        [/if]

        [message]
            speaker=Anya
            message= _ "Durvan! I thought you would be on your way back home by now!"
        [/message]

        [message]
            speaker=Durvan
            message= _ "I changed my mind, I guess? I can’t shake off the feeling that I’ll regret this later, though. Where is Elynia?"
        [/message]

        [message]
            speaker=Irylean
            message= _ "We don’t know."
        [/message]

        [if]
            {VARIABLE_BOOLEAN_EQUALS waited_for_bardyl yes}
            [then]
                [message]
                    speaker=Ergea
                    message= _ "You may discuss that at a later time. For now, it is of utmost importance that we distract or take down Kalari’s military. I am confident that the Alliance troops Sir Durvan has amassed shall serve us well for this mission."
                [/message]

                [message]
                    speaker=Durvan
                    message= _ "It’s really General Bardyl and Elynia who should get the credit, not me. I merely asked him to lend us a hand, and he gladly acceded, most likely in return for Elynia’s support during the siege of Aran-Balgur. And incidentally, I’m no Sir."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Ergea
                    message= _ "You may discuss that at a later time. For now, it is of utmost importance that we distract or take down Kalari’s military. However, I expected Sir Durvan to provide us with more numerous troops than this."
                [/message]

                [message]
                    speaker=Durvan
                    message= _ "General Bardyl wouldn’t accede to spending more lives on a pointless mission after Elynia decided to part ways with him before they could properly reclaim Aran-Balgur. So, I had to make do with low-ranking militiamen and some orcish mercenaries. And incidentally, I’m no Sir."
                [/message]
            [/else]
        [/if]

        [message]
            speaker=Anya
            message= _ "Time is of the essence, Durvan. We need to get moving while the darkness can provide us with an advantage."
        [/message]

        [message]
            speaker=Durvan
            message= _ "Sure, these men and women thirst for the blood of these fiends. Lead the way!"
        [/message]

        [scroll_to_unit]
            id=Anya
        [/scroll_to_unit]

        {OBJECTIVES (
            side=1,2
            {OBJECTIVE_VICTORY_END_OF_TURNS}
            {OBJECTIVE_OPTIONAL ( _ "Defeat all enemy leaders"+{EARLY_FINISH_BONUS_FOOTNOTE})}

            {OBJECTIVE_DEFEAT  ( _ "Death of Anya")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Durvan")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Irylean")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Ergea")}
            {OBJECTIVE_DEFEAT  ( _ "Death of Cron")}

            {OBJECTIVE_CARRYOVER}
        )}

        {FINALE_A_RESET_MUSIC}

        {CLEAR_VARIABLE durvan_store,waited_for_bardyl,bardyl_side_state,bardyl_side_units}

        {UNLOCK_VIEW}
    [/event]

    [event]
        name=side 1 turn 11

        [message]
            speaker=Durvan
            message= _ "So, Elynia went on a mission to infiltrate the Iron Council’s citadel? What kind of nonsense is that?"
        [/message]

        [message]
            speaker=Anya
            message= _ "According to Ergea she went to locate some kind of weapon buried beneath Kalari. I am really worried for her. She just left during the night without telling anyone about her plans. What are we supposed to do now? I mean, other than perpetuating this bloodshed. Ergea says it’s important and that it might be her only chance to succeed. But who knows what kind of abominations await in that place."
        [/message]
    [/event]

    [event]
        name=side 2 turn 11

        [message]
            speaker=Anya
            message= _ "And then there is this inexplicable unending darkness. It is our element, yet I can’t help but find all this dreadfully unnatural and foreboding."
        [/message]

        [message]
            speaker=Durvan
            message= _ "Yes... yes, it is. Maybe I shouldn’t have allowed Ergea to convince me to come here."
        [/message]

        [message]
            speaker=Anya
            message= _ "Ah, so you came back to us because she asked you to?"
        [/message]

        [message]
            speaker=Durvan
            # wmllint: local spelling Er
            # po: The first 'you' is singular; the second 'you' is plural.
            message= _ "Er... well, I admit that before she asked me I already wanted to see whether you were all right... I mean, you people."
        [/message]

        [message]
            speaker=Anya
            message= _ "Hm. I see."
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            type=Skeleton,Skeleton Archer,Deathblade,Revenant,Bone Shooter,Draug,Banebow,Death Knight
        [/filter]
        [filter_second]
            id=Cron
        [/filter_second]

        [message]
            speaker=Cron
            message= _ "Cron likes the sound of bones breaking under his hammer."
        [/message]
    [/event]

    [event]
        name=attack
        [filter]
            id=Cron
        [/filter]
        [filter_second]
            type=Imp,Blood Imp
        [/filter_second]

        [message]
            speaker=Cron
            message= _ "Cron enjoys crushing insolent vermin to death."
        [/message]

        [message]
            speaker=second_unit
            message= _ "Get away from me, you beast!"
        [/message]
    [/event]

    {FINALE_A_LOOT_EVENT 7 192}

    {FINALE_A_LOOT_EVENT 8 4}

    {FINALE_A_LOOT_EVENT 9 14}

    {FINALE_A_LOOT_EVENT 10 80}

    {FINALE_A_LOOT_EVENT 11 166}

    {FINALE_A_LOOT_EVENT 12 98}

    {FINALE_A_LOOT_EVENT 13 278}

    [event]
        id=daeiras_note
        name=moveto
        first_time_only=no
        [filter]
            side=1,2
            x,y=29,13
        [/filter]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            message= _ "Into the fountain of courage.

Down the river of fear.

A light in the darkness she patiently awaits."
        [/message]
    [/event]

    [event]
        id=daeiras_wait
        name=moveto
        first_time_only=no
        [filter]
            side=1,2
            [not]
                id=Anya
            [/not]
            [filter_adjacent]
                id=Daeira
            [/filter_adjacent]
        [/filter]

        [allow_undo][/allow_undo]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            [show_if]
                {VARIABLE_BOOLEAN_EQUALS spotted_daeira no}
            [/show_if]
            message= _ "A mysterious nymph sits on the rocks, contemplating the dark and restless ocean in front of her with a blank expression.

She seems completely uninterested in the creature’s presence as well. When approached, the nymph does not make eye contact and instead conjures a number of bubbles out of thin air. They seem far more deserving of her attention than even the carnage currently taking place not too far away on the riverside.

Perhaps she is waiting for someone."
        [/message]

        [message]
            speaker=narrator
            image=wesnoth-icon.png
            [show_if]
                {VARIABLE_BOOLEAN_EQUALS spotted_daeira yes}
            [/show_if]
            message= _ "The water nymph continues to play with her bubbles.

Perhaps she is waiting for someone."
        [/message]

        {VARIABLE spotted_daeira yes}
    [/event]

#define FINALE_A_MARINE_SUPPORT _X _Y _TYPE _ID _NAME _MODS
    [unit]
        animate=yes
        side=1
        x={_X}
        y={_Y}
        type={_TYPE}
        id={_ID}
        name={_NAME}
        facing=se
        random_traits=no
        random_gender=no
        generate_name=no

        {IS_LOYAL}

        [modifications]
            {TRAIT_FEARLESS}
            {TRAIT_LOYAL}

            [object]
                [effect]
                    apply_to=image_mod
                    add="RC(magenta>lightblue)"
                [/effect]
            [/object]

            {_MODS}
        [/modifications]
    [/unit]
#enddef

    [event]
        id=daeiras_meeting
        name=moveto
        [filter]
            side=1
            id=Anya
            [filter_adjacent]
                id=Daeira
            [/filter_adjacent]
        [/filter]

        {LOCK_VIEW}

        [scroll_to_unit]
            id=Daeira
        [/scroll_to_unit]

        {FACE_UNIT id=Anya id=Daeira}

        [message]
            speaker=Anya
            message= _ "Ummm... Hello?"
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Anya
            message= _ "I was wondering if you are a Naiad? I was told by Tara that your kind are hardly ever seen by anyone at all..."
        [/message]

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Anya
            message= _ "Uhhh... yes... the ocean. It looks really ominous here at night, doesn’t it?..."
        [/message]

        [delay]
            time=500
        [/delay]

        {FACE_UNIT id=Anya id=Daeira} {OPPOSITE_FACING}

        [delay]
            time=500
        [/delay]

        {FACE_UNIT id=Anya id=Daeira}

        [message]
            speaker=Anya
            message= _ "(sighs) I’m sorry, I should not have bothered you. I guess I will leave you to... whatever it is you are doing..."
        [/message]

        [delay]
            time=250
        [/delay]

        {FACE_UNIT id=Anya id=Daeira} {OPPOSITE_FACING}

        [delay]
            time=250
        [/delay]

        [message]
            speaker=Daeira
            message= _ "You truly are a curious creature, Anya, daughter of Mintha. I had never heard before of one born of faerie and demonkind. I suppose it’s only natural that both rarely mingle due to their innate hatred of each other. Although it makes you wonder... because in the very beginning all of us, even humans, were considered ‘demons’ anyway, were we not? We were the spirits brought to life by the Tree."
        [/message]

        [delay]
            time=500
        [/delay]

        {FACE_UNIT id=Anya id=Daeira}

        [delay]
            time=500
        [/delay]

        [message]
            speaker=Anya
            message= _ "That name... how can you possibly know that name? I don’t... I don’t understand—"
        [/message]

        # In case this wasn't already the case
        {FACE_UNIT id=Daeira id=Anya}

        [message]
            speaker=Daeira
            message= _ "I have been keeping an eye on the Lady of Light and her allies for longer than even the Demon Lord and you have. I have seen her rise from the very depths of Irdya, do battle against unfathomable foes hailing from a time and place beyond the Veil, make her way through the accursed hordes of the Mother of Urvatha with the help of the most improbable allies, and carry out her sworn duty despite it taking the heaviest toll of all."
        [/message]

        [message]
            speaker=Daeira
            [show_if]
                {VARIABLE_BOOLEAN_EQUALS swam_in_fountain_of_courage yes}
            [/show_if]
            message= _ "Accordingly, I provided one of her faeriekind allies with a small gift as a reward for the fortitude of mind and body they displayed in battle."
        [/message]

        [if]
            {VARIABLE_BOOLEAN_EQUALS anya_has_mermaid_pendant yes}
            [then]
                [message]
                    speaker=Daeira
                    message= _ "I guided you towards a relic from the Golden Age as a reward for your unfaltering optimism in the face of adversity."
                [/message]

                [message]
                    speaker=Anya
                    message= _ "It doesn’t do anything, though. Elynia said there’s no magic in it."
                [/message]

                [message]
                    speaker=Daeira
                    message= _ "But does it need to be magic to feel precious to you? Does every experience along your journey need to be viscerally gratifying in order for you to build an emotional attachment to those memories?"
                [/message]

                [message]
                    speaker=Anya
                    message= _ "I... suppose you are right. It reminds me so much of her somehow... Oh gods, I hope she is all right..."
                [/message]
            [/then]
        [/if]

        [message]
            speaker=Daeira
            message= _ "The only thing left for me to do is to assist you in this upcoming battle however I can so that you may see the light of day again. I must warn you first, though, the power that was conferred upon me by the Goddess is very limited, and time is running short. I can give you the answer to one question about the past, and a last blessing."
        [/message]

        [message]
            speaker=Anya
            message= _ "One question?"
        [/message]

        [delay]
            time=750
        [/delay]

        {FACE_UNIT id=Anya id=Daeira} {OPPOSITE_FACING}

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Anya
            message= _ "This is so unexpected... I don’t know what I should ask..."
        [/message]

        [message]
            speaker=Daeira
            message= _ "What does your heart tell you?"
        [/message]

        [delay]
            time=750
        [/delay]

        {FACE_UNIT id=Anya id=Daeira}

        [delay]
            time=750
        [/delay]

        [message]
            speaker=Anya
            message= _ "I want to know..."

            [option]
                description= _ "Who are my real parents?"

                [command]
                    [fade_out_music]
                        duration=500
                    [/fade_out_music]

                    {REPLACE_SCENARIO_MUSIC knolls.ogg}

                    [message]
                        speaker=Daeira
                        # po: The Nameless Shapeshifter's pronouns are they/them. They are non-binary. I understand that this doesn't
                        # po: work well for certain languages, but I have deliberately chosen not to suggest an alternative for those,
                        # po: unlike the translator's notes I've left for terms like "Warlord" and "Demon Lord" and other instances of
                        # po: vague or unspecified gender. You are on your own here. Do your research.
                        # po:
                        # po: Also note that Daeira uses "the Demon Lord Foo" to refer to each Demon Lord, instead of "Lord Foo" (used
                        # po: by infernal underlings as well as the Chaos Empire's forces) or even just "Foo" (used by everyone else).
                        # po: This is intentional.
                        message= _ "Nineteen years ago, a Nameless Shapeshifter broke free from a lifetime of servitude under the Demon Lord Nar-hamoth during one of his visits to Irdya. Lacking any practical knowledge of this world and with nothing on their side but their species’ natural endurance, they made their way north along the Great Continent’s perilous seaboard. Defectors are not treated well by the threats within Uria’s domain, but the dark of the night proved a faithful ally to the Nameless One, allowing them to escape most of the obstacles they found on their way North."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "Their long and grueling journey eventually led them to the great eucalyptus forests of Glamdrol. There it is that they finally found shelter from the scourge of Uria — but not before exhausting all their remaining energy. Shapeshifters may be durable creatures, but that does not make them immortal. On the contrary, constant punishment under their masters only makes them weaker and more prone to diseases specific to their kind. The Nameless One was no exception in this regard."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "Despite their unfamiliarity with the peoples of Irdya, the Nameless One intuitively knew that the natives would be quick to recognize them as a creature hailing from the Chaos Empire, simply from observing their behavior and way of speaking. Attempting to obtain help could only result in an even more painful death at best, and a return to subjugation at worst.

As the suns departed for the Long Dark, they decided that dying on their own terms as a free soul was a far more preferable fate to any of the alternatives. They were at peace."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "Ready for their eternal rest, the demon collapsed on the cold forest ground next to a spearmint patch, hopeful that the soothing aroma would ease the pain that was yet to come. They closed their eyes, and the world disappeared. The cold slowly subsided and gave way to a comforting warmth. Never in their life had the Nameless One imagined that the embrace of death could feel so welcoming compared to anything else they experienced."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "Then they felt the tender kiss of spearmint leaves on their lips.

All their physical afflictions were gone in an instant, and they were once again able to open their eyes — and so they saw that the plant had somehow come to life and assumed the shape of a beautiful woman as if by a divine blessing."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "The Nameless One was just as stunned by the beauty of the eventide nymph as she was by theirs. They wondered what her story was — what circumstances could possibly have brought her to a remote place like that, away from any manner of civilization? And why would she, the free daughter of an untainted world, decide to take pity on a creature who existed only for the purpose of meting out punishment in the name of a goddess of death?

Unfortunately for them, she would never be able to answer those questions, for the gift that allowed her to give that one special person a second chance came with the complete inability to utter a sound. Not even her birth name was known to anyone in existence — “Mintha” was the first thing that came to the shapeshifter’s mind, and she seemed fond of it."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "The language barrier did little to stop the pair from finding a common ground. The shapeshifter figured out soon enough that Mintha had her own particular ways to communicate with others, and she was eager to be around someone who did not avoid her just because of who she was. While she could not tell them her own story, she was happy to listen to the Nameless One tell her all about the vast unknown that lay far beyond Irdya. And she in turn showed them Irdya as it was, and as it is — a world of endless strife, yet also endless beauty."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "In time, the shapeshifter and the nymph grew enamored of each other. To the Nameless One, the notion of having a child of their own volition was completely alien, for their kind only bred when required to do so by the Demon Lords, and only with each other. Nevertheless, they promptly found themselves acquiescing to Mintha’s heart desire, and her body would be the one to carry the creature born from their love."
                    [/message]

                    [delay]
                        time=750
                    [/delay]

                    [message]
                        speaker=Anya
                        message= _ "What happened next?"
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "I apologize. Like I said, I can only answer one question about the past."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "Well, excuse me if I don’t believe you right now! Surely your goddess must have imparted the full story to you!"
                    [/message]

                    [message]
                        speaker=Daeira
                        # po: She is not saying "no". This becomes relevant later.
                        message= _ "I am just a medium and your particular question is already answered."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "..."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "If you must hear the whole story I am afraid you are going to have to ask the Goddess for the rest."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "Well, I would if I knew who she is or how to communicate with her!!!"
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "Our kind knows her as Xia’el. Her true name is known by only a counted few, and her domain lies somewhere completely beyond our reach."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "If that is so then how am I supposed to get there and punch her in the face for telling me an incomplete story?!"
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "Everything is possible if you set your mind to it!"
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "Don’t you dare be all sarcastic like some kind of ancient mythical... water faerie... that knows better than a child like me... Argh! I just... I don’t need this right now. I’m sorry for sounding so frustrated. It’s all just... a lot for me to handle."
                    [/message]

                    [fade_out_music]
                        duration=250
                    [/fade_out_music]

                    {FINALE_A_RESET_MUSIC}

                    {VARIABLE anya_wants_to_see_the_manager yes}
                [/command]
            [/option]

            [option]
                description= _ "Did Elynia ever love anyone besides Argan?"

                [command]
                    [message]
                        speaker=Daeira
                        message= _ "Of all the questions you could have asked, are you absolutely sure that is the one you want answered?"
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "I... Well... That just came to mind, that’s all. Should I ask something else—"
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "One question, not two. You already asked the question, and so I must deliver the answer."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "Elynia-Thanadria did have all kinds of lovers back during the Golden Age, both before and after meeting Argan. Her first lover was a young human by the name of—"
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "NO! Stop! I changed my mind, I don’t want to know. That’s not what I really meant to ask specifically anyway."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "I know the answer to your real question though."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "Huh?"
                    [/message]

                    {FACE_UNIT id=Anya id=Daeira} {OPPOSITE_FACING}

                    [message]
                        speaker=Daeira
                        message= _ "You wanted to know if she ever had a more intimate relationship with other faeries, did you not?"
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "AAAAAAAAAAAAAAAAAAAAHHHHHH!!! Look over there, it’s one of those... demolisher monsters! It’s very, veeeeery slowly heading towards us!"
                    [/message]

                    {VARIABLE anya_wants_love yes}
                [/command]
            [/option]

            [option]
                description= _ "Was Zhangor responsible for the Great Fall?"

                [command]
                    [message]
                        speaker=Daeira
                        message= _ "That is an interesting question for you ask. I did not take you for someone who would be interested in the history of this world."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "... Look, I know I’m more than a bit dumb at times—"
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "What I mean is you are an outsider. You may have been born on Irdya, but you do not feel as though you belong here, do you?"
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "... I guess I really... don’t. How can you read me so well? I mean, besides the whole business with you spying on us."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "There is something surprisingly relatable about you, even though my life so far has been one of complete solitude and yours the opposite. Perhaps it is the fact that we are both daughters of Darkness in some way. Water and Earth have got to meet each other at some point, after all. But I digress."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "The Demon Lord Zhangor may be many things, but a patient schemer he is not. He was provided information about a pivotal event by a source that transcends time, and he did as he saw fit with that information. His thirst for power led him to establish his cult in Wesmere, but he was largely ignorant of what he was doing beyond attempting to become something he is not and will likely never become: a god. So, the answer to your question is no."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "But who was responsible then? It all seems so contrived — both the creation of the second sun and the Fall of the third. The Wesnothians could not possibly have figured it out all on their own, could they?"
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "One question, one answer."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "Oh, come on!"
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "This may be worth pondering, though. Some believe their lives are entirely their own doing, that destiny does not exist and that our reality is merely the product of happenstance. The possibility of an unseen force with many hands and eyes having the power to weave the threads of fate into something larger would be too terrifying to consider for mere mortals, after all."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "I’m not sure I understand what you are suggesting... That all events as they have come to pass were preordained by an entity with a will of its own?"
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "But even if you consider the existence of such a being, is there anyone who can tell you for certain that this hypothetical agent is not being manipulated by a higher entity themselves?"
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "... This is seriously messing with my head. Can we please stop now? I don’t want to go into battle with a migraine."
                    [/message]

                    {VARIABLE anya_gets_meta yes}
                [/command]
            [/option]

            [option]
                description= _ "Is there cake in the Iron Council’s citadel?"

                [command]
                    [message]
                        speaker=Daeira
                        message= _ "..."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "..."
                    [/message]

                    [message]
                        speaker=Daeira
                        message= _ "..."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "..."
                    [/message]

                    [delay]
                        time=750
                    [/delay]

                    [message]
                        speaker=Daeira
                        message= _ "... There has been cake in the citadel countless times, so I would venture to say there may be some in there right now."
                    [/message]

                    [message]
                        speaker=Anya
                        message= _ "YES!"
                    [/message]

                    {VARIABLE anya_wants_cake yes}
                [/command]
            [/option]
        [/message]

        [message]
            speaker=Daeira
            message= _ "It is time, then. The Demon Lord Ergea has already informed you of what you must do next. I shall do my part."
        [/message]

        {FACE_UNIT id=Anya id=Daeira}

        [if]
            {VARIABLE_BOOLEAN_EQUALS swam_in_fountain_of_courage yes}
            [then]
                {LIGHT_OF_XIAEL:APPLY_TO_ALL}

                [transient_message]
                    image="units/faeries/fire.png~RC(magenta>red)"
                    message= _ "All faeries you currently control on the map or your recall list now have the kindled trait, which allows them to ignore time of day penalties, increases their hitpoints by 15%, and their resistance to non-arcane damage by 5%."
                [/transient_message]
            [/then]
        [/if]

        [if]
            {VARIABLE_BOOLEAN_EQUALS anya_has_mermaid_pendant yes}
            [then]
                [message]
                    speaker=Daeira
                    message= _ "Old allies want to support you in the upcoming battle. They may struggle on land, but the Iron Council’s citadel is built on the riverside. You may be able to use this to your advantage later."
                [/message]

                [scroll_to]
                    x,y=5,5
                [/scroll_to]

                [sound]
                    name=water-blast.wav
                [/sound]

                {FINALE_A_MARINE_SUPPORT 5 5 (Merman Warrior) Promien ( _ "Promien")
                ({TRAIT_STRONG} {TRAIT_INTELLIGENT})}

                {FINALE_A_MARINE_SUPPORT 8 2 (Merman Warrior) Thyon ( _ "Thyon")
                ({TRAIT_QUICK} {TRAIT_RESILIENT})}

                {FINALE_A_MARINE_SUPPORT 3 4 (Merman Hunter) Charon ( _ "Charon")
                ({TRAIT_DEXTROUS} {TRAIT_RESILIENT})}

                {FINALE_A_MARINE_SUPPORT 6 1 (Merman Hunter) Cadmus ( _ "Cadmus")
                ({TRAIT_RESILIENT} {TRAIT_STRONG})}

                {FINALE_A_MARINE_SUPPORT 7 4 (Mermaid Priestess) Electra ( _ "Electra")
                ({TRAIT_RESILIENT} {TRAIT_INTELLIGENT})}

                # wmllint: recognize Luna
                {FINALE_A_MARINE_SUPPORT 5 3 (Mermaid Priestess) Luna ( _ "Luna")
                ({TRAIT_QUICK} {TRAIT_STRONG})}

                {FINALE_A_MARINE_SUPPORT 3 2 (Mermaid Enchantress) Merope ( _ "Merope")
                ({TRAIT_RESILIENT} {TRAIT_QUICK})}

                # wmllint: recognize Orion
                {FINALE_A_MARINE_SUPPORT 8 5 (Merman Triton) Orion ( _ "Orion")
                ({TRAIT_STRONG} {TRAIT_RESILIENT})}

                [message]
                    speaker=Orion
                    message= _ "The reckoning with these monsters is at hand, brothers and sisters!"
                [/message]

                [message]
                    speaker=Luna
                    message= _ "Purge the unholy beasts from our waters and help the northerners seize Uria’s dark citadel!"
                [/message]

                [scroll_to_unit]
                    id=Daeira
                [/scroll_to_unit]
            [/then]
        [/if]

        [if]
            {VARIABLE_BOOLEAN_EQUALS swam_in_fountain_of_courage yes}
            {VARIABLE_BOOLEAN_EQUALS anya_has_mermaid_pendant    yes}
            [then]
                [modify_unit]
                    [filter]
                        id=Daeira
                    [/filter]
                    side=1
                [/modify_unit]

                {XIAELS_BLESSING}

                [message]
                    speaker=Daeira
                    message= _ "And now, I shall fight alongside you."
                [/message]

                [message]
                    speaker=Anya
                    message= _ "Oh! We would be honored to have you by our side... er..."
                [/message]

                [modify_unit]
                    [filter]
                        id=Daeira
                    [/filter]
                    name= _ "Daeira"
                [/modify_unit]

                [message]
                    speaker=Daeira
                    message= _ "Daeira. Few creatures on this world have ever heard my name and even fewer have lived to tell others of my existence."
                [/message]

                [message]
                    speaker=Anya
                    message= _ "Um... all right! I think I’ve kept Ergea and the others waiting long enough, so... time to go, I think."
                [/message]
            [/then]
            [else]
                [message]
                    speaker=Daeira
                    message= _ "And now, I must leave. Farewell, Anya, and may Xia’el’s blessings accompany you on this fight."
                [/message]

                {FACE_LOCATION id=Anya x,y=26,9}

                [kill]
                    id=Daeira
                [/kill]

                [move_unit_fake]
                    type=Naiad
                    side=14
                    force_scroll=no
                    x=29,26
                    y=13,9
                [/move_unit_fake]

                [delay]
                    time=1000
                [/delay]

                [message]
                    speaker=Anya
                    message= _ "... I think I’ve kept Ergea and the others waiting long enough."
                [/message]
            [/else]
        [/if]

        [modify_side]
            side=14
            controller=null
            hidden=yes
        [/modify_side]

        [remove_event]
            id=daeiras_wait
        [/remove_event]

        {UNLOCK_VIEW}
    [/event]

    [event]
        name=enemies defeated
        [filter_condition]
            {VARIABLE_NUMERICAL_GREATER_THAN_OR_EQUAL turn_number 10}
        [/filter_condition]

        [message]
            speaker=Ergea
            message= _ "Taking their river settlements, vanquishing their leaders, and leaving their troops in utter disarray ought to be enough to keep the Iron Council distracted for a short interval. It is time to take the fight to the citadel itself."
        [/message]

        {ENDLEVEL_VICTORY yes}
    [/event]

    [event]
        name=time over

        [message]
            speaker=Ergea
            message= _ "The situation is not as favorable as I wished. We ought to take the fight closer to the Iron Council’s citadel if we want to keep their attention away from Elynia."
        [/message]

        {ENDLEVEL_VICTORY no} {NO_ENDLEVEL_MUSIC}
    [/event]

    [event]
        name=victory

        {CLEAR_VARIABLE spotted_daeira}
    [/event]
[/scenario]

#undef FINALE_A_LOOT_EVENT
#undef FINALE_A_NO_DEMOLITION_ABILITY
#undef FINALE_A_CAPTURE_INITIAL_VILLAGES
#undef FINALE_A_SETUP_MAP_STARTLOC_SIDE
#undef FINALE_A_SETUP_SIDE
#undef FINALE_A_MARINE_SUPPORT
#undef FINALE_A_RESET_MUSIC

# kate: indent-mode normal; encoding utf-8; space-indent on;