Jump to content

Marriage through console commands or scripts


Recommended Posts

Posted

Hello everyone, I need help with my modding endeavor.

 

I'm trying to bypass the Bonds of Matrimony quest's dialogues and wedding ceremony and make an NPC married to the player.

It's mostly to solve compatibility issues with mods like Spouses Enhanced, which won't detect some custom NPCs (like for example M'Rissi or Recorder).

My idea of a simple fix is to provide a set of console commands the player can use to fix the issue and mark the NPC as married (possibly batch them, wherever possible, to reduce the amount of commands player has to type in by hand).

 

The way mods determine if player is married and to whom is to check whose RefID got assigned to LoveInterest alias of quests RelationshipMarriage and RelationshipMarriageFIN (they both have the LoveInterest alias). If the alias is empty - not married. If not empty, married to whoever the RefID points to.


Now, I tried this:

SetStage RelationshipMarriage 0
SetStage RelationshipMarriage 5
SetStage RelationshipMarriage 10
SetStage RelationshipMarriage 15
SetStage RelationshipMarriage 20
SetStage RelationshipMarriage 30
SetStage RelationshipMarriage 100
SetStage RelationshipMarriageFIN 0
SetStage RelationshipMarriageFIN 5
SetStage RelationshipMarriageFIN 10
SetStage RelationshipMarriageFIN 20
SetStage RelationshipMarriageFIN 25
prid <NPC's RefID here>
SSQ RelationshipMarriage
ForceRefIntoAlias LoveInterest
SSQ ; quit the quest owning context
AddFac 7431A 4
SetRelationshipRank Player 4
Player.AddFac C6472 4

SSQ RelationshipMarriageFIN
ForceRefIntoAlias LoveInterest ; this one fails, since it should be filled by script
SSQ ; quit the quest owning context

 

I think I'm missing a few steps that don't seem obviously mandatory. Like for example:

AddFac 19809 1 (the Potential Marriage Faction) at the beginning of all of this

Player.SetRelationshipRank xx1AEF15 at some point

ResetQuest RelationshipMarriage before going through its stages
ResetQuest RelationshipMarriageFIN too maybe?

 

Any help appreciated.

Basically I want to go through the entire marriage process, but purely with console commands, without the player running all over the world and talking to NPCs who may or may not have the necessary dialogue.

There are too many possible combinations to try out, so I'd appreciate some info from someone who actually knows how the marriage works.

  • 1 year later...

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...