wesnoth/data/core/macros/teleport-utils.cfg
Eric S. Raymond 303a039679 Use cancrecruit={yes,no} rather than canrecruit={1,0} everywhere,
...because it's a good example mainline should set for UMC.
This change was done mechanically with a wmllint enhancement.
2008-03-01 08:42:40 +00:00

42 lines
944 B
INI

#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