• Tutorials

  • Home
  • GetItemTargetHitBonus

    Scripts can return absolute or relative values. We record an absolute value and a relative value for the hit bonus. We proceed as follows:

    Example: You might define a special ability named 'IsSleeping'. The GetItemTargetHitBonus script for 'IsSleeping' will probably return a large number such as “10000” to ensure the target's death.

    Example: A drunken Priest might have a Special Ability named 'Tipsy'. The GetItemTargetHitBonus script might return a value of “+12” to cause the hitpoint damage to be 12 greater than normal.

    Parameters

    None

    Context

    Character (the attacker)
    Character (the target)
    Item