#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_CAPTAIN X Y
[unit]
type=Elvish Captain
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_HERO X Y
[unit]
type=Elvish Hero
side=2
generate_description=yes
random_traits=yes
x={X}
y={Y}
[/unit]
#enddef

#define ELVISH_MARKSMAN X Y
[unit]
type=Elvish Marksman
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 NAME
[unit]
description={NAME}
type=Gork Orcish Shaman
side=1
x={X}
y={Y}
[/unit]
#enddef

#define NOVICE_ORCISH_SHAMAN X Y NAME
[unit]
description={NAME}
type=Novice Orcish Shaman
side=1
x={X}
y={Y}
[/unit]
#enddef

#define ORCISH_SHAMAN X Y NAME
[unit]
description={NAME}
type=Orcish Shaman
side=1
x={X}
y={Y}
[/unit]
#enddef


#define MOVE_TRANSPORT_GALEON ORIGX ORIGY ENDX ENDY MOVEX MOVEY
	[hide_unit]
	x={ORIGX}
	y={ORIGY}
	[/hide_unit]
	[move_unit_fake]
	type=Transport Galleon
	x={MOVEX}
	y={MOVEY}
	[/move_unit_fake]
	[teleport]
	    [filter]
		x={ORIGX}
		y={ORIGY}
	    [/filter]
	    x={ENDX}
	    y={ENDY}
	[/teleport]
	[unhide_unit]
	[/unhide_unit]
#enddef

#define WATCH_TOWER X Y NAME
		[unit]
		description={NAME}
		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 NAME
[recall]
	description={NAME}
[/recall]
#enddef

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

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

#define SAURIAN_WARRIOR X Y NAME
[unit]
	type=Saurian Ambusher
	description={NAME}
	side=1
	generate_description=no
	random_traits=yes
	x={X}
	y={Y}
[/unit]
#enddef

#define MERMAN X Y NAME
[unit]
	side=5
	type=Merman Fighter
	description={NAME}
	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 X
[role]
role=store{X}
type=Troll Warrior,Troll,Troll Rocklobber,Troll Whelp
[/role]
[store_unit]
	[filter]
	role=store{X}
	[/filter]
variable=store{X}
kill=yes
[/store_unit]
#enddef


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

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

#enddef


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

#enddef

#define CHANGESIDE4
[store_unit]
	[filter]
	side=4
	[/filter]
	variable=changeside
	kill=yes
[/store_unit]
[set_variable]
name=changeside.side
value=1
[/set_variable]
[unstore_unit]
[/unstore_unit]
[clear_variable]
name=changeside
[/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
