mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-10 02:42:04 +00:00
42 lines
956 B
INI
42 lines
956 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 OLD_X OLD_Y NEW_X NEW_Y
|
|
# Teleports a unit on tile OLD_X,OLD_Y to NEW_X,NEW_Y
|
|
#
|
|
# For example, teleport any unit thats currently on 1,1 to 4,5
|
|
#! {TELEPORT_TILE 1 1 4 5}
|
|
[teleport]
|
|
[filter]
|
|
x={OLD_X}
|
|
y={OLD_Y}
|
|
[/filter]
|
|
x={NEW_X}
|
|
y={NEW_Y}
|
|
[/teleport]
|
|
[redraw]
|
|
[/redraw]
|
|
#enddef
|