#textdomain wesnoth # Macros for teleporting units. # These don't depend on any other macros. Please don't change this. # ! in comments is used in generating HTML documentation, ignore it otherwise. #define TELEPORT_UNIT FILTER X Y # Teleports a unit matching FILTER to X,Y # # For example, teleport player 3's leader to 4,5 #! {TELEPORT_UNIT ( #! side=3 #! canrecruit=yes #! ) 4 5} [teleport] [filter] {FILTER} [/filter] x={X} y={Y} [/teleport] [redraw] [/redraw] #enddef #define TELEPORT_TILE OLDX OLDY NEWX NEWY # Teleports a unit on tile OLDX,OLDY to NEWX,NEWY # # For example, teleport any unit thats currently on 1,1 to 4,5 #! {TELEPORT_TILE 1 1 4 5} [teleport] [filter] x={OLDX} y={OLDY} [/filter] x={NEWX} y={NEWY} [/teleport] [redraw] [/redraw] #enddef