May 24, 2025

Modding Diary - Scripting Fun

hi guys! hope you all are well! 馃グ

I dont have much to show this week as I spent most of the week wrestling with python scripts. Following what I mentioned last week, I made it so that sims are now getting the sad moodlet after witnessing the ultrasound

I also made it so that the picture on the ultrasound machine would freeze when the doctor stops scanning your sim. This took me all day cuz I forgot how i did it last time since its been so long lol 馃樁

then I spent the rest of the week wrestling with python scripts and questioning my life choices.

basically what I needed to do is to find a way to remove the baby from the family after birth since they are supposed to be stillbirth

At first i was able to remove the baby however their portrait was still visible on the bottom left until you travel home, which looked kinda weird visually

it took me two days to come up with another script that removed the baby and their portrait then I realized it was also removing the baby from the family tree 馃槶

Everything finally clicked for me about an hour ago and I re-wrote the script for the third time using a different method that finnnnally removed the baby and kept their portrait in the family tree : D

then of course once that worked i realized the bassinet was still clickable even though it was empty 馃槀the struggle never ends. But that's a problem for future me.

Im just glad i finally got the script working, and I am really proud of myself for how far I've come. I remember trying to learn python for the first time two(?) years ago and how it looked like a complete foreign language to me and thinking im never gonna be able to understand it. now im able to write sripts to do things that would be impossible otherwise > : D

I hope you all have a good night of sleep and a fantastic weekend!

Comments (11)

I
Isabella 路 May 28, 2025

i have a possible suggestion! i鈥檇 love to have it animated and have matching moodlets for the glucose test

K
Kelsye 路 May 27, 2025

I mean some families still see their lost unborn kids as their children so it might make sense to keep them in the family tree

c
cuponchip 路 May 28, 2025

They are keeping them in the family tree, just had an issue with both being able to keep the baby in the family tree but not include it in the household dock

Y
Yasmin Heskey 路 May 24, 2025

Another suggestion in the future is could a sim who was born at home or a hospital have a reward trait for it. Also a reward trait for the mother also to say she has given birth at hospital or home. I know they have a memory for it but it does not always come up or they disappear I think it would cool if they had a trait for it to. Thankyou for all your effort in this mod. This mod really is the reason I play the game.

H
Honzus 路 May 24, 2025

This looks fantastic 馃 Keep up the excellent work

S
Simbioza 路 May 24, 2025

"That's a problem for future me" famous last words. I say them too often damn well knowing I'm cursing myself

P
PandaSama 路 May 26, 2025

Lol IKR!

A
Alanda Smith 路 May 24, 2025

You add so much realism to the game. Thank you for all your hard work :D

E
Elizabeth Tyler 路 May 24, 2025

This is so great

N
Nikki F 路 May 24, 2025

Very proud of you and your python progress!

P
PandaSama 路 May 26, 2025

Thank you! : ))