| General | Hosted Sites | Civ5 | CivRev | Civ4Col | Civ4 | Civ3 | Civ2 | Civ1 | Misc | Marketplace |
![]() |
|
|
Welcome to Civilization Fanatics' Center. You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support. |
|
|||||||
![]() |
|
|
Thread Tools |
|
|
#1 |
|
King
Join Date: Mar 2008
Location: France
Posts: 832
|
Question about unit upgrades
Hello all,
is it possible to give a unit more than 1 upgrade option ? more important : how can I adjust the cost of an upgrade ? thanks |
|
|
|
|
|
#2 |
|
Ancient Druid
Join Date: Dec 2003
Location: Poland
Posts: 1,915
|
1. AFAIK it's not possible. You can add more upgrades in the XML, but it won't work.
2. BASE_UNIT_UPGRADE_COST and UNIT_UPGRADE_COST_PER_PRODUCTION (in GlobalDefines.xml) (Also UNIT_UPGRADE_COST_MULTIPLIER_PER_ERA*, UNIT_UPGRADE_COST_EXPONENT*, UNIT_UPGRADE_COST_VISIBLE_DIVISOR, UNIT_UPGRADE_COST_DISCOUNT_MAX) * I don't know if/how these 2 defines work. For adjusting upgrade cost of individual units, you can try using a promotion with UpgradeDiscount, but I haven't checked if it works. |
|
|
|
|
|
#3 |
|
King
Join Date: Mar 2008
Location: France
Posts: 832
|
Thanks PawelS
|
|
|
|
|
|
#4 | |
|
Mad Scientist
Join Date: Sep 2005
Location: Los Angeles, CA
Posts: 3,063
|
Quote:
However, this wouldn't help the AI, which'd still use the old linear upgrade methods unless you also added some sort of "sideways" upgrade mechanism (not difficult with Lua, except for ensuring that type-specific promotions of the other unit type aren't transferred over) and code up an AI logic on when to use it (much harder). In theory it could be done, but in practice it probably wouldn't be worth the headaches unless your mod was entirely designed around the idea of branching upgrade chains.
__________________
Once upon a time there was the Ages of Man mod set. Then Firaxis broke it. But thanks to the DLL efforts of the community, the mods shall rise again! |
|
|
|
|
|
|
#5 |
|
King
Join Date: Mar 2008
Location: France
Posts: 832
|
Thanks as well Spatzimaus.
I will drop the idea of multiple upgrades, as you say it's not worth the headache, especially if the AI has to learn how to use it! |
|
|
|
![]() |
| Bookmarks |
|
| Thread Tools | |
|
|