 |
|
Pap1723
|
 |
Chicago, IL
Mar 2000 time: 23:19
|
|
The event...
@IF
TURN
turn=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Japanese
maprect
262,90,262,90,262,90,262,90
moveto
263,97
numbertomove=ALL
@ENDIF
@IF
TURN
turn=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Japanese
maprect
261,91,261,91,261,91,261,91
moveto
263,97
numbertomove=ALL
@ENDIF
@IF
TURN
turn=1
@THEN
MOVEUNIT
unit=AnyUnit
owner=Japanese
maprect
263,89,263,89,263,89,263,89
moveto
263,97
numbertomove=ALL
@ENDIF
|
|
|  |
 |
|
Thoddy
|
|
Hannover, Germany
Jan 2001 time: 06:19
|
|
From macro.txt (ToT)
MoveUnit
unit=name of a type of unit
owner= civilization name
[Map=] number of a map
maprect x1,y1,x2,y2,x3,y3,x4,y4
moveto x,y
numbertomove= number or [All]
MoveUnit:
This scans a specified rectangular region of the map (maprect), then orders a specified number of the owner's units of the given type in that region to move to a certain location. The program only activates units that are (1) not fortified, (2) not on sentry duty, (3) not already headed for a destination, (4) not building fortifications, and (5) not nuclear weapons. MoveUnit does not affect units owned by human players. MOVEUNIT must not be used in the same event as the DelayPerFlag modifier.
The optional Map parameter allows you to specify which of the possible maps (the number available depends on how many are included in the particular scenario) the maprect and moveto locations refer to. Each action of this type affects only one map; the default is map 0.
The maprect coordinates define the corners of the rectangular region. They must (1) be on the line immediately following the word maprect, (2) be separated by commas, and (3) be listed in the following specific order to be valid. (They also must be valid map coordinates.) The first coordinate must be the upper left corner; next comes the upper right, then lower right, and finally lower left. Thus:
1--2
4--3
From this description it seems your event is right, maybe the description is not correct. (airunits also dont get activated -its possible that the moveto coordinates are out of range of the air unit and the units would crash than- to prevent such an possible event all air units ignore this command)
Try unit=val instead anyunit
or change trigger
If turn
turn=-1 (every turn)
combined with justonce modifier
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:19. Apolyton Time is 00:19. |
top of page
|
| archivepost |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
|
|
|
|
|
|