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 > Civilization: Call To Power > CtP-Creation > SLIC question...can I use it to allow for upgrading units?
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
12.Sep: `CTP CHALLENGE LADDER` - SEPTEMBER UPDATE
09.Sep: EARLY BUILD SPRITE EDITOR
02.Aug: `SUPERLEAGUE` SIGN-UP

bottom of page
  - CIVILIZATION: CALL TO POWER @ GAMESTOP $9.99 - CIVILIZATION: CALL TO POWER @ AMAZON $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
celicakydd is offline celicakydd
Settler
Harrisburg, PA
Nov 2001
time: 00:24
Question  Old Post 08-12-2002 21:17 Visit celicakydd's homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
SLIC question...can I use it to allow for upgrading units? Support Apolyton, pre-order Civilization IV

I was looking through the SLIC code and was wondering if anyone had any thoughts on what way to approach upgrading units once they become obsolete or possibly at least cashing them in for gold or resources.

J Bytheway is offline J Bytheway
Emperor
England
Jul 2001
time: 05:24
  Old Post 09-12-2002 02:03 Visit J Bytheway's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Inflate your Upload Space

You can code unit upgrading in SLIC but it would not be easy. The code would be simple but very very very long. I guess it would go something like (in pseudocode):

code:
trigger on gaining advance if advance is bronze working loop through all units if warrior, change to phalanx if advance is ... loop through all units . . .

(I can provide more details on actually implementing this if you wish).

You could of course add some kind of cost to this upgrading, and prevent it if the player had insufficient gold, or upgrade only those units in cities, etc.

You can already cash in units for resources by disbanding them in cities, whereupon half their production goes towards helping whatever is under construction.

Last edited by J Bytheway on 09-12-2002 at 21:18

celicakydd is offline celicakydd
Settler
Harrisburg, PA
Nov 2001
time: 00:24
  Old Post 09-12-2002 16:51 Visit celicakydd's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Got spare money?

Thanks so much for your help. Yes, I think I would like to try this and see if I can make an upgrade script of sorts. I got the idea from the powerslic mod I downloaded where every time a settler moves through a city it asks if you want to add the settler to the city POP. I was thinking I could do something similar if the unit is obsolete in asking if you want to upgrade the unit if an upgrade is available.

celicakydd is offline celicakydd
Settler
Harrisburg, PA
Nov 2001
time: 00:24
  Old Post 14-12-2002 12:02 Visit celicakydd's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton buy from Amazon

Well, I am in the middle of writing my script to do automatic unit upgrades. So far I am only testing it with one unit to see how it goes, then I will expand it to all the units with upgrade options. I want to make sure it works in multiplayer and also for the AI. Thanks again for your help.

Tamerlin is offline Tamerlin
King
Toulouse (South-western France)
Apr 2002
time: 06:24
  Old Post 06-01-2003 03:29
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Suffering from ads?

quote:
Originally posted by celicakydd
Well, I am in the middle of writing my script to do automatic unit upgrades. So far I am only testing it with one unit to see how it goes, then I will expand it to all the units with upgrade options. I want to make sure it works in multiplayer and also for the AI. Thanks again for your help.


I don't know if it can be of any help but there is already an Update slic file for the CtP2 Cradle mod and I am currently working on a conversion to the CtP2 Super Apolyton Pack 2.

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:24.
Apolyton Time is 00:24.
    top of page
Rate This Thread:
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.0292 seconds (84.50% PHP - 15.50% MySQL) with 30 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