# Ninja Combat

> For the complete documentation index, see [llms.txt](llms.txt).

![Ninja Combat](Documentation/cbt_feature.png)

Give a player or an AI character a move, decide when it makes contact, and show what happened to the target. A sword swing, a traveling spell, and a targeted cast can all use the same health, defense, and reaction settings.

## Where to Start

[Set up Ninja Combat](cbt-setup.html), then [create a combatant](cbt-first-steps.html). Use two instances in a test level so you can see both sides of an attack.

| What you want the player to do | Start here |
| --- | --- |
| Swing a weapon, then chain a follow-up | [Land a melee hit](cbt-guide-melee-attacks.html) and [build a branching combo](cbt-guide-combos.html) |
| Send a spell through the air | [Launch a projectile](cbt-guide-ranged-attacks.html) |
| Hit everyone nearby or leave a hazard behind | [Cast a shockwave](cbt-guide-cast-preset.html) or [create a frost field](cbt-guide-cast-actor.html) |
| Choose where a spell lands | [Aim and confirm a spell](cbt-guide-cast-flows.html) |
| Aim, lock on, or use a firearm | [Align an attack](cbt-guide-target-lock.html) and [configure firing and reloading](cbt-guide-firearms.html) |
| Survive a hit or punish a missed attack | [Block, evade, and parry](cbt-guide-block.html), [recover from knockdown](cbt-guide-knockdown.html), or [play a paired finisher](cbt-guide-opportunity-attacks.html) |
| Show the result to the player | [Set up damage and reactions](cbt-guide-damage-pipeline.html) and [display combatant vitals](cbt-guide-widgets.html) |
| Give an opponent the same moves | [Drive combat from AI](cbt-guide-ai.html) |

## Integrations

See [Combat and Input](integration-combat-input.html) for input handlers, [Combat and Inventory](integration-combat-inventory.html) for equipped weapons, [Combat and Factions](integration-combat-factions.html) for team rules, and [Bot and Combat](integration-bot-combat.html) for perception-driven targeting. To set up starting health with an ability bundle, follow [Initialize Plugin Attributes](gas-guide-attributes.html#give-a-combatant-starting-health).

