#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

    {TROW_INTRO_STORY}
    {A_SUMMER_OF_STORMS_BIGMAP}

    {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

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

        [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_second]
            id=Prince Haldric
        [/filter_second]
        [message]
            speaker=second_unit
            message= _ "Die, Wesfolk scum!"
        [/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]
