HIT Element


HIT (a child element of SPELL) defines the chance (in percentage) that the skill or weapon can successfully hit a target.

Supported Values

HIT supports the use of either an integer or its child elements (non-weapon only) as values. If HIT is not used, the value is 100 (ie. always hit) by default.

Remarks

The actual chance of successful hit is determined by many other factors, such as the evading ability, armor equipped, and the types of defensive spells used on the target. Therefore a spell with HIT as 100 may not always hit while a spell with HIT as 0 may not always miss.

Examples

In this example, HIT uses a numeric value to specify that the spell has a 50% chance to successfully hit a target.

  • <SPELL>
    • <GROUP>Elemental Spells</GROUP>
    • <NAME>Fire</NAME>
    • <HIT>50</HIT>
    • ......
  • </SPELL>

In this example, HIT uses its child elements as values to specify that the spell has a 25%-75% chance (depending on the spell level) to successfully hit a target.

  • <SPELL>
    • <GROUP>Elemental Spells</GROUP>
    • <NAME>Fire</NAME>
    • <HIT>
      • <FROM>25</FROM>
      • <TO>75</TO>
    • </HIT>
    • ......
  • </SPELL>