Added an additional macro for setting starting villages.
This commit is contained in:
parent
31bc4855c0
commit
09cc01346b
1 changed files with 25 additions and 0 deletions
|
@ -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.
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue