Skip to main content

Damage Modification <modify-damage>

This module is used to modify the amount of damage caused by an action based on a check.

Modifier <mod>​

This represents a check in relation to a damage type with a modifer and number action.

A specific damage type or all can be used to match all damage events.


<modify-damage>
<mod mod="300" action="set">fall</mod>
<!-- Fall damage is always deadly -->
</modify-damage>

Element Text​

DescriptionType
The damage type to modify.DamageCause
Possible Values
Modifier Attributes​
AttributeDescriptionType
modThe amount of damage that should be used with the number action.Number (With Decimal)
actionThe action which is applied to damage caused by the event.Number Action
none - Perform no action and keep damage caused by the event the same., set - Set damage caused by the event to the supplied number., add - Add the supplied number to damage caused by the event., subtract - Subtract the supplied number from damage caused by the event., multiply - Multiply the supplied number with damage caused by the event., divide - Divide damage caused by the event by the supplied number., power - Raise damage caused by the event by the supplied number.
checkCheck that should be ran before the damage is modified. This can either be in ID form, or as a nested XML tag in the syntax of a check.Check