Modding Diary - Scripting Fun (Patreon)
Content
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!