Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > Unit Orders
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:23
  Old Post 11-11-2002 02:23
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Unit Orders Suffering from ads?

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?

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:23
  Old Post 11-11-2002 03:02 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

There's a MovePathOrder event in SLIC. You'd probably have to hold all the units in an array, and check each turn if they have a move order. I'm not entirely sure how the move ordering works, but its a starting point...

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:23
  Old Post 11-11-2002 03:52
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Help yourself to an AD-FREE life

quote:
Originally posted by Immortal Wombat
There's a MovePathOrder event in SLIC. You'd probably have to hold all the units in an array, and check each turn if they have a move order. I'm not entirely sure how the move ordering works, but its a starting point...


Thanks, IW. I've already tried several different arrays, but they won't do the trick. I'll have to find a different work around. Oh well, back to the drawing board.

Peter Triggs is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:23
  Old Post 11-11-2002 04:35
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Full PM-box? Change here!

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 is offline Peter Triggs
Prince
Gone Fishin, Canada
Jan 2000
time: 05:23
  Old Post 12-11-2002 07:05
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Inflate your Upload Space

I forgot to ask: What are you working on?

ahenobarb is offline ahenobarb
Prince

Nov 2001
time: 05:23
  Old Post 12-11-2002 22:47
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Enter the AD-FREE zone

quote:
Originally posted by Peter Triggs
I forgot to ask: What are you working on?


A Rome mod. No big whup. I'm tackling the most difficult problems first to see what will be the limits of what can be done. I don't want it to get array heavy otherwise it will take 10 minutes to cycle a turn.

The question below was about a low priority wishlist addition. If it requires another array, forget it.

FRITZ is offline FRITZ
Settler
Berlin-Germany
Nov 2001
time: 05:23
  Old Post 24-11-2002 23:10 Visit FRITZ's homepage!
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Got spare money?

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

Dale is offline Dale
King
Sir! Why do you keep clicking on me?
Dec 2000
time: 15:23
  Old Post 25-11-2002 03:32
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton buy from Amazon

quote:
Originally posted by FRITZ
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.


I use these to see when if(..) statements become true. I've caught many bugs by using this technique.

quote:

Locutus and Dale are the great slic experts of ctp2 you find a lot of stuff in Locutus `Guide to Slic for ctp2`'

Fritz


Gee..... now I'm blushing......

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:23.
Apolyton Time is 00:23.
    top of page
Rate This Thread:
archivepost
Forum Jump:
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
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0396 seconds (89.62% PHP - 10.38% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net