#textdomain wesnoth-multiplayer

#define MPWILD_UNIT X Y TYPE
    [unit]
        type={TYPE}
        side=5
        x={X}
        y={Y}
        random_traits=no
    [/unit]
#enddef

#define MPWILD_WALKING_CORPSE X Y VARIATION_NAME
    [unit]
        type=Walking Corpse
        side=5
        x={X}
        y={Y}
        variation={VARIATION_NAME}
        #random_traits=no
    [/unit]
#enddef

#define MPWILD_SOULLESS X Y VARIATION_NAME
    [unit]
        type=Soulless
        side=5
        x={X}
        y={Y}
        variation={VARIATION_NAME}
        #random_traits=no
    [/unit]
#enddef

[multiplayer]
    id=multiplayer_The_Wilderlands
    name= _ "5p — The Wilderlands"
    description= _ "A vast region of wild, untamed wilderness, its terrain dotted with forests, caves, rivers, and the ruins of ancient fortresses." + _ " Recommended setting of 1 gold per village."
    map_data="{multiplayer/maps/5p_The_Wilderlands.map}"

    {DEFAULT_SCHEDULE}
    {DEFAULT_MUSIC_PLAYLIST}

    [side]
        [ai]
            villages_per_scout=16
        [/ai]
        side=1
        canrecruit=yes
        controller=human
        village_gold=2
        fog=yes
    [/side]
    [side]
        [ai]
            villages_per_scout=16
        [/ai]
        side=2
        canrecruit=yes
        controller=human
        village_gold=2
        fog=yes
    [/side]
    [side]
        [ai]
            villages_per_scout=16
        [/ai]
        side=3
        canrecruit=yes
        controller=human
        village_gold=2
        fog=yes
    [/side]
    [side]
        [ai]
            villages_per_scout=16
        [/ai]
        side=4
        canrecruit=yes
        controller=human
        village_gold=2
        fog=yes
    [/side]
    [side]
        [ai]
            village_value=0
        [/ai]
        side=5
        canrecruit=yes
        controller=human
        village_gold=2
        fog=yes
    [/side]

    [event]
        name=prestart
        [if]
            [have_unit]
                side=5
            [/have_unit]
            [then]
                [kill]
                    animate=no
                    fire_event=no
                    side=5
                [/kill]
                {MPWILD_UNIT 38 36 (Sea Serpent)}
                {MPWILD_UNIT 6 20 (Cuttle Fish)}
                {MPWILD_UNIT 58 42 (Cuttle Fish)}
                {MPWILD_UNIT 59 60 (Yeti)}
                {MPWILD_UNIT 1 48 (Skeletal Dragon)}
                {MPWILD_UNIT 32 38 (Giant Scorpion)}
                {MPWILD_UNIT 23 43 (Giant Scorpion)}
                {MPWILD_UNIT 38 19 (Giant Scorpion)}
                {MPWILD_UNIT 27 35 (Giant Scorpion)}
                {MPWILD_UNIT 59 23 (Giant Spider)}
                {MPWILD_UNIT 58 18 (Giant Spider)}
                {MPWILD_UNIT 28 55 (Tentacle of the Deep)}
                {MPWILD_UNIT 27 55 (Tentacle of the Deep)}
                {MPWILD_UNIT 29 55 (Tentacle of the Deep)}
                {MPWILD_UNIT 27 56 (Tentacle of the Deep)}
                {MPWILD_UNIT 28 56 (Tentacle of the Deep)}
                {MPWILD_UNIT 23 21 (Ogre)}
                {MPWILD_UNIT 24 20 (Young Ogre)}
                {MPWILD_WALKING_CORPSE 18 18 saurian}
                {MPWILD_WALKING_CORPSE 23 13 saurian}
                {MPWILD_WALKING_CORPSE 17 14 saurian}
                {MPWILD_WALKING_CORPSE 15 14 saurian}
                {MPWILD_WALKING_CORPSE 18 15 saurian}
                {MPWILD_WALKING_CORPSE 13 14 saurian}
                {MPWILD_WALKING_CORPSE 13 16 saurian}
                {MPWILD_WALKING_CORPSE 21 16 saurian}
                {MPWILD_WALKING_CORPSE 20 13 saurian}
                {MPWILD_WALKING_CORPSE 20 14 saurian}
                {MPWILD_SOULLESS 23 15 saurian}
                {MPWILD_SOULLESS 18 14 saurian}
                {MPWILD_SOULLESS 15 15 saurian}
                {MPWILD_SOULLESS 21 13 saurian}
                {MPWILD_SOULLESS 24 12 saurian}
                {MPWILD_SOULLESS 14 17 saurian}
                {MPWILD_SOULLESS 20 18 saurian}
                {MPWILD_UNIT 46 24 (Wolf)}
                {MPWILD_UNIT 44 22 (Wolf)}
                {MPWILD_UNIT 43 25 (Wolf)}
                {MPWILD_UNIT 45 26 (Wolf)}
                {MPWILD_UNIT 46 22 (Wolf)}

                {MPWILD_WALKING_CORPSE 59 33 swimmer}
                {MPWILD_SOULLESS 57 32 swimmer}
                {MPWILD_SOULLESS 55 28 swimmer}
                {MPWILD_WALKING_CORPSE 55 30 swimmer}
                {MPWILD_SOULLESS 54 33 swimmer}
                {MPWILD_SOULLESS 56 27 swimmer}
                {MPWILD_SOULLESS 54 30 swimmer}
                {MPWILD_SOULLESS 53 34 swimmer}
                {MPWILD_WALKING_CORPSE 56 30 swimmer}

                [set_recruit]
                    side=5
                    recruit=""
                [/set_recruit]
                {MODIFY_UNIT x,y=38,36 canrecruit yes}
            [/then]
        [/if]
    [/event]

    [event]
        name=die
        first_time_only=no
        [filter]
            canrecruit=yes
            side=5
        [/filter]
        [store_unit]
            [filter]
                side=5
                canrecruit=no
            [/filter]
            variable=newleader
            kill=no
        [/store_unit]
        [if]
            [variable]
                name=newleader.length
                greater_than=0
            [/variable]
            [then]
                {VARIABLE newleader.canrecruit yes}
                [unstore_unit]
                    variable=newleader
                [/unstore_unit]
            [/then]
        [/if]
    [/event]
[/multiplayer]

#undef MPWILD_UNIT
#undef MPWILD_WALKING_CORPSE
