#textdomain wesnoth-multiplayer

#define MODIFY_BOWMAN X Y
    [object]
        silent=yes
        duration=forever
        [filter]
            x,y={X},{Y}
            type=Bowman
        [/filter]

        [effect]
            apply_to=attack
            range=ranged
            [set_specials]
                {WEAPON_SPECIAL_FIRSTSTRIKE}
            [/set_specials]
        [/effect]
    [/object]
#enddef

[multiplayer]
    id=multiplayer_Hornshark_Island
    name= _ "2p — Hornshark Island"
    # wmllint: local spelling Paterson
    description= _ "Players must forge strange alliances with the local inhabitants, in order to survive on this most unusual of islands. Designed by Doc Paterson."
    map_data="{multiplayer/maps/2p_Hornshark_Island.map}"
    random_start_time="no"

    {DEFAULT_SCHEDULE_MORNING}

    {DEFAULT_MUSIC_PLAYLIST}

    [side]
        [ai]
            villages_per_scout=8
        [/ai]
        side=1
        gold=75
        canrecruit=yes
        controller=human
        team_name=north
        user_team_name= _ "teamname^North"
        fog=yes
    [/side]
    [side]
        [ai]
            villages_per_scout=8
        [/ai]
        side=2
        gold=75
        canrecruit=yes
        controller=human
        team_name=south
        user_team_name= _ "teamname^South"
        fog=yes
    [/side]

    [event]
        name=prestart

        [set_variables]
            name=factions
            [value]
                {multiplayer/factions/drakes-default.cfg}
                {multiplayer/factions/knalgans-default.cfg}
                {multiplayer/factions/loyalists-default.cfg}
                {multiplayer/factions/northerners-default.cfg}
                {multiplayer/factions/rebels-default.cfg}
                {multiplayer/factions/undead-default.cfg}
            [/value]
        [/set_variables]

        [lua]
            code={./2p_Hornshark_Island_lua}
        [/lua]

        [fire_event]
            name=place_units
        [/fire_event]
        {CLEAR_VARIABLE factions}
    [/event]

    [event]
        name=place_units

        [switch]
            variable=p1_faction
            [case]
                value=$factions.multiplayer_side[0].id

                [unit]
                    side=1
                    type=Young Ogre
                    id=Baby Baby Bo
                    name= _ "Big Baby Bo"
                    x,y=24,4
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Drake Fighter
                    id=Rawffus the Dim
                    name= _ "Rawffus the Dim"
                    x,y=1,1
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_SLOW}
                        {TRAIT_DIM}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Saurian Skirmisher
                    x,y=1,2
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_DEXTROUS}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Saurian Augur
                    x,y=26,3
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_HEALTHY}
                    [/modifications]
                [/unit]
            [/case]
            [case]
                value=$factions.multiplayer_side[1].id

                [unit]
                    side=1
                    type=Thug
                    x,y=1,1
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_DIM}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Dwarvish Scout
                    id=Kolbur
                    name= _ "Kolbur"
                    x,y=2,2
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_HEALTHY}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Young Ogre
                    id=Big Baby Bo
                    name= _ "Big Baby Bo"
                    x,y=24,4
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Dwarvish Scout
                    id=Vilhelm Viskitynnyri
                    name= _ "Vilhelm Viskitynnyri"
                    x,y=26,3
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_HEALTHY}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Ruffian
                    x,y=1,2
                    [modifications]
                        {TRAIT_RESILIENT}
                        {TRAIT_DIM}
                    [/modifications]
                [/unit]
            [/case]

            [case]
                value=$factions.multiplayer_side[2].id

                [unit]
                    side=1
                    type=Young Ogre
                    id=Big Baby Bo
                    name= _ "Big Baby Bo"
                    x,y=24,4
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Peasant
                    x,y=25,3
                    [modifications]
                        {TRAIT_INTELLIGENT}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Sergeant
                    x,y=25,5
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_SLOW}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Woodsman
                    id=Clockwork Boy
                    name= _ "Clockwork Boy"
                    x,y=1,2
                    [modifications]
                        {TRAIT_MECHANICAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Woodsman
                    id=Clockwork Boy
                    name= _ "Clockwork Boy"
                    x,y=2,1
                    [modifications]
                        {TRAIT_MECHANICAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Bowman
                    x,y=1,1
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]
            [/case]

            [case]
                value=$factions.multiplayer_side[3].id

                [unit]
                    side=1
                    type=Young Ogre
                    id=Big Baby Bo
                    name= _ "Big Baby Bo"
                    x,y=24,4
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Goblin Impaler
                    x,y=25,5
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Orcish Leader
                    id=Neki the Brutal
                    name= _ "Neki the Brutal"
                    x,y=1,5
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_INTELLIGENT}
                        {TRAIT_SLOW}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Naga Fighter
                    x,y=1,2
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]
            [/case]

            [case]
                value=$factions.multiplayer_side[4].id

                [unit]
                    side=1
                    type=Young Ogre
                    id=Big Baby Bo
                    name= _ "Big Baby Bo"
                    x,y=24,4
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Elvish Fighter
                    id=Drowsk Calbeht
                    name= _ "Drowsk Calbeht"
                    x,y=25,3
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_DEXTROUS}
                    [/modifications]
                [/unit]

                [unit]
                    side=1
                    type=Mermaid Initiate
                    x,y=4,1
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_INTELLIGENT}
                    [/modifications]
                    [abilities]
                        {ABILITY_HEALS}
                    [/abilities]
                [/unit]

                [unit]
                    side=1
                    type=Elvish Archer
                    x,y=1,1
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]
            [/case]
            [case]
                value=$factions.multiplayer_side[5].id

                [unit]
                    x,y=23,3
                    side=1
                    type=Ghoul
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    x,y=26,3
                    side=1
                    type=Walking Corpse
                    variation=saurian
                    [modifications]
                        {TRAIT_STRONG}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    id=Rzrrt the Dauntless
                    name= _ "Rzrrt the Dauntless"
                    x,y=25,5
                    side=1
                    type=Soulless
                    variation=saurian
                    {IS_LOYAL}
                    [abilities]
                        {ABILITY_AMBUSH}
                    [/abilities]
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_STRONG}
                        {TRAIT_RESILIENT}
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]

                [unit]
                    x,y=1,3
                    side=1
                    type=Soulless
                    variation=dwarf
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]

                [unit]
                    x,y=2,2
                    side=1
                    type=Walking Corpse
                    variation=dwarf
                    [modifications]
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]

                [unit]
                    id=Sorrek, Chosen of Death
                    name= _ "Sorrek, Chosen of Death"
                    x,y=2,1
                    side=1
                    type=Skeleton
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_FEARLESS}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]
            [/case]

            [else]
                [unit]
                    side=1
                    type=Young Ogre
                    id=Big Baby Bo
                    name= _ "Big Baby Bo"
                    x,y=24,4
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_DIM}
                    [/modifications]
                [/unit]
                [unit]
                    side=1
                    type=Giant Rat
                    x,y=25,3
                    [modifications]
                        {TRAIT_STRONG}
                        {TRAIT_RESILIENT}
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]
                [unit]
                    side=1
                    type=Troll Whelp
                    x,y=25,5
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_INTELLIGENT}
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]
                [unit]
                    side=1
                    type=Mudcrawler
                    x,y=1,2
                    [modifications]
                        {TRAIT_QUICK}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]
                [unit]
                    side=1
                    type=Fire Guardian
                    x,y=2,1
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_FEARLESS}
                        {TRAIT_SLOW}
                    [/modifications]
                [/unit]
                [unit]
                    side=1
                    type=Giant Scorpion
                    id=Clockwork Scorpion
                    x,y=1,1
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_MECHANICAL}
                        {TRAIT_LOYAL}
                        {TRAIT_SLOW}
                    [/modifications]
                [/unit]
            [/else]
        [/switch]

        [switch]
            variable=p2_faction
            [case]
                value=$factions.multiplayer_side[0].id

                [unit]
                    side=2
                    type=Young Ogre
                    id=Baby Baby Dro
                    name= _ "Big Baby Dro"
                    x,y=7,21
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Drake Fighter
                    id=Gawffus the Dim
                    name= _ "Gawffus the Dim"
                    x,y=29,27
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_SLOW}
                        {TRAIT_DIM}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Saurian Skirmisher
                    x,y=30,27
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_DEXTROUS}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Saurian Augur
                    x,y=7,22
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_HEALTHY}
                    [/modifications]
                [/unit]
            [/case]
            [case]
                value=$factions.multiplayer_side[1].id

                [unit]
                    side=2
                    type=Thug
                    x,y=30,27
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_DIM}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Dwarvish Scout
                    id=Rublok
                    name= _ "Rublok"
                    x,y=7,21
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_HEALTHY}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Young Ogre
                    id=Baby Baby Dro
                    name= _ "Big Baby Dro"
                    x,y=6,20
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Dwarvish Scout
                    id=Ulysses Mantyjuuri
                    name= _ "Ulysses Mantyjuuri"
                    x,y=29,26
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_HEALTHY}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Ruffian
                    x,y=30,26
                    [modifications]
                        {TRAIT_RESILIENT}
                        {TRAIT_DIM}
                    [/modifications]
                [/unit]
            [/case]

            [case]
                value=$factions.multiplayer_side[2].id

                [unit]
                    side=2
                    type=Young Ogre
                    id=Baby Baby Dro
                    name= _ "Big Baby Dro"
                    x,y=6,20
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Peasant
                    x,y=10,23
                    [modifications]
                        {TRAIT_INTELLIGENT}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Sergeant
                    x,y=7,21
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_SLOW}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Woodsman
                    id=Clockwork Boy
                    name= _ "Clockwork Boy"
                    x,y=30,27
                    [modifications]
                        {TRAIT_MECHANICAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Woodsman
                    id=Clockwork Boy
                    name= _ "Clockwork Boy"
                    x,y=29,27
                    [modifications]
                        {TRAIT_MECHANICAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Bowman
                    x,y=28,24
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]
            [/case]

            [case]
                value=$factions.multiplayer_side[3].id

                [unit]
                    side=2
                    type=Young Ogre
                    id=Baby Baby Dro
                    name= _ "Big Baby Dro"
                    x,y=6,20
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Goblin Impaler
                    x,y=7,21
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Orcish Leader
                    id=Neki the Brute
                    name= _ "Neki the Brute"
                    x,y=30,24
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_INTELLIGENT}
                        {TRAIT_SLOW}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Naga Fighter
                    x,y=28,27
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]
            [/case]

            [case]
                value=$factions.multiplayer_side[4].id

                [unit]
                    side=2
                    type=Young Ogre
                    id=Baby Baby Dro
                    name= _ "Big Baby Dro"
                    x,y=6,20
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Elvish Fighter
                    id=Claiomh Dubh
                    name= _ "Claiomh Dubh"
                    x,y=7,21
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_DEXTROUS}
                    [/modifications]
                [/unit]

                [unit]
                    side=2
                    type=Mermaid Initiate
                    x,y=27,27
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_INTELLIGENT}
                    [/modifications]
                    [abilities]
                        {ABILITY_HEALS}
                    [/abilities]
                [/unit]

                [unit]
                    side=2
                    type=Elvish Archer
                    x,y=30,27
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]
            [/case]
            [case]
                value=$factions.multiplayer_side[5].id

                [unit]
                    x,y=6,20
                    side=2
                    type=Ghoul
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]

                [unit]
                    x,y=10,23
                    side=2
                    type=Walking Corpse
                    variation=saurian
                    [modifications]
                        {TRAIT_STRONG}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]

                [unit]
                    id=Tyxrrn the Dauntless
                    name= _ "Tyxrrn the Dauntless"
                    x,y=7,21
                    side=2
                    type=Soulless
                    variation=saurian
                    {IS_LOYAL}
                    [abilities]
                        {ABILITY_AMBUSH}
                    [/abilities]
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_STRONG}
                        {TRAIT_RESILIENT}
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]

                [unit]
                    x,y=30,26
                    side=2
                    type=Soulless
                    variation=dwarf
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]

                [unit]
                    x,y=28,25
                    side=2
                    type=Walking Corpse
                    variation=dwarf
                    [modifications]
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]

                [unit]
                    id=Rukhos, Chosen of Death
                    name= _ "Rukhos, Chosen of Death"
                    x,y=27,27
                    side=2
                    type=Skeleton
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_FEARLESS}
                        {TRAIT_STRONG}
                    [/modifications]
                [/unit]
            [/case]

            [else]
                [unit]
                    side=2
                    type=Young Ogre
                    id=Baby Baby Dro
                    name= _ "Big Baby Dro"
                    x,y=7,20
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_RESILIENT}
                        {TRAIT_DIM}
                    [/modifications]
                [/unit]
                [unit]
                    side=2
                    type=Giant Rat
                    x,y=10,23
                    [modifications]
                        {TRAIT_STRONG}
                        {TRAIT_RESILIENT}
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]
                [unit]
                    side=2
                    type=Troll Whelp
                    x,y=9,23
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_INTELLIGENT}
                        {TRAIT_QUICK}
                    [/modifications]
                [/unit]
                [unit]
                    side=2
                    type=Fire Guardian
                    x,y=30,27
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_LOYAL}
                        {TRAIT_FEARLESS}
                        {TRAIT_SLOW}
                    [/modifications]
                [/unit]
                [unit]
                    side=2
                    type=Mudcrawler
                    x,y=29,27
                    [modifications]
                        {TRAIT_QUICK}
                        {TRAIT_RESILIENT}
                    [/modifications]
                [/unit]
                [unit]
                    side=2
                    type=Giant Scorpion
                    id=Clockwork Scorpion
                    x,y=28,24
                    {IS_LOYAL}
                    [modifications]
                        {TRAIT_MECHANICAL}
                        {TRAIT_LOYAL}
                        {TRAIT_SLOW}
                    [/modifications]
                [/unit]
            [/else]
        [/switch]
    [/event]

    [event]
        name=prestart

        {MODIFY_BOWMAN 1 1}
        {MODIFY_BOWMAN 28 24}
    [/event]
[/multiplayer]
