Skip to content

Required Code: custom_hooks.rb

aerrin99 edited this page May 26, 2022 · 2 revisions

See FS3Combat custom hooks for more information on custom actions and new turn triggers in FS3. These changes need to be inserted into plugins\fs3combat\custom_hooks.rb

Combat Actions

To add combat/potion and combat/spell, you'll need to set your custom actions:

def self.custom_actions
    {
      'spell' => SpellAction,
      'potion' => PotionAction
    }
end

New Turn Triggers

You'll also need to add a custom newturn hook:

    def self.custom_new_turn_reset(combatant)
      Magic.spell_newturn(combatant) 
    end
Clone this wiki locally