Jump to content

Which the Condition Function in Creation Kit to check if the NPC I'm talking to is married?


Commander_

Recommended Posts

Posted

I'm editing the dialogues of mod that I've installed to better suit my role play style using Creation Kit.

 

In the Player Dialogue tab you can set various conditions, for example, whether the NPC is male or female. I'm looking for the Condition Function to check if the NPC is married but I cannot find it.

 

Is such a check possible? If yes, what's the Condition Function?

 

Thanks!

Clarification: I'm not looking to check if the NPC is marriageable, I'm looking to see if she's married with another NPC.

Posted

I don't think there's any good way tbh. There is:

 

GetHighestRelationshipRank() == 4

 

HasFamilyRelationship()

 

But:

A) I've never used either of these. 

B) these are papyrus functions

C) I don't know how reliable they are. 

 

Since the number of married actors in skyrim is limited your best option might simply be to place all married actors in a list and use IsInList == 0

 

Or you could just assume that any Npc not in the PotentialMarriage Faction is in fact married. 

Posted

Alias filter would be like this:

image.png.ae2a1d631669f5e8e01be14d7ff56a36.png

 

So: "HasAssociationType-something"

 

Papyrus script. Actro.psc:

; Checks to see if this actor has the specified association with the other actor - or anyone (if no actor is passed)
bool Function HasAssociation(AssociationType akAssociation, Actor akOther = None) native

 

Posted
4 hours ago, ThothAmonsScalyDick said:

Is such a check possible? If yes, what's the Condition Function?

Fotogen's answer above is the correct one for a condition check against the married association type, and the only way Skyrim tracks this for NPCs.  Sadly, there is no mechanism to find out who they are married to.

 

Keep in mind that some of the familial association types are clearly not meant to be the case, so how reliable these are for lore reasons is questionable.  In particular, if we are using association types instead of spoken/recorded dialogue, the Battle-Born family tree appears to be a knot.

Posted
1 hour ago, Fotogen said:

Alias filter would be like this:

image.png.ae2a1d631669f5e8e01be14d7ff56a36.png

 

So: "HasAssociationType-something"

 

Papyrus script. Actro.psc:

; Checks to see if this actor has the specified association with the other actor - or anyone (if no actor is passed)
bool Function HasAssociation(AssociationType akAssociation, Actor akOther = None) native

 

 

Amazing, I would never have found it! Thank you @Fotogen and everyone else!
 

Archived

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

  • Recently Browsing   0 members

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