• Tutorials

  • Home
  • PreStartCombat

    By default, each party member is given a priority of 750 and each monster is given a priority of 250. The 'OnStartCombat' hook is called for each combatant in turn, starting with the combatant with the highest priority. The 'PreStartCombat' hook is run for each combatant before the 'OnStartCombat' hooks are run. If the 'PreStartCombat' hook returns a non-empty value then the combatant is assigned that value as its priority. The highest priority combatant will have its OnStartCombat hook run first.

    Parameters

    Parameter [5] = default priority for the combatant.

    Context

    Combatant

    Character

    Class