Purpose of Damage Attribute in gam files?

Post new mods and scenarios here
Post Reply
User avatar
76mm
Posts: 4768
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

Purpose of Damage Attribute in gam files?

Post by 76mm »

Things are progressing quite well with adding the ability to add new units via TOAWxml. But I do have one question, and before spending lots of time testing for an answer, I thought I would check here first:

What is the purpose of the "DAMAGE" attribute for equipment in the game files? eg:

<EQUIPMENT ID="5" NAME="Heavy MG" NUMBER="99" MAX="162" DAMAGE="0"/>

Initially I thought it would be the difference between the current quantity ("NUMBER") and max quantity ("MAX"), but as you can see in the line above, that does not seem to be the case.

The only things I can think of now is that it is used for intra-turn calculations/purposes and then zeroed out at the end of each turn, or that it might be used for certain units, such as naval units, etc.?

Can anyone point me in the right direction? I need to know this so that errors caused by changes (or lack thereof) to this attribute won't crash scenarios edited in TOAWxml...
User avatar
Curtis Lemay
Posts: 15345
Joined: Fri Sep 17, 2004 3:12 pm
Location: Houston, TX

RE: Purpose of Damage Attribute in gam files?

Post by Curtis Lemay »

ORIGINAL: 76mm

Things are progressing quite well with adding the ability to add new units via TOAWxml. But I do have one question, and before spending lots of time testing for an answer, I thought I would check here first:

What is the purpose of the "DAMAGE" attribute for equipment in the game files? eg:

<EQUIPMENT ID="5" NAME="Heavy MG" NUMBER="99" MAX="162" DAMAGE="0"/>

Initially I thought it would be the difference between the current quantity ("NUMBER") and max quantity ("MAX"), but as you can see in the line above, that does not seem to be the case.

The only things I can think of now is that it is used for intra-turn calculations/purposes and then zeroed out at the end of each turn, or that it might be used for certain units, such as naval units, etc.?

Can anyone point me in the right direction? I need to know this so that errors caused by changes (or lack thereof) to this attribute won't crash scenarios edited in TOAWxml...
Naval Damage. See 19.8 in the manual.
My TOAW web site:

Bob Cross's TOAW Site
User avatar
76mm
Posts: 4768
Joined: Sun May 02, 2004 4:26 am
Location: Washington, DC

RE: Purpose of Damage Attribute in gam files?

Post by 76mm »

Perfect, thanks much, will check that out, saved me a ton of time.
Post Reply

Return to “Mods and Scenarios”