wesnoth-wiki-changes
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-wiki-changes] MoveExistingUnit


From: wiki
Subject: [Wesnoth-wiki-changes] MoveExistingUnit
Date: Tue, 16 Nov 2004 22:45 +0100

UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/85.7 
(KHTML, like Gecko) Safari/85.8
IP: 65.24.42.180
URI: http://wesnoth.slack.it/?MoveExistingUnit
 - - - - -
Index: MoveExistingUnit
===================================================================
RCS file: /home/wesnoth/cvsroot/wikiroot/MoveExistingUnit,v
retrieving revision 1.1
diff -u -r1.1 MoveExistingUnit
--- MoveExistingUnit    16 Nov 2004 20:14:05 -0000      1.1
+++ MoveExistingUnit    16 Nov 2004 21:45:29 -0000
@@ -14,10 +14,13 @@
  {MOVE_EXISTING_UNIT role=Advisor $to_x $to_y}
 
 Notes:
-* If a legal path cannot be found, no movement will be displayed, but the unit 
will still be moved.  However beware: moving through cavewall is considered
+* If a legal path cannot be found, no movement will be displayed, but the unit 
will still be moved.  However beware: moving through cavewall is
+considered
 legal, but displays extremely slowly when the accelerated speed option is not 
enabled.
-* If there is a unit at the destination location, a nearby location to move to 
will be chosen.  If that is a problem, you can make sure that location is empty
+* If there is a unit at the destination location, a nearby location to move to 
will be chosen.  If that is a problem, you can make sure that location is
+empty
 before using this macro.
+* You also need to have a unit Invisible (the code is listed at the bottom).
 
   #usual version
  #define MOVE_EXISTING_UNIT FILTER X Y
@@ -159,7 +162,27 @@
        {CLEAR_VARIABLE temp_y1}
        {CLEAR_VARIABLE mover_store}
  #enddef
+The unit Invisible:
 
+ [unit]
+ id=Invisible
+ name= _ "Invisible"
+ alpha=0.0
+ hitpoints=1
+ experience=500
+ level=0
+ alignment=neutral
+ advanceto=null
+ cost=0
+ usage=null
+       [attack]
+       name=dummy
+       type=impact
+       range=short
+       damage=0
+       number=0
+       [/attack]
+ [/unit]
 
 ||See Also||
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]