Commander_ Posted May 13, 2022 Posted May 13, 2022 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.
Monoman1 Posted May 13, 2022 Posted May 13, 2022 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.
Fotogen Posted May 13, 2022 Posted May 13, 2022 Alias filter would be like this: 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
Seijin8 Posted May 13, 2022 Posted May 13, 2022 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.
Commander_ Posted May 13, 2022 Author Posted May 13, 2022 1 hour ago, Fotogen said: Alias filter would be like this: 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!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.