View Full Version : stat_armour_ex?
Snipafist
01-22-2007, 19:11
it would appear that this element of the export_desc_unit file is currently disabled with a semicolon in front of the line for each unit entry. Trying to reenable it (by removing the semicolon) results in the game refusing to load properly. This is a shame, because it limits armor upgrades to piddly 1 point increments, where the biggest advantages (if the file worked properly) are to basic units (pikemen, spearmen, etc.) by upping their armor value from 0 to something as high as 6 or 7. Does anyone know how to fix this?
Snipafist
01-22-2007, 19:54
Nope its hardcoded.
That's a shame. Why did they do that? Are they planning on fixing it?
My guess is that was a feature they couldn't get to work/was to buggy so they removed it but left those lines in the file. I've got on idea if they are going to fix it.
Actually it is possible to add more than +1 in one upgrade, but maximum is +3 at all. So you can have unit with 0 armor upgraded to 3 leather, but you will be not able to upgrade it more.
Snipafist
01-22-2007, 22:37
Actually it is possible to add more than +1 in one upgrade, but maximum is +3 at all. So you can have unit with 0 armor upgraded to 3 leather, but you will be not able to upgrade it more.
Pray tell how does one do that? It seems as though it's stuck at only +1 per level.
way how to add to unit more than +1 armor point through upgrade is to mod armour_ug_levels stats.
Exaample: Peasant Crosbowmen have armour_ug_levels 0, 1, 2. So they will recieve +1 with leather upgrade and +1 with light chain upgrade. If you change that to: armour_ug_levels 0, 1, 1, 2 they will recieve +2 with leather upgrade and +1 with light chain upgrade.
armour_ug_levels 0, 1, 1, 1 means that with leather upgrade you will recieve +3.
Catch is,that every unit can recieve only +3 upgrade, so it is not possible to rise armor to higher levels than +3.
PS: ofcourse you cant forget to add correct upgrade skin to armour_ug_models, so for +2leather and +1 chain it will look:
armour_ug_levels 0, 1, 1, 2
armour_ug_models Peasant_Crossbowmen, Peasant_Crossbowmen_ug1, Peasant_Crossbowmen_ug1, Peasant_Crossbowmen_ug2
OH I GET IT! That just confused the heck out of me for 5 minutes, then I finally figured out how it apparently functions. I'll explain further for those of you who may be equally confused.
What he's saying is that the armour_ug_levels line can contain up to 3 level entries, each of which corresponds to a +1 armor bonus. You can have all 3 of those +1s count for the same smith upgrade level, all count for different smith levels, or any combination, but you can only have up to 3 entries for +1s. So the numbers that you put in the armour_ug_levels line have nothing to do with the actual bonuses you're trying to give the unit, but are actually the numbers of the smith level that should give a bonus. Then you just repeat the same smith level multiple times to make extra +1s pile up for that smith level, if you so choose, of course remembering that you can't use more than 3 no matter what you do.
Hope that helps.
the_foz_4: Sorry that i confused you. You explained it perfectly.
vBulletin® v3.7.1, Copyright ©2000-2025, Jelsoft Enterprises Ltd.