UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050517 Firefox/1.0.4 (Debian package 1.0.4-2) IP: 64.81.113.168 URI: http://wesnoth.slack.it/?WmlMacros - - - - - Index: WmlMacros =================================================================== RCS file: /home/wesnoth/cvsroot/wikiroot/WmlMacros,v retrieving revision 1.2 diff -u -r1.2 WmlMacros --- WmlMacros 1 Jul 2005 19:40:31 -0000 1.2 +++ WmlMacros 1 Jul 2005 19:42:17 -0000 @@ -5,8 +5,8 @@ #put {NEXT INDEX} after it #define FOREACH_FORMAT ARRAY INDEX {FOREACH {ARRAY} {INDEX}} - {RECORD {ARRAY}[${INDEX}] x} - {RECORD {ARRAY}[${INDEX}] y} + {FORMAT {ARRAY}[${INDEX}] x} + {FORMAT {ARRAY}[${INDEX}] y} #enddef #define STORE_UNIT NAME [store_unit] @@ -73,6 +73,13 @@ x,y={X},{Y} side=1 #enddef + #define TRAP_UNIT TYPE + [unit] + x,y=$x1,$y1 + type={TYPE} + side=2 + [/unit] + #enddef ##also a partial macro; '[/unit]' must be used later #define MOVE_UNIT_START X_START Y_START X Y TYPE [move_unit_fake]
_______________________________________________ Wesnoth-wiki-changes mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/wesnoth-wiki-changes
