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!
Scholar
Original Poster
#1 Old 7th May 2018 at 6:51 PM
Default Adding more than five traits
So I'm making a moodlet which will temporarily add the unlucky trait to a Sim. When the moodlet is added the Sim will get the trait and when the moodlet times out or is removed the trait goes away. And it's working but when the Sim already has 5 traits it doesn't work. So I know that mastercontroller can add more traits to a Sim, how does that work?

P.S. A follow up question, What does this function do AddTraitEffects(), does it add the skill gain modifiers of traits?
Advertisement
Space Pony
#2 Old 7th May 2018 at 9:36 PM
First question i have to look that up but got no time atm to do testing.

The followup:
There are some tratits that come with other functionality e.g. the eye candy trait that has an function on it, the AddTraitEffects() function just makes sure that these effects are initialized, so if you got a new trait it does nothing for your trait.
Scholar
Original Poster
#3 Old 7th May 2018 at 9:55 PM
Thank you very much for your help
Scholar
Original Poster
#4 Old 8th May 2018 at 3:41 AM
Ok found the answer

Code:
try
                {

                    TraitManager.kTraitsForChildren = 0x989680;
                    TraitManager.kTraitsForTeens = 0x989680;
                    TraitManager.kTraitsForYoungAdultAndOlder = 0x989680;
                    bm.Actor.SimDescription.AddTrait(TraitUnlucky);
                }
                finally
                {
                    TraitManager.kTraitsForChildren = kTraitsForChildren;
                    TraitManager.kTraitsForTeens = kTraitsForTeens;
                    TraitManager.kTraitsForYoungAdultAndOlder = kTraitsForYoungAdultAndOlder;
                }
Back to top