Antibodies after a Sickness!

SCREENSHOTS
Downloaded 4,298 times 172 Thanks 44 Favourited 10,800 Views
 Say Thanks!
Uploaded: 30th Jul 2022 at 11:36 AM
Updated: 29th Oct 2024 at 2:09 PM
Updates!
  • 2024-07-01: Removed unintentional behaviour where a morning sickness would also grant a disease immunity after it ended. Thanks to Latestfire for the report. The Comfort Soup add-on is unaffected as Maxis already included an exception for morning sickness in the default code.


Ever got annoyed about Sims in a large household constantly infecting one another once one contracted a cold or the flu? Did you ever get tired of having the family in a constant state of throwing coughing fits and having to keep their motives very high, and eventually them being the cause for neighbourhood-wide infections when they start throwing parties? I know I did.

At the same time, I dislike mods that give permanent immunity to Sims, even if this treatment costs a lot of Simoleons, it is simply not what I wish to have in my game.

In real life, whenever someone is sick with anything, be it the flu, the cold, or anything else, their immune system develops antibodies against the particular branch of disease, making them unable to contract it again for a certain amount of time, usually several months.

I wanted to reflect this in the game, too, but I know that the disease tokens, which spread the sicknesses to those walking over them, stick around for quite a while, so it'd have to be longer than that, in order to achieve what I was going for.

So after thinking about it for a while, I went to work and created my own solution to the problem I saw.

With this simple mod in your Downloads folder, any Sim that gets healthy after having had any disease will be immune to any disease for one full Sim day, giving the family a realistic chance to let the sickness fade away and finally break out of the loop.

Add-ons
If you play with the aspiration rewards, you'll have heard of Grandma's Comfort Soup as the ailment to every disease. So far, it was exempt from the antibodies, as it removes the illnesses on the spot instead of letting the normal healing process proceed. With the optional AntibodiesAfterComfortSoup add-on, you can grant Sims the same one-day immunity to all diseases after they ate such a soup.

Requirements
Not to worry, you only need the base game for the base mod!
If you also want the Comfort Soup add-on, you will need FreeTime, otherwise the mod will not serve any purpose.

Overrides
Antibodies After Sickness:
Resource nameType nameTypeGroupInstanceInstance (high)
Sub - Get HealthyBehaviour Function0x424841560x7F8A70B60x0000101B0x00000000

Antibodies After Comfort Soup:
Resource nameType nameTypeGroupInstanceInstance (high)
CT - Exit ActionBehaviour Function0x424841560x7F61E0690x0000100C0x00000000

There are also a handful of new resources all associated with the custom Controller - Antibodies object. These all have the GUID 0xFFFFFFFF and thus won't conflict with anything.

Notes
The fourth mod, "Caffeinated Token Destroyer", helps you get rid of old tokens and controllers if you used a previous version of this mod (before 2023-12-12). It looks like a coffee mug, has the GUID 0x007891AD, costs §1 and can be found in Misc > Misc. One option deletes all Disease Immunity tokens in the entire neighbourhood, the other deletes all old, unneeded Antibodies controllers on the lot only.

Unfortunately it is not possible to restrict the antibodies only to the type of disease the Sim used to have. This means that if a Sim is cured of a cold, they will also be immune to food poisoning, for example. I found no way to circumvent this yet.

The Antibodies controller has the GUID 0x00203114.

Conflicts
Anything that overwrites this particular BHAV will also conflict with this mod.
  • MATY's real-sickness mod does not alter the resource so it is okay to use along with this mod.
  • simler90's Disease Mod conflicts with my mod, but you can download a version that resolves the conflict. It must load after Disease Mod.
    - Note that the only difference between the versions is: with the compatible version the game shows "Sim is healthy again" notifs only with family members, while the normal version shows these notifs for all Sims currently on the lot.
  • simler90's Grandma's Comfort Soup Mod (add-on to his Disease Mod) conflicts with my AntibodiesAfterComfortSoup add-on. Do not use the two together as they would cancel out one another. simler90 has a different approach to the soup.
  • kestrellyn's Pneumonia Fix is fine to use alongside my mod, despite being extracted from the Disease Mod. Use the standard version if you have this mod and decided against simler90's larger mod.
  • My own mod Better Disease Notifications has a conflict. If you wish to use both mods, you will need the compatibility patch I posted on the other mod's page.

Credits
Maxis and EA for creating Sims 2 in the first place
The creators of SimPE and especially the BHAV plugin
guirnaldas and Latestfire for helping me squash bugs

Have fun and happy Simming!
~ LimeyYoshi