 |
|
ahenobarb
|
|
How is it possible to find out if a unit has been given an order?
What I want to do is run a check each turn to find out if a unit has already been given a pathed move order. If it doesn't have a pathed move order, I want to give it one. But I don't want to give it one if it already has one.
Anyone have any ideas?
|
|
|  |
 |
|
Peter Triggs
|
|
Gone Fishin, Canada
Jan 2000 time: 05:23
|
|
IMO, anything to do with moving units is a pain in the neck.
I *think* the move order:
quote:
MoveOrder(army_t, GEA_Path, location_t, int_t)
|
triggers when army[0] makes one move along the given GEA_Path. But as I recall, when I tried to write a handler that watched for this so that I could change their orders, I ran into trouble (can't remember what happened).
If you're trying to move AI armys that aren't doing anything, try the Entrench event. The AI will entrench armys when it's got nothing better to do with them.
|
|
|  |
 |
|
Peter Triggs
|
|
Gone Fishin, Canada
Jan 2000 time: 05:23
|
|
I forgot to ask: What are you working on?
|
|
|  |
 |
|
FRITZ
|
|
Berlin-Germany
Nov 2001 time: 05:23
|
|
Some ideas to check the slic and the move-path of armies:
I had the same problem some month ago.
When I prepared my first slic program I build in a message-box command. This helped me to see if a line in slic works. If the message-box (in the game) appears the program works to that line.
If you clear the fog of war - you can see the move path orders of units from all nations.
I have build up a very simple scenario to check my slic-codes (slic-tester on my homepage). It was useful for me to learn slic- movements through very simple commands (e.g. I let all units of the game go to the south or to the north or to a special declared point).
Locutus and Dale are the great slic experts of ctp2 you find a lot of stuff in Locutus `Guide to Slic for ctp2`'
Fritz
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:23. Apolyton Time is 00:23. |
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
|
|
|
|
|
|