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-General/Help/Strategy > Can Obsolete Units be Upgraded?
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
CivGroups
Apolyton Storywriters' Guild (56): Not a Member - Join

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
Armiture is offline Armiture
Settler
Oxnard, California
Aug 2002
time: 21:31
  Old Post 29-10-2003 14:01
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Can Obsolete Units be Upgraded? Support Apolyton

After not playing it over almost two years I've decided to load up the various gameplay improvement mods and try it again. However I've got a bunch of obsolete units now and I can't find the damn game manual nor can I find any information in the in game Great Library on how to upgrade a unit. Actually neither obsolete nor upgrades are mentioned in the GL.

I have a vague recollection of obsolete units being bad to keep around (extra upkeep fee or something like that) in CTP but I could be wrong, after all it's been two years.

Is there a way to upgrade units or is disbanding them your only option? Also is there a copy of the manual somewhere I can download?

Pave is offline Pave
Prince
Celebrating Macedonia, the country north to FOPOG
Dec 2002
time: 07:31
  Old Post 30-10-2003 19:42 Visit Pave's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Full PM-box? Change here!

Nope, you cant upgrade units, atleast not in basic game.

Armiture is offline Armiture
Settler
Oxnard, California
Aug 2002
time: 21:31
  Old Post 31-10-2003 03:17
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Darn I was hoping there was some weird way of doing it, after all these are the guys who chose to use ! for save game instead of the usual cntrl-S pretty much all other windows programs use.

Mathemagician is offline Mathemagician
King
Darmstadt, Hessen, Germany, Europe, Earth, Solar System, Alpha-Quadrant, Milky Way
Sep 2002
time: 06:31
  Old Post 23-11-2003 20:16
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Avatar Enlargement: We've got the solution

nice avatar you got armiture

TheBirdMan is offline TheBirdMan
Emperor
A real Master of CTP-PBEM - together with all the others.....
Sep 1999
time: 05:31
  Old Post 26-11-2003 10:56
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Increase the size of your Attachments

Try to download Wes W MedMod 4.13 and take a look at the slic-code, which are used for auto-upgrade of the garrisons (or militia units as they are called).

Some of the code comes here:

// This trigger kills all Hoplites, Fyrdmen, Arquebusiers, Musketeers, Riflemen and Machine Gunners and puts a Plasmatica in every (non-space)city (so units outside cities are destroyed)
trigger 'UpgradeMilitiaToPlasmatica' when (player.1 && discovery.type == 191) { // cybernetics
i = 0;
while (i < player.1.totalunits) { // loop through all units
SetUnitByIndex(1, player.1, i);
if (unit.type == UnitType("UNIT_HOPLITE_MILITIA") || unit.type == UnitType("UNIT_FYRDMAN_MILITIA") || unit.type == UnitType("UNIT_ARQUEBUSIER_MILITIA") || unit.type == UnitType("UNIT_MUSKETEERS_MILITIA") || unit.type == UnitType("UNIT_RIFLEMEN_MILITIA") || unit.type == UnitType("UNIT_MACHINE_GUNNER_MILITIA")) {
KillUnit(unit);
} else {
i = i + 1;
}
}
i = 0;
while (i < player.1.cities) { // loop through all cities
SetCityByIndex(1, player.1, i);
if (TerrainType(city.location) != 13) {
if (city.population <= 8) {
number = 1;
} elseif (city.population <= 16) {
number = 2;
} elseif (city.population <= 24) {
number = 3;
} else { // if (city.population > 24) {
number = 4;
}
while (number > 0) {
CreateUnit(player.1, UnitType("UNIT_PLASMATICA_MILITIA"), city.location, 0, militiaunit);
SetOrder(1,4); // Fortify unit
AddOrder(militiaunit, city.location);
number = number - 1;
}
i = i + 1;
}
}
}
// end MILITIA triggers code

You will find the whole thing at the end of the script.slc file in the gamedata subfolder in the Medpack4 folder when you have installed/unpacked the scenario.

You might be able to use this for a mod of you own.

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:31
  Old Post 26-11-2003 13:58 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Lose 30 kilos (of popups)

Well, that code is rather specific for militia units, but it can with some effort be adapted for generic unit upgrading:

code:
TypeLocation upgradeloc; // only need to define this once // create one trigger for every upgrade (Warrior to Samurai, Hoplite to Pikeman, Cavalry to Tank, etc) trigger 'UpgradeWarriorToSamurai' when (player.1 && discovery.type == 6) { // activate at advance 6th advance from advance.txt (start counting at 0): jurisprudence i = 0; while (i < player.1.totalunits) { // loop through all units SetUnitByIndex(1, player.1, i); if (unit.type == UnitType("UNIT_WARRIOR")) { // if unit is obsolete upgradeloc = unit.location; KillUnit(unit); // kill obsolete unite CreateUnit(player.1, UnitType("UNIT_SAMURAI"), upgradeloc, 0); // and create a replacement } else { // if unit isn't obsolete i = i + 1; // go to the next unit } } }


Note that this code is untested, but in theory it should upgrade all Warriors to Samurai when Jurisprudence is invented. If you add similar triggers for all upgrades you'd like to see, it should work -- providing there are no unexpected bugs (I know in CtP2 there's a problem with advances obtained from goody huts, don't know how that works out in CtP1).

To add new triggers, simply copy the existing one and replace the 6 from "discovery.type == 6" with the appropriate number and UNIT_WARRIOR and UNIT_SAMURAI with the appropriate units. Oh, and make sure every trigger has a unique name ('UpgradeWarriorToSamurai' in this example: it can be anything, as long as it's unique).

Last edited by Locutus on 26-11-2003 at 14:06

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:31.
Apolyton Time is 00:31.
    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.0307 seconds (84.10% PHP - 15.90% MySQL) with 44 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