#textdomain wesnoth-dm
[scenario]
    id=01_Overture
    name=_ "Overture"
    {MEMOIRS_MAP 01_Overture.map}
    next_scenario=02_This_Valley_Belongs_to_Me
    theme=Cutscene_Minimal
    {MORNING}

    {INTRO_AND_SCENARIO_MUSIC revelation.ogg heroes_rite.ogg}

    # wmllint: validate-off
    [side]
        side=1
        controller=human
        gold=0
        save_id=Player
        team_name=allies
        user_team_name= _ "Mages"
        side_name= _ "Delfador"
        # wmllint: who YOUNG_DELFADOR is Delfador
        [leader]
            {YOUNG_DELFADOR}
        [/leader]
        facing=nw
        [unit]
            # wmllint: who METHOR is Methor
            {METHOR}
            x,y=20,16
            facing=nw
        [/unit]
    [/side]

    [side]
        side=2
        controller=null
        team_name=allies
        user_team_name= _ "Mages"
        no_leader=yes
        [unit]
            id=Marshal
            name=_"Marshal"
            type=Mage of Light
            placement=leader
            facing=sw
        [/unit]
        {NAMED_UNIT 2 (Great Mage)  8   9 "First Oracle"  (_"First Oracle")  (profile=portraits/oracle1.webp)} {FACING se}
        {NAMED_UNIT 2 (Great Mage) 10  11 "Second Oracle" (_"Second Oracle") (profile=portraits/oracle2.webp)} {FACING sw}
        {NAMED_UNIT 2 (Great Mage)  8  13 "Third Oracle"  (_"Third Oracle")  (profile=portraits/oracle3.webp)} {FACING nw}
        {NAMED_UNIT 2 (Great Mage)  6  11 "Fourth Oracle" (_"Fourth Oracle") (profile=portraits/oracle4.webp)} {FACING ne}
    [/side]
    # wmllint: validate-on

    [story]
        [part]
            story = _ "This is the true story of how Delfador the Great arose from his humble beginnings, the tale of how he became the most famous and powerful of all the mages of Wesnoth."
        [/part]
        [part]
            story = _ "It begins on the Isle of Alduin, at the Academy, which trains mages from throughout the Great Continent."
        [/part]
        [part]
            story = _ "After ten years of training, two tests stand between one particular apprentice and attainment of the degree of Mage:"
        [/part]
        [part]
            story = _ "<i>The New Mage Ceremony</i>"
        [/part]
        [part]
            story = _ "and"
        [/part]
        [part]
            story = _ "<i>The Name Journey</i>"
        [/part]
    [/story]
    {DM_TRACK {SEARCH_STAGE1}}

    [event]
        name=start
        [message]
            speaker=narrator
            message = _ "Academy of Magic, Isle of Alduin."
            image=wesnoth-icon.png
        [/message]
        # wmllint: local spelling thorum restro targa
        [message]
            speaker=narrator
            message = _ "... thorum restro targa thorum..."
            image=items/brazier-lit1.png
        [/message]
        [message]
            speaker=Marshal
            message = _ "Come, O aspirant. The Oracles await you."
        [/message]
        # Delfador's entrance
        [delay]
            time=500
        [/delay]
        {MOVE_UNIT id=Delfador 8 11}
        [delay]
            time=500
        [/delay]
        [message]
            speaker=narrator
            message = _ "... thorum restro targa thorum..."
            image=items/brazier-lit1.png
        [/message]
        # wmllint: local spelling del dor
        [message]
            speaker=First Oracle
            message = _ "The time of peace is passing. Chaos is rising; evil is rooted in the land’s very heart. Darkness is coming soon. The world will be changed. And you will be among the champions of our brotherhood of mages. I give you the first syllable of power, the beginning of your name: DEL"
        [/message]
        [message]
            speaker=narrator
            message = _ "... thorum restro targa thorum..."
            image=items/brazier-lit1.png
        [/message]
        [message]
            speaker=Second Oracle
            message = _ "You will not be least among those champions. Nay; you will be called <i>“The Great”</i> before your days are through. I give you the second syllable of power, the second part of your name: FA"
        [/message]
        [message]
            speaker=narrator
            message = _ "... thorum restro targa thorum..."
            image=items/brazier-lit1.png
        [/message]
        [message]
            speaker=Third Oracle
            message = _ "Yes. Peace is broken, but hope is not extinguished. There is always hope. And you will be the father of it. I give you the final syllable of power, the last part of your name: DOR"
        [/message]
        [message]
            speaker=narrator
            message = _ "... thorum restro targa thorum..."
            image=items/brazier-lit1.png
        [/message]
        [message]
            speaker=Fourth Oracle
            message = _ "After the battle, peace. After the darkness, dawn. From death springs new life. I call the power of the Bright Gods into your name: DELFADOR"
        [/message]
        [message]
            speaker=narrator
            message = _ "... thorum restro targa thorum..."
            image=items/brazier-lit1.png
        [/message]
        [message]
            speaker=Marshal
            message = _ "DELFADOR, open your eyes. And open them again!"
        [/message]
        [message]
            speaker=Delfador
            message = _ ". ."
        [/message]
        [message]
            speaker=Delfador
            message = _ "o o"
        [/message]
        [message]
            speaker=Delfador
            message = _ "O O"
        [/message]
        [message]
            speaker=Delfador
            message = _ "The light fills me!"
        [/message]
        [message]
            speaker=First Oracle
            message = _ "It is well."
        [/message]
        [message]
            speaker=Second Oracle
            message = _ "It is well."
        [/message]
        [message]
            speaker=Third Oracle
            message = _ "It is well."
        [/message]
        [message]
            speaker=Fourth Oracle
            message = _ "It is well."
        [/message]
        [message]
            speaker=Marshal
            message = _ "Now, go forth!"
        [/message]
        [message]
            speaker=Marshal
            message = _ "Your name journey begins. Methor will lead you from this place."
        [/message]
        # Methor’s entrance
        [delay]
            time=500
        [/delay]
        {MOVE_UNIT id=Methor 9 10}
        [delay]
            time=500
        [/delay]
        [message]
            speaker=Methor
            message = _ "But I will not see you to its end, for that is yours alone."
        [/message]
        {MODIFY_UNIT id=Delfador facing ne}
        [delay]
            time=250
        [/delay]
        [message]
            speaker=Methor
            message = _ "Dangers and trials await us. When you have truly claimed the name you have been given, I will depart."
        [/message]
        [message]
            speaker=Delfador
            message=_"I am ready."
        [/message]
        # Move them separately to ensure Methor moves first
        {MOVE_UNIT id=Methor   20 16}
        {MOVE_UNIT id=Delfador 19 16}
        [delay]
            time=250
        [/delay]

        [endlevel]
            result=victory
            linger_mode=no
            carryover_report=no
            replay_save=no
        [/endlevel]
    [/event]
[/scenario]
