mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 18:13:52 +00:00

...because it's a good example mainline should set for UMC. This change was done mechanically with a wmllint enhancement.
42 lines
944 B
INI
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
|