PDA

View Full Version : Unit Upgrade levels



GubZol
08-21-2007, 19:46
Hello.
I drew up a new system to the armor upgrade levels, but this does not work.
Te original txt file looks in this manner:
type Spear Militia
dictionary Spear_Militia ; Spear Militia
category infantry
class spearmen
voice_type Light
banner faction main_spear
banner holy crusade
soldier Spear_Militia, 60, 0, 1
attributes sea_faring, hide_forest, can_withdraw, free_upkeep_unit
formation 1.2, 1.2, 2.4, 2.4, 5, square, shield_wall
stat_health 1, 0
stat_pri 5, 2, no, 0, 0, melee, melee_blade, piercing, spear, 25, 0.6
;stat_pri_ex 0, 0, 0
stat_pri_attr spear, spear_bonus_8
stat_sec 0, 0, no, 0, 0, no, melee_simple, blunt, none, 25, 1
;stat_sec_ex 0, 0, 0
stat_sec_attr no
stat_pri_armour 0, 1, 6, flesh
;stat_armour_ex 0, 4, 5, 7, 1, 6, 6, flesh
stat_sec_armour 0, 0, flesh
stat_heat 2
stat_ground 1, -2, 3, 2
stat_mental 3, normal, trained
stat_charge_dist 20
stat_fire_delay 0
stat_food 60, 300
stat_cost 1, 310, 125, 75, 60, 310, 4, 70
armour_ug_levels 0, 1, 2, 3
armour_ug_models Spear_Militia, Spear_Militia_ug1, Spear_Militia_ug2, Spear_Militia_ug3
ownership england, scotland, france, hre, denmark, spain, portugal, slave, normans
era 0 scotland, spain, portugal
era 1 scotland, spain, portugal
;unit_info 5, 0, 7

From this this important:

stat_pri_armour 0, 1, 6, flesh
;stat_armour_ex 0, 4, 5, 7, 1, 6, 6, flesh
Im stat_armour_ex: 0 is the base value 4, 5, 7 would be teh upgrade values... But something may block them, because the game does not take it into consideration. The game raises it with only a dot instead of the set values.
Let him be like that if somebody knows a solution to him let a darling share it with me!

----GubZol----

alpaca
08-22-2007, 22:03
The _ex things don't work.

Mr Frost
09-10-2007, 11:41
Basically , if there is a semi-colon {one of these ;;;;;} before an entry in the .txt files in T.W. games , then the line after it has no effect on the code {thus the game} at all .
That , and what Alpaca said .