Added an additional macro for setting starting villages.

This commit is contained in:
Lari Nieminen 2007-07-30 10:31:51 +00:00
parent 31bc4855c0
commit 09cc01346b

View file

@ -407,6 +407,31 @@
[/event]
#enddef
#define STARTING_VILLAGES_AREA SIDE X Y RADIUS
# Make a side start with ownership of villages in a given area.
[event]
name=prestart
[store_locations]
x,y={X},{Y}
radius={RADIUS}
[and]
terrain=*^V*
[/and]
variable=temp_starting_villages_area
[/store_locations]
{FOREACH temp_starting_villages_area i}
[capture_village]
side={SIDE}
x,y=$temp_starting_villages_area[$i].x,$temp_starting_villages_area[$i].y
[/capture_village]
{NEXT i}
{CLEAR_VARIABLE temp_starting_villages_area}
[/event]
#enddef
#define UNIT TYPE DESCRIPTION UDESCRIPTION SIDE X Y
# Create a unit with the Loyal trait.
#