DAMAGE (a child element of SPELL) defines the damage caused by a skill or weapon when successfully hit.
DAMAGE supports the use of either an integer or its child elements (non-weapon only) as values. A negative value means the skill is of healing type.
The actual damage caused by a skill or weapon is determined by many other factors, such as the attacker's level and the defense rating of the target.
If you choose to use DAMAGE in the current skill, you cannot use the following child elements.
In this example, DAMAGE uses a numeric value to define the damage caused by a spell.
- <SPELL>
- <GROUP>Elemental Spells</GROUP>
- <NAME>Fire</NAME>
- <DAMAGE>50</DAMAGE>
- ......
- </SPELL>
In this example, DAMAGE uses its child elements as values to specify that the spell causes 25 to 75 points of damage (depending on the spell level).
- <SPELL>
- <GROUP>Elemental Spells</GROUP>
- <NAME>Fire</NAME>
- <DAMAGE>
- <FROM>25</FROM>
- <TO>75</TO>
- </DAMAGE>
- ......
- </SPELL>