Moved FAKE_UNIT_MOVE macro from scenario-utils.cfg to interface-utils.cfg

Removed excessive verbosity (and wiki non-awareness) from comments.

Renamed a few parameters
This commit is contained in:
Ignacio R. Morelle 2008-11-12 09:50:42 +00:00
parent 5cf8c5dd2d
commit bfd012c729
2 changed files with 19 additions and 23 deletions

View file

@ -309,6 +309,25 @@
{PLACE_IMAGE {X} {Y} ({IMAGE}) }
#enddef
#define FAKE_UNIT_MOVE X1 X2 Y1 Y2 SIDE TYPE MODIFIERS
# Moves a fake unit using TYPE's animations, from (X1, Y1) to (X2, Y2).
# You can also specify modifiers that change the baseframe displayed by
# unit's gender or variation, or none at all.
#
# Example:
#! {FAKE_UNIT_MOVE 1 2 1 2 1 (Dark Adept) (
#! gender=female
#! variation=fancy
#! )}
[move_unit_fake]
type={TYPE}
side={SIDE}
x={X1},{X2}
y={Y1},{Y2}
{MODIFIERS}
[/move_unit_fake]
#enddef
#define SCROLL X Y
# Scrolls the screen by the specified offsets
#

View file

@ -156,26 +156,3 @@ Gg , Gg , Gg , Gg
[/if]
[/event]
#enddef
#define FAKE_UNIT_MOVE XS XD YS YD SIDE TYPE MODIFIER
# Example:
# {FAKE_UNIT_MOVE 1 2 1 2 1 Demon (gender=female variation=uberpowerful)}
# The S in XS and YS mean "start".
# The D in XD and YD mean "destination".
# The 1 in the example is the side the unit will belong to and whatnot. This value just determines which team coloring to use.
# In the example "Demon" is the unit the macro will grab the image from and whatnot.
# If you want the image used to be the female of the specified unit use "gender=female"
# If you want a the image belonging to a specific to be used then use "variation=foobar". Foobar would be replaced with
# the actual variation name of course.
# If you want to specify both a gender and a variation then be sure to enclose them in parenthesis like this:
# (gender=female variation=foobar)
# Please note... if you do not want to specify a gender or variation use "()" so Wesnoth does not complain about
# there not being enough arguments.
[move_unit_fake]
type={TYPE}
side={SIDE}
x={XS},{XD}
y={YS},{YD}
{MODIFIER}
[/move_unit_fake]
#enddef