Combat Actions
Estimated reading time: 4 minutesOverview
The combat action system lets mod authors add custom combat actions to the combat UI: attacks, defence, special skills, and interactions. Each action can have its own display condition, effect, colour, and difficulty hint.
Register via maplebirch.combat.CombatAction.reg.
Constraints
actionType
actionType must be one of these presets:
actionType can be a single string or an array (e.g. ['leftaction','rightaction']); the same action is then shown in multiple slots.
combatType
combatType must be one of:
Registering Actions
Basic Syntax
Config Shape
CombatAction Helpers
Colours
Built-in
white,red,green,blue,yellow,orange,purple,pinkgray,silver,golddef(defence),meek,sub,brat
Dynamic Colour
Combat Buttons (Framework)
The framework registers generateCombatAction and combatButtonAdjustments macros:
- Supports list mode (
lists,limitedLists) and radio mode (radio,columnRadio) - Colour highlighting for custom actions
- Difficulty hint updates when selecting from dropdowns
