#textdomain wesnoth-sotbe

#define ELVISH_FIGHTER X Y
    [unit]
        type=Elvish Fighter
        side=2
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define ELVISH_FIGHTER_G X Y
    [unit]
        type=Elvish Fighter
        ai_special=guardian
        side=2
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define ELVISH_ARCHER_G X Y
    [unit]
        type=Elvish Archer
        ai_special=guardian
        side=2
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define ELVISH_CAPTAIN_G X Y
    [unit]
        type=Elvish Captain
        ai_special=guardian
        side=2
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define ELVISH_ARCHER X Y
    [unit]
        type=Elvish Archer
        side=2
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define ORCISH_GRUNT_G X Y
    [unit]
        type=Orcish Grunt
        side=3
        generate_description=yes
        random_traits=yes
        ai_special=guardian
        x={X}
        y={Y}
    [/unit]
#enddef

#define ORCISH_ARCHER_G X Y
    [unit]
        type=Orcish Archer
        side=3
        generate_description=yes
        random_traits=yes
        ai_special=guardian
        x={X}
        y={Y}
    [/unit]
#enddef

#define ORCISH_GRUNT X Y
    [unit]
        type=Orcish Grunt
        side=1
        generate_description=yes
        random_traits=yes
        ai_special=guardian
        x={X}
        y={Y}
    [/unit]
#enddef

#define ORCISH_ARCHER X Y
    [unit]
        type=Orcish Archer
        side=1
        generate_description=yes
        random_traits=yes
        ai_special=guardian
        x={X}
        y={Y}
    [/unit]
#enddef

#define WOLF_RIDER X Y
    [unit]
        type=Wolf Rider
        side=1
        generate_description=yes
        random_traits=yes
        ai_special=guardian
        x={X}
        y={Y}
    [/unit]
#enddef

#define OLD_ORCISH_SHAMAN X Y DESCRIPTION UDESCRIPTION
    [unit]
        description={DESCRIPTION}
        user_description={UDESCRIPTION}
        type=Old Orcish Shaman
        side=1
        x={X}
        y={Y}
        random_traits=no
        [modifications]
            {TRAIT_LOYAL}
        [/modifications]
    [/unit]
#enddef

#define NOVICE_ORCISH_SHAMAN X Y DESCRIPTION UDESCRIPTION
    [unit]
        description={DESCRIPTION}
        user_description={UDESCRIPTION}
        type=Novice Orcish Shaman
        side=1
        x={X}
        y={Y}
        random_traits=no
        [modifications]
            {TRAIT_LOYAL}
        [/modifications]
    [/unit]
#enddef

#define ORCISH_SHAMAN X Y DESCRIPTION UDESCRIPTION
    [unit]
        description={DESCRIPTION}
        user_description={UDESCRIPTION}
        type=Orcish Shaman
        side=1
        x={X}
        y={Y}
        random_traits=no
        [modifications]
            {TRAIT_LOYAL}
        [/modifications]
    [/unit]
#enddef

#define MOVE_TRANSPORT_GALEON ORIG_X ORIG_Y END_X END_Y X_SPAN Y_SPAN
    [hide_unit]
        x={ORIG_X}
        y={ORIG_Y}
    [/hide_unit]
    [move_unit_fake]
        type=Transport Galleon
        x={X_SPAN}
        y={Y_SPAN}
    [/move_unit_fake]
    [teleport]
        [filter]
            x={ORIG_X}
            y={ORIG_Y}
        [/filter]
        x={END_X}
        y={END_Y}
    [/teleport]
    [unhide_unit]
    [/unhide_unit]
#enddef

#define WATCH_TOWER X Y DESCRIPTION
    [unit]
        description={DESCRIPTION}
        type=Watch Tower
        side=1
        x={X}
        y={Y}
    [/unit]
#enddef

#define PIRATE_GALLEON X Y
    [unit]
        side=3
        description= "Pirate Galleon"
        user_description= _ "Pirate Galleon"
        type=Pirate Galleon
        x={X}
        y={Y}
    [/unit]
#enddef

#define SCORPION X Y
    [unit]
        type=Giant Scorpion
        side=3
        x={X}
        y={Y}
    [/unit]
#enddef

#define RECALL DESCRIPTION
    [recall]
        description={DESCRIPTION}
    [/recall]
#enddef

#define SAURIAN X Y
    [unit]
        type=Saurian Skirmisher
        side=1
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define SAURIAN_HEALER X Y
    [unit]
        type=Saurian Augur
        side=1
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define MERMAN X Y DESCRIPTION
    [unit]
        side=5
        type=Merman Fighter
        description={DESCRIPTION}
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define HEAVY_INFANTRYMAN X Y
    [unit]
        type=Heavy Infantryman
        side=2
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define BLACK_FLAG
    flag=flags/black-flag-1.png:100,flags/black-flag-2.png:300,flags/black-flag-1.png:100,flags/black-flag-3.png:300
    flag_icon=flags/black-flag-icon.png
#enddef

#define TROLLARMY NUMBER
    [role]
        role=store{NUMBER}
        type=Troll Warrior,Troll,Troll Rocklobber,Troll Whelp
    [/role]
    [store_unit]
        [filter]
            role=store{NUMBER}
        [/filter]
        variable=store{NUMBER}
        kill=yes
    [/store_unit]
#enddef

#define TROLLRECALL NUMBER
    [unstore_unit]
        variable=store{NUMBER}
    [/unstore_unit]
    [recall]
        role=store{NUMBER}
    [/recall]
    [recall]
        description={NUMBER}
    [/recall]
    [clear_variable]
        name=store{NUMBER}
    [/clear_variable]
#enddef

#define TROLLMOVE NUMBER
    [store_unit]
        [filter]
            role=store{NUMBER}
        [/filter]
        variable=store{NUMBER}
        kill=yes
    [/store_unit]
    [set_variable]
        name=store{NUMBER}.side
        value=4
    [/set_variable]
    [set_variable]
        name=store{NUMBER}.x
        value=5
    [/set_variable]
    [set_variable]
        name=store{NUMBER}.y
        value=4
    [/set_variable]

#enddef

#define TROLLARRIVE NUMBER
    [unstore_unit]
        variable=store{NUMBER}
        find_vacant=yes
    [/unstore_unit]
    [clear_variable]
        name=store{NUMBER}
    [/clear_variable]

#enddef

#define HUMAN_GUARD X Y
    [unit]
        type=Pikeman
        ai_special=guardian
        side=4
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef

#define ORC_GUARD X Y
    [unit]
        type=Orcish Warrior
        ai_special=guardian
        side=2
        generate_description=yes
        random_traits=yes
        x={X}
        y={Y}
    [/unit]
#enddef
