Thread Tools
Old June 1, 2002, 14:47   #1
Turambar
Call to Power II Democracy GameCivilization II PBEMCall to Power Democracy GameCTP2 Source Code Project
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?
Turambar is offline  
Old June 1, 2002, 15:50   #2
J Bytheway
Call to Power PBEMCall to Power II Democracy GameCTP2 Source Code Project
Emperor
 
J Bytheway's Avatar
 
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.
J Bytheway is offline  
Old June 1, 2002, 15:58   #3
Turambar
Call to Power II Democracy GameCivilization II PBEMCall to Power Democracy GameCTP2 Source Code Project
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?
Turambar is offline  
Old June 1, 2002, 18:55   #4
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
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!"
Martin Gühmann is offline  
Old June 1, 2002, 19:02   #5
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
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
Immortal Wombat is offline  
Old June 1, 2002, 19:03   #6
Martin Gühmann
staff
Call to Power II Democracy GameCall to Power Democracy GameCTP2 Source Code Project
Super Moderator
 
Martin Gühmann's Avatar
 
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!"
Martin Gühmann is offline  
Old June 2, 2002, 08:07   #7
Turambar
Call to Power II Democracy GameCivilization II PBEMCall to Power Democracy GameCTP2 Source Code Project
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.
Turambar is offline  
Old June 2, 2002, 12:49   #8
J Bytheway
Call to Power PBEMCall to Power II Democracy GameCTP2 Source Code Project
Emperor
 
J Bytheway's Avatar
 
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.
J Bytheway is offline  
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 21:49.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team