Skyrim Codex

setrelationshiprank Console Command

Documentation and examples for the setrelationshiprank command in Skyrim.

setrelationshiprank

NPCs & Actors

Set how a selected NPC feels about the player.

ParameterDescription
Other ReferenceIDrequired
Rank (-4 to 4)NumberrequiredThe rank value.

Command builder

Fill in the parameters to build a ready-to-paste setrelationshiprank command.

Other Reference
Rank (-4 to 4)

Examples

Here is an example of how to use setrelationshiprank.

Sets the selected NPC to the highest, lover, relationship with the player.

Overview

Sets the relationship rank between the selected NPC and the player, on a scale from hostile at -4 up to lover at 4. Raising it can make an NPC friendly enough to follow, marry or stop attacking; lowering it turns them hostile. Select the NPC, then pass the player reference and the rank value. It is useful for fixing followers or marriage candidates who will not cooperate.

Frequently asked questions

How do you use the setrelationshiprank command in Skyrim?

Open the console with the tilde (~) key while in-game, type setrelationshiprank followed by its parameters, then press Enter. For example: setrelationshiprank player 4. The console is only available in the PC version of Skyrim.

What does the setrelationshiprank command do?

Set how a selected NPC feels about the player.

What are the parameters for the setrelationshiprank command?

The syntax is setrelationshiprank [other reference] [rank (-4 to 4)]. It takes 2 arguments: other reference, rank (-4 to 4).

Does the setrelationshiprank command require any DLC?

No. setrelationshiprank is part of the base game and works without any DLC.

Does using setrelationshiprank disable Steam achievements?

Opening the console and entering any command, including setrelationshiprank, disables Steam achievements for the rest of that play session on PC. Reload an earlier save or use an achievement-enabler mod if you still want achievements.