...Or yet another tool for play-dates. Features:
Showing individual unit pregnancy and lover status in both view-general and unitlist modes.
Viewing individual unitsPregnant, married dwarf:
|
|
Screenshot from 3rd embarkDead spouse:
|
|
These are quite common in many succession fortsOffsite spouse:
|
|
This happens often with visitorsBirds get little different pregnancy text:
|
|
Viewing unitlistAggregated view on the left
|
|
Breadbowl screenshotthat enables you to see suitable marriage pairs on clicking a Citizen's indicator:
(second click restores list)
|
|
Moonhome screenshot for third generation dwarf's suitable marriage candidatesor with popup lightbox-like box on a visitor:
|
|
Illustrative gloomdiamonds screenshotFinally, can hover with mouse over a pregnancy indicator for numerical value of how many full months the unit has been pregnant for.
|
|
There's also partial support for lethosor's
lua implementation of manipulator:
(shift-scrolling with numpad behaves weirdly, but clicks and (shift-)arrowkeys work.)
|
|
UsageTo use the script, you need to have saved
relations-indicator.lua to text file in /hack/scripts and ditto for
gui/indicator_screen.lua in /hack/scripts/gui.
Then either add to onMapLoad(_extra).init or dfhack.init
#relations-indicator
#Viewing in unitlist
keybinding add U@dwarfmode/Default relations-indicator
#Viewing individual unit
keybinding add V@dwarfmode/Default relations-indicator
keybinding add Z@unitlist/Citizens relations-indicator
keybinding add Z@unitlist/Livestock relations-indicator
keybinding add Z@unitlist/Others relations-indicator
keybinding add Z@layer_unit_relationship relations-indicator
or just pregnancy-indicator bind (shorthand for above).
(Can at any time disable them with pregnancy-indicator unbind.)
Use relations-indicator bindings to get the above list and exit.
Visual considerations:
I tried to follow preexisting precedents for colors, but there are none for
gay guys or
girls.
Are yellow and red respectively really the most suitable picks? I don't know.
Ditto for
offsite and
dead units. The blue shades go entirely unused,
but on the other hand default navy is kind of hard to see on black.
You can at any time see what corresponds what by entering relations-indicator explain colors.
Nest box symbol for pregnant birds makes sense, but a tileset user might find ¶ quite inappropriate when it is converted into a mug;
the default female and male symbols being converted into necklaces and bags may be no better.
Perhaps the textual fluff is too verbose or its tone not suitable; perhaps the information too or not enough accurate.
Perhaps the blinking is too fast or too slow.
If some of these are not pleasing, one can alter the color shades on line 31-38 and symbol usage on lines 68-76.
Gameplay considerations:
How bad must the personality be for a person to be unmarriable?
Presently, it assumes two people with shared parent or either-way grudge won't marry, as well as any one person whose friendship value +friendliness+emotional obsessiveness are combined below 0 (avg would be 100)
or whose esteem of romance or love propensity combine below 14 (average would be 50)
or whose family valuation is below -40 (average would be 0).
These are probably not precisely the right values or even considerations - why, social and shared skills are absent. I don't know what the right numbers would be, but any would-be experimenter can edit them on lines 83-85.
Second consideration is non-citizen intelligent creatures. Intelligent here meaning CAN_LEARN without SLOW_LEARNER.
Pets: In my embark tests, they seem unable to breed or get a relationship in years in 3x3 marriage suites when intelligent [with or without +speaking].
So, they get marked as infertile. That said, at least some have managed to breed some manner of intelligent pets somehow, so this might be a question on manner of tags.
Non-historical units:
As one needs to be historical figure to have a relationship, they also get marked as infertile.
For what it is worth, I've failed to get animalmen who have not joined the fortress to do the hanky-panky when they've become historical as well.
However, this is interesting data for visitor petitions.
Oh yeah, btw, it relies on few historical unit unk values for info like grudges and gelding, and will not work properly with syndrome that removes sterility, and effects with divorces are unknown.
13.12.2020 1.17: Fixed 47.04 historical gelding flag, added trust checking
21.10.2020 1.16: Fixed 47.04-r1 to 3 dfhack incompatibility, reestabilished grudge checking and added wider age range checking
03.08.2020 1.15: Fixed 47.04-r1 dfhack incompatibility; temporarily disabled grudge checking; added checking for CE_ADD tag for sterility syndromes.
2.08.2018 1.14: Added in checking .value for string-value pairs instead of direct reading as string for checking werebeast/vampire syndromes
31.07.2018 1.13: Fixed typo of using anon3 instead of anon_3
6.07.2018 1.12: Moved marriage check above relation check.
5.07.2018 1.11: Added keybinding for unit relation list layer.
5.07.2018 1.1: Fixed grudge check bug caused by anon3 being changed to attitude in dfhack repo; doubled speed of match checking.