Forum Discussion

bizuktag's avatar
bizuktag
Rising Traveler
8 years ago

Cumulative effect buffs possible?

Is it possible to create buffs that change with cumulative actions - for example, giving a sim a 'caffeinated' buff after one coffee, a 'more caffeinated' buff after two coffees, 'super caffeinated' after three?

I tried using blacklisting but it didn't work. In buff 1 I blacklisted buffs 2 and 3 (so you couldn't receive buff 1 if you had 2 or 3), in buff 2 I blacklisted buff 3 and whitelisted buff 1 (so you could only receive buff 2 if you already had 1), and so on, but no dice. I'm not sure if it's my coding or if the game isn't set up to add and remove/replace a buff in this way.

I can see other buffs are altered over time - pregnancy, garlic sickness, etc - but I believe those tie into traits and proximity respectively. Does anyone know if this kind of cumulative effect from interactions is possible with buffs? Just want to know if I'm totally barking up the wrong tree.
  • It sounds like you're on the right track, but you might be missing a piece or two. Were you able to get the first buff working upon drinking a coffee?

    I'd advise looking at the files on pregnancy and see how it's done for that. Might be able to copy the general scheme of it.

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.4,705 PostsLatest Activity: 10 hours ago