DFHack - Dwarf Fortress Modding Engine

DFHack - Dwarf Fortress Modding Engine

Changing individual relationships
Is there a way to make two dwarves close friends, kindred spirits, or lovers? I used to know of a third party module that would change relationships between single, lover or spouse that only worked for units of the same race, but it was for a previous version of DF and I can't find it or even remember what it was called now. Is there a way to do it with gm-editor? gm-unit only seems to have options for orientation.
I also know about family affairs, but the only option there is marriage, and it removes previous lover information on activation (and it also seems to be broken for the beta version).
Last edited by Scrotus Gropulonum; Aug 25, 2024 @ 3:58am
< >
Showing 1-6 of 6 comments
myk002  [developer] Aug 25, 2024 @ 10:51am 
I'm working on an updated version of family affairs right now. I hadn't considered including non-love relationships, but I think I can add that in
myk002  [developer] Aug 25, 2024 @ 11:27am 
Ok, after looking into it, "friendship" relationships are very complex, and probably won't make the first cut of the tool, which will only handle spouse and lover relationships (which are, perhaps paradoxically, much simpler)
myk002  [developer] Aug 25, 2024 @ 12:32pm 
Ok, gui/family-affairs has been updated with spouse/lover editing. Could you possibly try it out and report back if it works well for you?

It's available on the DFHack testing branch for the 50.13 version of DF (the current default version of DF) and on the testing-adv-beta branch for the 51.01 version of DF (the adventure beta).
Sorry to hear that about the friend relationships. I'll check it out later today and let you know if it works (assuming I can figure it out, I'll do my best). Thanks for your efforts!
Using Dwarf Fortress "beta - Public beta branch", and DFHack "testing-adv-beta", I have noticed no bugs, with the command in question working near perfectly.

With gui/family-affairs I can set multiple lovers for a target unit, though setting a spouse "spurns" all previous lovers and sets them back to whatever relationship they had previously. It seems I can re add units as lovers with seemingly no good or bad thoughts generated throughout any combination of spurn/lover/marriage switching. Inter race lover/marriage/pregnancy isn't available, but I expect that it's either not possible due to game hardcoding, or would be extremely difficult to wrangle DFHack into manipulating. I'll put my dream of a diverse animalgirl anime harem on hold for the foreseeable future. Thanks again for your work, family-affairs is in a good place with this update and it's helpful for what I was initially trying for.

One thing I haven't tested yet is adventurers with companions in fortress mode. The relationship between those units always seemed to be stuck to "Companion" with no change, but I will try to check it out later.
myk002  [developer] Aug 25, 2024 @ 7:29pm 
Thank you for testing it! I'm glad it's working, and yes, I was not entirely sure what the best behavior was for assigning a spouse when lovers are involved. It would be possible to keep them -- it's not like units with spouses can't have lovers. I could make this more configurable/flexible if it's called for.

I wrote the tool to be mode-agnostic, but I haven't tested it in adventure mode yet. Confirmation that it works well there would definitely be appreciated.
< >
Showing 1-6 of 6 comments
Per page: 1530 50