Weapon Damage
From Wiki001
This system script is used to determine how much damage is made. Map001 comes with a default script, so it's functional, but it can be easily edited to inflict only certain damage, add critical damage or even determine which stats add to the damage. For instance, you can have Agility add to the defense or reduce damage.
This script must somehow end in a Return Value event, which will define how much damage is taken.
The following special tokens are available:
- "relate" character
- Quazi-character doing the damage, which should only use the character's statistics properties. If a turret or vehicle is doing the damage, the item being used will take the place of the character, and will appropriately route statistics.
- "this" character
- Quazi-character receiving the damage. If a door, turret, or vehicle is receiving the damage, everything attempting to use this character will be ignored or return 0.
- "relate" map
- Map where the action is taking place.
- "relate" vehicle or turret
- Potentially involved vehicle or turret.
Currently, the default script saves 2 local variables, damage of the attack("relate"), and the defense of the victim("this"). The script halves the damage, and divides the defense with 4. Then it minuses the damage with the defense, and you'll get the damage. If the damage is zero, no damage is done.

