Reorganization: put CREATE_UNIT neaer MOVE_UNIT where it clearly belongs.

This commit is contained in:
Eric S. Raymond 2007-04-05 17:17:23 +00:00
parent 98b0677183
commit a8c885fe18
2 changed files with 27 additions and 22 deletions

View File

@ -34,25 +34,3 @@
[/redraw]
#enddef
# Creates a unit of TYPE belonging to SIDE at X,Y. UNIT_ID can be used when filtering on it.
# For example, lets create a wose for player 1 at 4,7
# {CREATE_UNIT 1 "Wose" 4 7 () ()}
# As a second example, lets make it a female wose which can recruit and is name "Woselina":
# {CREATE_UNIT 1 "Wose" 4 7 "Woselina" (
# canrecruit=1
# )}
#define CREATE_UNIT SIDE TYPE X Y UNIT_ID OTHER
[unit]
side={SIDE}
type={TYPE}
x={X}
y={Y}
description={UNIT_ID}
upkeep=full
animate=yes
{OTHER}
[/unit]
#enddef

View File

@ -40,6 +40,7 @@
# IS_HERO
# UNIT
# UNDEAD_UNIT
# CREATE_UNIT
# MOVE_UNIT
# MODIFY_UNIT
# STORE_UNIT_VAR
@ -273,6 +274,32 @@ message={MSG}
#enddef
# Creates a unit of TYPE belonging to SIDE at X,Y. UNIT_ID can be used
# when filtering on it. For example, let's create a wose for player 1
# at 4,7
#
# {CREATE_UNIT 1 "Wose" 4 7 () ()}
#
# As a second example, let's make it a female wose which can recruit and
# is name "Woselina":
#
# {CREATE_UNIT 1 "Wose" 4 7 "Woselina" (
# canrecruit=1
# )}
#define CREATE_UNIT SIDE TYPE X Y UNIT_ID OTHER
[unit]
side={SIDE}
type={TYPE}
x={X}
y={Y}
description={UNIT_ID}
upkeep=full
animate=yes
{OTHER}
[/unit]
#enddef
# Moves a unit from its current location to the given location along a
# relatively straight line displaying the movement just like [move_unit_fake]
# does.