export_descr_unit.txt stat_pri question
Hi. I'm writing a export_descr_unit.txt parser for my installer so that it can be modified in place instead of copied (no more incompatability with other mods!).
However, this means that I have to know exactly what every single thing does in here.
so I'm looking stat_pri. In the header of the file it explains:
Code:
; attack factorf
; attack bonus factor if charging
; missile type fired (no if not a missile weapon type)
; range of missile
; amount of missile ammunition per man
; Weapon type = melee, thrown, missile, or siege_missile
; Tech type = simple, other, blade, archery or siege
; Damage type = piercing, blunt, slashing or fire. (I don't think this is used anymore)
; Sound type when weapon hits = none, knife, mace, axe, sword, or spear
; Min delay between attacks (in 1/10th of a second)
However this doesn't quite match up with the entries in the file. For instance:
Code:
dictionary eastern_cavalry_mada_asabara ; Mada Asabara
...
stat_pri 8, 27, no, 0, 0, melee, simple, piercing, spear, 160 ,0.15
Count 'em, there's an extra stat in there! Is 160 or 0.15 the min delay? What does the extra mystery stat do?
Re: export_descr_unit.txt stat_pri question
Re: export_descr_unit.txt stat_pri question
That final value is the lethality value, think it determines how easily a weapon kills in the game.
Re: export_descr_unit.txt stat_pri question
the lethality value is the percent chance that a hit will make a kill
Re: export_descr_unit.txt stat_pri question
Thanks! That helps a lot. Hopefully I'll be able to crank this out soon...