Author: fendrin
Date: Thu Dec  4 16:45:55 2008
New Revision: 31263

URL: http://svn.gna.org/viewcvs/wesnoth?rev=31263&view=rev
Log:
Added a macro that assigns all villages on the map to a specified side. 

Modified:
    trunk/data/core/macros/side-utils.cfg

Modified: trunk/data/core/macros/side-utils.cfg
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/core/macros/side-utils.cfg?rev=31263&r1=31262&r2=31263&view=diff
==============================================================================
--- trunk/data/core/macros/side-utils.cfg (original)
+++ trunk/data/core/macros/side-utils.cfg Thu Dec  4 16:45:55 2008
@@ -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]
@@ -214,6 +214,17 @@
         name=prestart
 
         {CAPTURE_VILLAGES {SIDE} {X} {Y} {RADIUS}}
+    [/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
 
@@ -235,4 +246,3 @@
 
     {CLEAR_VARIABLE TRANSFER_VILLAGE_OWNERSHIP_villages}
 #enddef
-


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to