# Set Up Ninja Factions

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

## Prerequisites

Start with an Unreal project and a level where you can play as one character and place an enemy. Ninja Factions supplies the components and controllers needed for the first walkthrough.

## Setup Checklist

| Step | When you need it | Where to go |
| --- | --- | --- |
| Enable Ninja Factions. | Every project | [Install plugins](installing-plugins.html) |
| Add the `NinjaFactions` module to your project dependencies. | C++ classes that use the plugin | [Work with plugin source](installing-plugins.html) |
| Register the folder that contains your faction assets. | Projects using the built-in asset database | [Asset Manager](asset-manager.html) |
| Choose how one actor judges another. | Keep the default for fixed teams, or select reputation for changing relationships. | [Reputation and Attitude](fct-reputation-tiers.html) |

Procedure: Register your faction folder

1. In the Content Browser, create a folder for faction assets, for example Content/Data/Factions.

2. Open Edit → Project Settings → Asset Manager → Primary Asset Types to Scan. Add or update the entry for `FactionSetup`. Set Asset Base Class to `NinjaFactionDataAsset`.

3. Add your folder under Directories, for example `/Game/Data/Factions`. Leave Has Blueprint Classes and Is Editor Only off. Use Always Cook to include these factions in packaged builds. Save the settings and restart the editor.

![FactionSetup entry in Unreal's Asset Manager](Documentation/fct_setup_asset_manager.png)

The shared [Asset Manager guide](asset-manager.html) includes the matching configuration entry.

## Choose the Relationship Rules

Open Project Settings → Ninja Factions. For a first game with fixed teams, keep Faction Database Class on Faction Database: Data Assets and Faction Solver Class on Faction Attitude Solver: Simple Attitude Check. The plugin uses Default Team (initially No Team) and Default Attitude (initially Neutral) as fallbacks when it cannot resolve a team or attitude.

For a game where quests change how a faction sees the player, choose Target Reputation and assign a Reputation Table. You can make that change after the first team test. See [Reputation and Attitude](fct-reputation-tiers.html).

## First Steps

[Give two actors opposing factions](fct-first-steps.html) to check your setup in play.

