June 1, 2002, 14:47
|
#1
|
Prince
Local Time: 01:49
Local Date: November 1, 2010
Join Date: Apr 2002
Location: England
Posts: 310
|
Units Home City
Is there a way to find out which city a certain unit was built in useing SLIC?
|
|
|
|
June 1, 2002, 15:50
|
#2
|
Emperor
Local Time: 02:49
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
I think that you could, but only by monitoring all units as they are built and adding them to an array.
|
|
|
|
June 1, 2002, 15:58
|
#3
|
Prince
Local Time: 01:49
Local Date: November 1, 2010
Join Date: Apr 2002
Location: England
Posts: 310
|
I thought about that but how would you keep track of which is which?
|
|
|
|
June 1, 2002, 18:55
|
#4
|
Super Moderator
Local Time: 03:49
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
If you could rename an army by slic than it shouldn't be no problem (I did not looked it up in the slic documentation), so far you can rename armies by hand. But actual I see no use in tracking units as the units are paid from the global empire production and don't get their support by one single city like in Civ2.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
June 1, 2002, 19:02
|
#5
|
Prince
Local Time: 02:49
Local Date: November 1, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
|
each unit has a unique index in SLIC, so keeping track is possible.
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
|
|
|
|
June 1, 2002, 19:03
|
#6
|
Super Moderator
Local Time: 03:49
Local Date: November 1, 2010
Join Date: Mar 2001
Location: Tübingen, Germany
Posts: 6,206
|
OK you have the index but what do you do if you reload slic.
-Martin
__________________
Civ2 military advisor: "No complaints, Sir!"
|
|
|
|
June 2, 2002, 08:07
|
#7
|
Prince
Local Time: 01:49
Local Date: November 1, 2010
Join Date: Apr 2002
Location: England
Posts: 310
|
I've only recently started learning SLIC so how exactly would I be able to do this?
This does all have a point by the way I'm working on a new type of unit/mod which hopefully I'll finish soon.
|
|
|
|
June 2, 2002, 12:49
|
#8
|
Emperor
Local Time: 02:49
Local Date: November 1, 2010
Join Date: Jul 2001
Location: England
Posts: 3,826
|
Quote:
|
Originally posted by Martin Gühmann
OK you have the index but what do you do if you reload slic.
|
You dont . But seriously - you'll have to consider this because reloading SLIC happens a lot for various reasons, so your code will have to cope with being initialised when there are already units around - the best you could do would probably be to set their home to be the closest city.
|
|
|
|
Posting 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
|
|
|
All times are GMT -4. The time now is 21:49.
|
|