#textdomain wesnoth-trow
[scenario]
    id=01_A_Summer_of_Storms
    name= _ "A Summer of Storms"
    next_scenario=02_The_Fall
    map_data="{campaigns/The_Rise_Of_Wesnoth/maps/01_A_Summer_of_Storms.map}"
    {TURNS 31 28 25}
    {DEFAULT_SCHEDULE}

    # Music for this scenario is handled in the intro and an event below

    [story]
        [part]
            music=underground.ogg
            story= _ "In the days before Haldric the First saved our people and founded the country of Wesnoth, we came from an island kingdom far to the west..."
            {TROW_GREEN_ISLE_BIGMAP}
        [/part]
        [part]
            story= _ "We were prosperous, strong, and numerous. We lived in a rich land with many kings. Then <i>they</i> came, the Wesfolk. They were a wicked, brutal, and dirty lot."
            {TROW_GREEN_ISLE_BIGMAP}
        [/part]
        [part]
            story= _ "They were the vanquished refugees of some war, fleeing from their homes in a land even farther off into the west. The Wesfolk were not numerous, but they used dark magic, commanding vengeful spirits and legions of walking dead..."
            {TROW_GREEN_ISLE_BIGMAP}
        [/part]
        [part]
            story= _ "After a time of great struggle, a peace was reached. We came to dominate most of the Isle, with the Wesfolk pushed onto the most marginal of lands. In confronting their vile legions, we grew strong. Indeed, it was from this war we gleaned our first shards of knowledge about magic."
            {TROW_GREEN_ISLE_BIGMAP}
        [/part]
        [part]
            story= _ "You must recall that the route from the western continent to our Green Isle was perilous at the best of times — so perilous that a stable trading relationship between the mainland and the Isle could never be maintained."
            {TROW_GREEN_ISLE_BIGMAP}
        [/part]
        [part]
            story= _ "Things were worse still when sailing to the east. A strong, cold ocean current swept down from the north in the Eastern Ocean, pushing all ships horribly off course. Ships that traveled east and returned reported nothing but open ocean and vile sea monsters..."
            {TROW_GREEN_ISLE_BIGMAP}
        [/part]
        [part]
            story= _ "Over time our skills as navigators grew. Then, one day, the strong-hearted Crown Prince of Southbay returned home from a long voyage with a fabulous tale. He said that there were lands to the east that could be reached by aggressively sailing to the east and north, to compensate for southern pull of the ocean."
            background=story/prince_finds_wesnoth.png
        [/part]
        [part]
            story= _ "It wasn’t long after he returned that the very Crown Prince who discovered the land to the east fell ill and died under mysterious circumstances. His younger brother, the next in line for the throne, chafed at the eye of suspicion cast upon him. He conspired to start a war of distraction with the poor Wesfolk kingdoms and their Lich-Lords."
            {TROW_GREEN_ISLE_BIGMAP}
        [/part]
        [part]
            story= _ "The new Crown Prince departed with the largest army ever assembled on the Isle to make war with the Wesfolk. This is where our story begins..."
            background=story/story1.png
        [/part]
        [part]
            story= _ "... with the plight of a different prince on the same Isle..."
            {TROW_GREEN_ISLE_BIGMAP}
        [/part]
        [part]
            story= _ "For this is the story of Haldric the First and the Rise of Wesnoth..."
            {TROW_GREAT_CONTINENT_BIGMAP}
            music=main_menu.ogg
            [image]
                x,y=860,610
                file=story/trow-logo.png
                centered=yes
            [/image]
        [/part]
    [/story]

    {BIGMAP_01}

    {TROW_DEATHS}

    [side]
#ifdef HARD
        type=Noble Youth
#else
        type=Noble Fighter
#endif
        id=Prince Haldric
        name= _ "Prince Haldric"
        profile=portraits/haldric.png
        {GOLD 125 100 100}
        unrenamable=yes
        side=1
        canrecruit=yes
        controller=human
        recruit=Bowman, Horseman, Mage, Spearman
        team_name=Haldric
        user_team_name=_"Haldric"
        {FLAG_VARIANT loyalist}
    [/side]

    {STARTING_VILLAGES 1 6}

    [side]
        type=Wesfolk Outcast
        gender=female
        id=Wesfolk Leader
        name= _ "Wesfolk Leader"
        profile="portraits/lady_outlaw.png"
        side=2
        canrecruit=yes
        {GOLD 70 120 170}
        recruit=Footpad, Poacher, Thief, Thug
        team_name=wesfolk
        user_team_name=_"Wesfolk"
        [ai]
            {NO_SCOUTS}
            recruitment_pattern=fighter,fighter,archer,scout
            {ATTACK_DEPTH 2 3 4}
        [/ai]
        {FLAG_VARIANT ragged}
    [/side]

    {STARTING_VILLAGES 2 6}

    [event]
        name=prestart

        # wmllint: whofield HERO 2
        {HERO (Warrior King) (King Eldaric IV) ( _ "King Eldaric IV") 1 28 15  "portraits/eldaric.png"}

        [objectives]
            side=1
            [objective]
                description= _ "Defeat the Wesfolk Leader"
                condition=win
            [/objective]
            [objective]
                description= _ "Death of Prince Haldric"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of King Eldaric"
                condition=lose
            [/objective]

            {TURNS_RUN_OUT}

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

    [event]
        name=start
        [message]
            speaker=narrator
            message= _ "The trouble seems to have finally reached to the heart of the Isle, to the isolated lands of King Eldaric IV."
            image=wesnoth-icon.png
        [/message]
        [message]
            speaker=King Eldaric IV
            message= _ "It looks like a Wesfolk rabble have seized the Northern Keep! Prepare for battle, Haldric!"
        [/message]
        [message]
            speaker=Prince Haldric
            message= _ "Father, I am of age now. May I lead our forces in battle?"
        [/message]
        [message]
            speaker=King Eldaric IV
            message= _ "You’re showing initiative, son! I’m proud of you! Yes, you may lead our forces to battle, it is time — but I’ll stay near to keep an eye on you. There is more to this raid than meets the eye, I think."
        [/message]
        [message]
            speaker=Prince Haldric
            # wmllint: local spelling reavers
            message= _ "They’re Wesfolk, reavers and thieves by nature; rare is the summer they do not raid us. What mystery is in it now?"
            image=portraits/haldric-annoyed.png
        [/message]
        [message]
            speaker=King Eldaric IV
            message= _ "These are not normal times. When the Prince of Southbay has raised a host that could utterly destroy them, why would they compound their troubles by raising a quarrel with another king?"
        [/message]
        [message]
            speaker=Prince Haldric
            message= _ "Perhaps these are refugees fleeing his advance?"
        [/message]
        [message]
            speaker=King Eldaric IV
            message= _ "Unlikely. The Prince they might evade in the wild country; south and east of here is more thickly settled with our folk, and a greater danger to them. Even supposing they could win through us, why court the wrath of the greater kingdoms?"
        [/message]
        [message]
            speaker=Prince Haldric
            image=portraits/haldric-mad.png
            message= _ "We must inquire of the survivors after we defeat them. Onward to victory!"
        [/message]
        [message]
            speaker=Wesfolk Leader
            message= _ "Look, a little princeling and his merry men! We’ll teach you a lesson for what your kind did to us!"
        [/message]
    [/event]

    [event]
        name=side turn
        [music]
            name="revelation.ogg"
        [/music]
    [/event]

    [event]
        name=turn 5
        [message]
            speaker=King Eldaric IV
            message= _ "Don’t forget about some of the more isolated villages, we’ll need the gold!"
        [/message]
    [/event]

    [event]
        name=turn 20
        [message]
            speaker=King Eldaric IV
            message= _ "Make haste, son! We must win before the summer crop is in ruin."
        [/message]
    [/event]

    [event]
        name=last breath
        [filter]
            id=Wesfolk Leader
        [/filter]
        [message]
            speaker=unit
            message= _ "I invoke the right of surrender! Don’t kill me..."
        [/message]
        [message]
            speaker=Prince Haldric
            message= _ "Why have you come to trouble our lands?"
        [/message]
        [message]
            speaker=unit
            message= _ "Trouble your lands! Bah! Your fool Prince of Southbay has attacked our lands. The Lich-Lords had no choice... They opened a gate... and..."
        [/message]
        [message]
            speaker=King Eldaric IV
            message= _ "And what?"
        [/message]
        [message]
            speaker=unit
            message= _ "They pledged to visit all of the terrors of the hells upon the Isle. They built a great stone gate to the heart of the homeland of the orcs in the distant west! Now even we Wesfolk must flee or be slaves."
        [/message]
        [message]
            speaker=Prince Haldric
            message= _ "Orcs are just creatures of tall tales!"
        [/message]
        [message]
            speaker=unit
            message= _ "You’ve been on this island too long. I assure you that orcs exist. By now there are probably a half dozen gates to the orcish homeland. There is no hope."
        [/message]
        [message]
            speaker=King Eldaric IV
            message= _ "We must prepare the defenses! Haldric, stay at the keep. I must go and fortify our frontier."
        [/message]
        [message]
            speaker=unit
            message= _ "My forces are defeated, under your customs of surrender I will go now."
        [/message]
        [message]
            speaker=King Eldaric IV
            message= _ "You may go. See to it that you trouble us no more, for the custom states that you may invoke surrender but once. If we meet again, I won’t be so merciful."
        [/message]
        [store_unit]
            variable=wesfolk_leader_store
            kill=yes
            [filter]
                id=Wesfolk Leader
            [/filter]
        [/store_unit]
        [endlevel]
            result=victory
            bonus=yes
            {NEW_GOLD_CARRYOVER 40}
        [/endlevel]
    [/event]

    [event]
        name=time over
        [message]
            speaker=King Eldaric IV
            message= _ "We have run out of time... The crops shall spoil, we’ll starve!"
        [/message]
    [/event]

    [event]
        name=die
        [filter]
            [not]
                id=Wesfolk Leader
            [/not]
        [/filter]
        [filter_second]
            id=Prince Haldric
        [/filter_second]
        [message]
            speaker=second_unit
            message= _ "Die, Wesfolk scum!"
            image=portraits/haldric-mad.png
        [/message]
    [/event]

    [event]
        name=attack
        [filter]
            id=Prince Haldric
        [/filter]
        [message]
            speaker=Prince Haldric
            image=portraits/haldric-mad.png
            message= _ "Feel my wrath, you fiend!"
        [/message]
    [/event]
[/scenario]
