Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 23rd Sep 2014 at 10:21 PM
Default Clever modders, is it possible to ...
Enable an outfit change based on an emotional state?

I would love to see sad Sims suddenly change into sweat pants to mope about the house, or flirty Sims change into ever sexier underwear.

Can it be done? This might motivate me to finally attempt to mod the game myself.
Advertisement
Lab Assistant
#2 Old 23rd Sep 2014 at 11:51 PM
It makes sense that it would be possible. You'd have to make a new interaction to "change into mopey sweatpants", or "change into flirty underwear", then make it only available when the sim is in the right emotional state.
Test Subject
Original Poster
#3 Old 24th Sep 2014 at 2:03 AM
Quote: Originally posted by cwurts00
It makes sense that it would be possible. You'd have to make a new interaction to "change into mopey sweatpants", or "change into flirty underwear", then make it only available when the sim is in the right emotional state.


So it wouldn't be possible for the Sim to change outfits by themselves if in a certain emotional state and location (Home?)
Test Subject
#4 Old 24th Sep 2014 at 3:05 AM
I view the world of programming as "anything's possible".

In theory, you'd register your function to fire whenever the sim registers a mood change, and if it's one of the moods you have the outfit enabled for, you could then call some other function to initiate a change of clothes. I myself have not looked into the code for either of those yet, but it certainly would be a place to start.
Lab Assistant
#5 Old 24th Sep 2014 at 11:18 PM
I have messed around with outfit change data, and I think (although I haven't tested) you can have existing outfit changes test the sims mood with XML tuning alone.
So, for example, one could make a sim go to work in their sleepwear if they are "playful" or shower with their clothes on if they are "embarrassed", etc.
I would have to actually test it out to see if these tunables actually work as advertised. Even if they don't, it is certainly possible with script modding.

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Is Claeric
#6 Old 25th Sep 2014 at 12:18 AM
Oh gosh. If sad sims moped around in their activewear or flirty sims wandered the house in their sleepwear, that would be amazing.
Lab Assistant
#7 Old 26th Sep 2014 at 12:31 AM
Tried to do this with a tuning mod, wasn't successful.
I tried to modify the EnterBathing outfit change reason to test the mood, and not change thier outfit if they were embarassed.
The result was that any time the outfit reason change got called, the Sim would reset and not complete the interaction. Probably, an error occurred.
It could easily be that I had a syntax error or didn't write the test tunable correctly, but I didn't have time to look into it further.
It might still be possible with XML tuning, but it is certainly possible with script mods.

Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life.
Eminence Grise
#8 Old 27th Sep 2014 at 5:26 AM
The Animal Hats that come with the digital deluxe edition have attached moodlets... there are like 7 flavors.

So yes, it's possible.

There's a thread around here by Snaitf about hijacking the text that goes with that functionality. Study the hats and you will find your answer, I suspect
Lab Assistant
#9 Old 27th Sep 2014 at 6:10 PM
Quote: Originally posted by Srikandi
The Animal Hats that come with the digital deluxe edition have attached moodlets... there are like 7 flavors.

So yes, it's possible.

There's a thread around here by Snaitf about hijacking the text that goes with that functionality. Study the hats and you will find your answer, I suspect


I think the OP wants the opposite: to have his sims change clothes when their mood changes, not to have the mood change when they change clothes.

Somewhat unrelated, I'm still trying to make the moodlets attached to clothes work. I can make them show in CAS (just have the first entry in the TGI List inside the CASP, the one that is usually zeroed, point to the buff you want to use), but I have yet to find how to make the buff actually appear in game when the sim wears that piece of clothing.
Eminence Grise
#10 Old 28th Sep 2014 at 8:34 PM
Ohhh sorry misunderstood, thanks for the correction.
Back to top