PDA

View Full Version : Unitcosts formulas, anyone got them



Magyar Khan
01-17-2003, 13:54
we noticed a bug in teh campaigntool

anyone knows the upgradecosts and valourupgradescosts?

a search on teh forum didnt helped me within 15 min http://www.totalwar.org/forum/non-cgi/emoticons/frown.gif

--------
some inside code

unitcosts = Round(Player(p%).unit(Unitnr%).BasicCost * 1.7 ^ Honour%, 0)

armourcosts = Round(Player(p%).unit(Unitnr%).BasicCost * 1.38 ^ (Player(p%).unit(Unitnr%).Armour) - Player(p%).unit(Unitnr%).BasicCost, 0)

weaponcosts = Round(Player(p%).unit(Unitnr%).BasicCost * 1.33 ^ (Player(p%).unit(Unitnr%).Weapon) - Player(p%).unit(Unitnr%).BasicCost, 0)

CBR
01-17-2003, 14:26
Well its the correct upgrade costs...

CBR