-
Notifications
You must be signed in to change notification settings - Fork 0
ApplyDamage.js
The process of applying all of the details of an attack to a character is a straightforward formula, but it involves being aware of many details. This API Command allows the GM to apply the damage of the most recent attack to every selected character.
This one API Command can handle dealing damage to Hordes, Characters, Vehicles, and Starships.
The GM will be whispered the exact damage done. Players will only get to see the percent health lost so that they are less likely to reverse engineer the exact defenses of NPCs.
!Dam[age] or !Attack (GM only)
This API seeks to modify the Horde Magnitude, Wounds, Structural Integrity, or Hull of each selected Horde, Character, Vehicle, and Starship. If the damage brings that value below zero, a link to the Critical Effect table will be delivered to the GM along with a suggested Critical Effect, unless it is a Horde.
Warning: The suggested Critical Effect is based off of my own system where the Critical Effect from Critical Damage is divided by the Wounds Bonus. This makes it so tougher creatures and vehicles do not suddenly die when they reach Critical Health, but are more likely to Fatigue out first. This does not affect Starships.
It currently accounts for the following:
- Character Toughness
- Character Unnatural Toughness
- Felling
- Armour based on the Hit Location
- Penetration
- Magnitude Damage for Hordes
- Character Unnatural Wounds
- Vehicle Unnatural Structural Integrity
- Starship Morale and Population Damage
- Starship resistance to Morale and Population Damage
Hordes are denoted by having the token's bar2 (the blue bar) start with H, such as h1. Tokens on the same map with the same bar2 value are treated as part of the same Horde. To damage the horde !damage one member of the Horde. If that one token would take a non-zero amount of damage, Horde Damage is applied by X'ing out that many tokens with identical Horde labels (bar2 values). Hordes do not need to be Characters, they can be Vehicles or Starships as well.
Non-Hordes: Instead of modifying the linked Character Sheet's Wounds, the Vehicle's Structural Integrity, or the Starship's Hull, the API Command edits the token's bar3 (the red bar). If it is linked to the previously mentioned Attribute, the Attribute will be modified when bar3 is modified. If the creature is just one of many, an unlinked bar3 will allow each creature to keep track of their Wounds separately.
Non-Hordes: After the attack has modified the target's health, the GM will be informed of the exact health lost. The System will also publicly announce the % of the target's max health that was lost (rounded to the nearest percent).
This API Command makes use of the eachCharacter() function.
This API Command makes use of the attributeValue() function.