Log in

View Full Version : export_descr_unit.txt stat_pri question



Ferromancer
01-23-2009, 05:59
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:



; 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:


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?

Tellos Athenaios
01-23-2009, 06:27
Nah...
http://gnuwin32.sourceforge.net/packages/patch.htm

Just a simple commandline away after installation...

To create diff files for use with patch:
http://gnuwin32.sourceforge.net/packages/diffutils.htm

bobbin
01-23-2009, 06:55
That final value is the lethality value, think it determines how easily a weapon kills in the game.

mcantu
01-23-2009, 23:05
the lethality value is the percent chance that a hit will make a kill

Ferromancer
01-24-2009, 06:27
Thanks! That helps a lot. Hopefully I'll be able to crank this out soon...