Paternal Last Name

SCREENSHOTS
Downloaded 17,020 times 197 Thanks 60 Favourited 35,154 Views
 Say Thanks!
Paternal Last Name

This mod will change child's last name to match father's last name if parents are in a relationship with each other. Decided to wait before tying the knot? No problem! As long as parents enter a relationship before child reaches young adult age, child's last name is changed.

There is a settings file named 'reve_paternal_last_name_settings.cfg' included in the mod. Place it in the same location as the script file. There are four different settings:
  • married
  • engaged
  • significant_others_bf_gf
  • no_relationship
Valid setting options are true and false (in lowercase). Every setting defaults to false as that is the default game option. For the mod to have any effect, at least one setting needs to have the true value. Everything can be set to true at the same time if needed. Mix and match.

Each setting only checks if sim's parent have the related relationship bit and nothing else. For example, if engaged setting is enabled, it won't affect married sims' children.

Updates are processed after every loading screen and sim birth or you can type the command 'reve.last_name_update' to do so manually. To update specific sim's last name type 'reve.last_name_update [first_name] [last_name]'. To view sim's parents type 'reve.print_parents [first_name] [last_name]'. In case parents are crossed (father is mother or mother is father), type 'reve.switch_parents [first_name] [last_name]'. Specifying first and last name is optional, otherwise code will be run for active sim. To view mod settings in-game, type 'reve.paternal_last_name_settings'.

For now there is no way to change settings from within the game. Instead settings are changed by opening the settings file in a text editor (such as Notepad) and changing values between true and false. If the settings file gets messed up or the mod doesn't work for other reasons, first thing to do is to delete the settings file. It will be generated again with default settings when related code is run or by running 'reve.paternal_last_name_settings' command.


Please do let me know if you have any issues.



Change log
February 2026: Fixed issue with mod not working. Reworked mod. Combined three previous versions to one version by adding a settings file.

August 2024: Refreshed code and credits. Added notifications to tell when a sim's last name has been changed. Updated commands, deleted one and added two. Added injection to pregnancy tracker. Changed mod name.

August 2023: Refreshed code and credits. Added new commands and functionality. Added different relationship versions. Changed file name so make sure to delete the old version!


Credits
PyCharm
TURBODRIVER for injector https://turbodriver-sims.medium.com...-4-cdc85a741b10
Scumbumbo for notifications https://modthesims.info/showthread.php?t=544445
lot51's Sims 4 Tuning Builder for image search
LeRoiDeTout for code rewrite. Code has since been modified again but pieces and ideas from it remain.
Advertisement:
Other Download Recommendations:
More downloads by Reve: See more