Modding Diary - Scripting Fun
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 馃樁
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.
I hope you all have a good night of sleep and a fantastic weekend!
Comments (11)
i have a possible suggestion! i鈥檇 love to have it animated and have matching moodlets for the glucose test
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
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
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.
This looks fantastic 馃 Keep up the excellent work
"That's a problem for future me" famous last words. I say them too often damn well knowing I'm cursing myself
Lol IKR!
You add so much realism to the game. Thank you for all your hard work :D
This is so great
Very proud of you and your python progress!
Thank you! : ))
