#textdomain wesnoth-utbs

#define PRESTART
    [event]
        name=prestart

        # set starting scenario objectives
        [objectives]
            summary= _ "Starting Objectives:"
            [objective]
                description= _ "Survive Until Dawn (or)"
                condition=win
            [/objective]
            [objective]
                description= _ "Defeat all Undead Leaders"
                condition=win
            [/objective]
            [objective]
                description= _ "You Control Less Than 6 Villages"
                condition=lose
            [/objective]
            [objective]
                description= _ "Death of Kaleh, Nym, Garak or Zhul"
                condition=lose
            [/objective]
        [/objectives]

        #recall heroes
        [recall]
            description=Nym
        [/recall]
        [recall]
            description=Elyssa
        [/recall]
        [recall]
            description=Zhul
        [/recall]
        [recall]
            description=Garak
        [/recall]
        [recall]
            description=Dust Devil
        [/recall]
        [item]
            x=14
            y=10
            halo=halo/fire-aura.png
        [/item]

        [item]
            x=16
            y=15
            halo=halo/fire-aura.png
        [/item]

        [item]
            x=13
            y=20
            halo=halo/fire-aura.png
        [/item]

        [remove_shroud]
            x=1-60
            y=1-60
            side=1
        [/remove_shroud]

#ifdef EASY
        {RANDOM 7..9}
#endif
#ifdef NORMAL
        {RANDOM 6..8}
#endif
#ifdef HARD
        {RANDOM 6..8}
#endif

        {VARIABLE ambush_turn $random}

        # give player 12 villages to protect
        {VARIABLE elven_camps 12}
        {VARIABLE sneak_up 0}
        {VARIABLE killed_by_azkotep 0}
        {VARIABLE killed_by_ystara 0}
        {VARIABLE grak_challenged 0}
        {VARIABLE zur_challenged 0}
        {VARIABLE defiant_death 0}
        {VARIABLE azkotep_casaulties.length 0}
        {VARIABLE ystara_casaulties.length 0}
    [/event]

    #Time Areas correspond with halo around campfires
    #North campfire
    #!-- FIXME idealy these would be called within the event itself, but unfortunately it's not supported yet
    [time_area]
        x=14,12,13,14,15,16,12,13,14,15,16,12,13,14,15,16,13,14,15
        y=8,9,9,9,9,9,10,10,10,10,10,11,11,11,11,11,12,12,12
        {DUSK}
    [/time_area]

    #Central campfire
    [time_area]
        x=16,14,15,16,17,18,14,15,16,17,18,14,15,16,17,18,15,16,17
        y=13,14,14,14,14,14,15,15,15,15,15,16,16,16,16,16,17,17,17
        {DUSK}
    [/time_area]

    #South Campfire
    [time_area]
        x=12,13,14,11,12,13,14,15,11,12,13,14,15,11,12,13,14,15,13
        y=18,18,18,19,19,19,19,19,20,20,20,20,20,21,21,21,21,21,22
        {DUSK}
    [/time_area]

#enddef
