Added a macro that assigns all villages on the map to a specified side.

This commit is contained in:
Fabian Müller 2008-12-04 15:45:55 +00:00
parent 62321f60f8
commit 195f04be10

View file

@ -173,7 +173,7 @@
#enddef
#define CAPTURE_VILLAGES_OF_TYPE TYPE SIDE X Y RADIUS
# Change ownership of the villages on a specified a terrain type
# Change ownership of the villages on a specified terrain type
# near a specified location.
{CAPTURE_FILTERED_VILLAGES {SIDE}
(
@ -190,7 +190,7 @@
#enddef
#define STARTING_VILLAGES SIDE RADIUS
# Macro to make a side start a scenario with villages
# Macro to make a side start a scenario with villages.
# Creates an event, so it must be called from within the
# toplevel scenario tag.
[event]
@ -217,6 +217,17 @@
[/event]
#enddef
#define STARTING_VILLAGES_ALL SIDE
# Make a side start with ownership of all villages.
# Creates an event, so it must be called from within the
# toplevel scenario tag.
[event]
name=prestart
{CAPTURE_FILTERED_VILLAGES {SIDE} (terrain=*^V*)}
[/event]
#enddef
#define TRANSFER_VILLAGE_OWNERSHIP FROM_SIDE TO_SIDE
# Transfers ownership of all villages of one side to another side. Useful
# when you're for example moving all units of some side to another, and want
@ -235,4 +246,3 @@
{CLEAR_VARIABLE TRANSFER_VILLAGE_OWNERSHIP_villages}
#enddef