Change Reputation Through Gameplay
Make a town guard welcome a player who finishes a quest. The guard represents Town Watch. The player represents Players and has a secondary Town Watch membership starting at zero. Assign and Change Memberships shows how to grant that membership.
Give the Watch two standings
Create a Data Table with the row type Faction Reputation Table Row (
FFactionReputationTableRow). Add the two rows below. Set each row's display name to the name you want players to see.In Project Settings → Ninja Factions, assign the table to Reputation Table and set Faction Solver Class to Target Reputation. Start a new play session with these settings.
Row name | Min Reputation | Max Reputation | Attitude |
|---|---|---|---|
Stranger | 0 | 9 | Neutral |
Trusted | 10 | 99 | Friendly |
Award the quest reward
On quest completion, get the player's Faction Component and call Add Reputation (
AddReputation). Choose Town Watch, pass12as the amount, the quest giver as Source, andFactions.Event.QuestCompletedas Event Tag. In multiplayer, award it on the server.Use Get Faction Membership with Town Watch to read the new score. Call Get Attitude with the guard as Source and the player as Target to see how the reward changed their relationship.

Let the Quest Choose the Reward
If one decision helps the Watch and upsets another guild, implement Faction Source Interface (IFactionSourceInterface) on the quest giver. In Get Reputation Rewards (GetReputationRewards), return a map of faction assets to signed amounts for that member and event. A negative amount spends or loses reputation. The player needs a membership in each affected faction.
Call Add Reputation From Source (AddReputationFromSource) on the player's component with the quest giver and event tag. The component asks the giver for its rewards. Override Can Provide Faction Values (CanProvideFactionValues) on the source to accept only rewards it can grant, or Is Valid Faction Update (IsValidFactionUpdate) on a component subclass for rules that apply to that member.

Update a Faction Menu
Populate the menu from the component's Get Faction Memberships. A Faction List Widget can also give the owning player a list of membership views with the faction, score, and tier. Bind to On Reputation Changed (OnReputationChanged) to refresh a score and On Tier Changed (OnTierChanged) to announce a new standing. Use the membership passed to the event to update the correct row.
Try It in Play
Before the reward, expect 0 / Stranger / Neutral. After the quest, expect 12 / Trusted / Friendly. Pass -3 to Add Reputation for a penalty. The new score is 9, so the guard should see the player as Neutral again.
To inspect it in the Gameplay Debugger, aim at the member, open the overlay, and enable Factions. It shows membership count and the main faction's tag, team, reputation, and tier. To watch the Watch score here, make Town Watch the test character's main faction for this run. If the player keeps Players as their main faction, inspect their secondary Town Watch membership with Get Faction Membership and print the guard's Get Attitude result separately.

In Project Settings → Gameplay Debugger, choose an activation key and category keys that are available on your keyboard.
