Damage - kyleady/Roll20-Rogue-Trader-API GitHub Wiki
This section contains all of the [INQ System](https://github.com/kyleady/Roll20-Rogue-Trader-API/wiki/INQ System) Scripts that use the damage variables. The damage variables contain the following details about the most recent attack:
- DamType: Damage Type
- Dam: Damage
- Pen: Penetration
- Fell: Felling
- Prim: Primitive
- Hits: Total Hits
- OnesLoc: The ones place of the Roll To Hit, used for determining the Hit Location.
- TensLoc: The tens place of the Roll To Hit, used for determining the Hit Location.
The following is a list of scripts and folders of scripts that use the Damage Variables:
- ApplyDamage - API Command to use a previously made attack against a group of Hordes, Vehicles, Starships, and/or Characters.
- TheAttack - API Command for a group of characters to use a specific weapon to make an attack, keeping track of their ammunition.
- Cover.js - API Command for reducing the most recent attack's damage and penetration by cover.
- DamageCatcher.js - Watches for attacks, recording all of the Damage Variables.
- DamageHandler.js - API Commands for directly viewing and editing the damage variables.
- ManualHitsConversion.js - API Commands for old programming where Hits had to be converted.
- HordeKill.js - API Command for representing Horde damage by killing a large number of individual tokens.
- StarshipDamageCatcher.js - Watches for starship attacks, recording all of the Damage Variables.