Replies: 2 (Who?), Viewed: 124 times.
Inventor
Original Poster
#1 Old 30th Jun 2020 at 12:57 PM
Default Making interactions available on thieves and service Sims that you call to you home
The question is in the title. What do I need to do to make this possible?

If you like my mods. Consider supporting me on Patreon https://www.patreon.com/PuddingFace
Advertisement
Virtual gardener
staff: administrator
#2 Old 30th Jun 2020 at 1:53 PM
With interactions you mean like "Sim" interactions that any sims has, but service sims only have like 3 interactions, right? 

Bonehilda is actually your best reference here  

Code:
     public override void Init(BonehildaSituation parent)
    {
        parent.Bonehilda.Motives.CreateMotive(CommodityKind.BeBonehilda);
        parent.Bonehilda.Motives.CreateMotive(CommodityKind.BeBonehildaGoofOff);
        parent.Bonehilda.Motives.CreateMotive(CommodityKind.BeMaid);
        parent.Bonehilda.Motives.CreateMotive(CommodityKind.LookAfterBabyOrToddler);
        parent.Bonehilda.Motives.CreateMotive(CommodityKind.BeButler);
        parent.Bonehilda.Motives.CreateMotive(CommodityKind.LookAfterChild);
        parent.Bonehilda.Motives.CreateMotive(CommodityKind.BabysitterClean);
        parent.Bonehilda.Autonomy.DecrementAutonomyDisabled();
        mAlarmHandle = base.Parent.Bonehilda.AddAlarmRepeating(BonehildaCoffin.kAlarmFireRate, TimeUnit.Minutes, CheckForWork, "Bonehilda Check for all clean.", AlarmType.DeleteOnReset);
        parent.Bonehilda.AddInteraction(BonehildaCoffin.ChatWithBonehilda.Singleton);
        parent.Bonehilda.AddInteraction(BonehildaCoffin.DismissBonehildaSim.Singleton);
        parent.Bonehilda.AddInteraction(BonehildaCoffin.ChillOut.Singleton);
    
Every service sim obviously has their own "Situation" for when they're working. This is basically the way for the game to see them slightly different than other sims once they're being instantiated, or even 'freeze' their moodlets and what they as the sim are supposed to do, that's a bit different from others. 

Now if we look at bonehilda's "SpawnBonehilda()" method, we see somewhere along the code that sets her up, this:

Code:
mBonehildaSim.DisableSocialsOnSim()
So what you could do, on a global alarm or load, maybe use the "EnableSocialsOnSim()" method. Or even use NRAAS's DebugEnabler's code of "ReEnableSocials". (This function can also be found in game > Click on sim > Sim > EnableSocials.

Hope this helps a bit! 
Inventor
Original Poster
#3 Old 30th Jun 2020 at 4:00 PM
Helps a lot. Thank you.

If you like my mods. Consider supporting me on Patreon https://www.patreon.com/PuddingFace
Back to top