mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 10:20:30 +00:00
40 lines
711 B
INI
40 lines
711 B
INI
# Macros for teleporting units.
|
|
# These don't depend on any other macros. Please don't change this.
|
|
|
|
# Teleports a unit matching FILTER to NEWX,NEWY
|
|
# For example, teleport player 3's leader to 4,5
|
|
# {TELEPORT_UNIT (
|
|
# side=3
|
|
# canrecruit=1
|
|
# ) 4 5}
|
|
|
|
#define TELEPORT_UNIT FILTER NEWX NEWY
|
|
[teleport]
|
|
[filter]
|
|
{FILTER}
|
|
[/filter]
|
|
x={NEWX}
|
|
y={NEWY}
|
|
[/teleport]
|
|
[redraw]
|
|
[/redraw]
|
|
#enddef
|
|
|
|
# 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}
|
|
|
|
#define TELEPORT_TILE OLDX OLDY NEWX NEWY
|
|
[teleport]
|
|
[filter]
|
|
x={OLDX}
|
|
y={OLDY}
|
|
[/filter]
|
|
x={NEWX}
|
|
y={NEWY}
|
|
[/teleport]
|
|
[redraw]
|
|
[/redraw]
|
|
#enddef
|
|
|