• Tutorials

  • Home
  • CombatSpecialAction

    When the 'Special Action' menu item (See: SACombatMainMenu) is chosen by the player Then we call any special ability scripts attached to the active combatant (the attacker) named 'CombatSpecialAction' with target index and attacker index set to -2, once for each combatant in the combat, and once with attacker and target index set to -1. In other words, once before the calls for each combatant and once after the calls for each combatant.

    Each of these calls can perform actions on the attacker and target and can also display a message on the menu line by setting hook parameter[5] to a non-empty string.

    Parameters

    Parameter[5] = Can be set to a message to be displayed on the menu line.

    Context

    Combatant (Attacker)
    Combatant (Target)