- Site Map >
- Modding and Creation >
- Sims 4 Creation >
- Modding Discussion >
- Making social interactions results change based on target sims trait
- Site Map >
- Modding and Creation >
- Sims 4 Creation >
- Modding Discussion >
- Making social interactions results change based on target sims trait
Replies: 1 (Who?), Viewed: 441 times.
#1
25th Jan 2022 at 1:59 PM
Posts: 3
Making social interactions results change based on target sims trait
Hi!I'm wanting to make some social interactions for a mod that have a different result based on the target sims trait.
For example, in the woohoo and wellness pregnancy overhaul mod when you tell the target sim they fathered your child their reaction will be good if they have the "would be happy to have a child" trait or it will be a negative interaction if they have the "would not be happy to have a child" trait.
I hope that makes sense!
Also, I have been using Mod construction and Sims 4 studio to create my mod! :p
Advertisement
#2
26th Jan 2022 at 1:41 AM
Posts: 408
Thanks: 5959 in 22 Posts
Your interaction needs to have a tested outcome then, and in the tested outcomes you need to test for the individual traits. I believe MC4 has an option to select different outcomes but I'm not sure how robust it is. Example from: mixer_social_ComplainAboutLackofLoveLife_Targeted_Friendly_AlwaysOn_Jealous_Trait
Code:
<V n="outcome" t="test_based"> <U n="test_based"> <L n="fallback_outcomes"> <U> <U n="outcome"> <V n="animation_ref" t="enabled"> <U n="enabled"> <T n="factory">11893<!--AnimationElement: Soc_Generic_NT_Complain_Succeed_basic--></T> <U n="overrides"> <V n="balloons" t="enabled"> <L n="enabled"> <U> <L n="balloon_choices"> <U> <V n="item" t="balloon_category"> <T n="balloon_category">38825<!--BalloonCategory: BalloonCategory_SetSocialRelationships_BadRomance_Speech--></T> </V> </U> </L> <L n="balloon_target"> <E>Actor</E> </L> </U> </L> </V> </U> </U> </V> <L n="loot_list"> <T>11036<!--LootActions: Rel_Gain_Small--></T> <T>24123<!--LootActions: Loot_SocialContext_Friendship_Gain--></T> <T>36121<!--LootActions: Skill_Loot_Dynamic_Small_ChildrenOnly_Social--></T> <T>10954<!--LootActions: Loot_ForSocialsSocialMotiveMedium--></T> <T>98217<!--LootActions: Loot_Buff_RemoveStressedBuffs--></T> <T>109228<!--LootActions: loot_Commodity_CareerBenefit_Agent_Main_Level--></T> <T>104567<!--LootActions: loot_Relationship_Bit_KnowsIsAlien--></T> <T>216556<!--RandomWeightedLoot: randomWeightedLoot_Cauldron_Potion_Luck_RandomBenefit_Social_Friendly--></T> </L> </U> </U> </L> <L n="tested_outcomes"> <U> <L n="potential_outcomes"> <U> <U n="outcome"> <V n="animation_ref" t="enabled"> <U n="enabled"> <T n="factory">11893<!--AnimationElement: Soc_Generic_NT_Complain_Succeed_basic--></T> <U n="overrides"> <V n="balloons" t="enabled"> <L n="enabled"> <U> <L n="balloon_choices"> <U> <V n="item" t="balloon_category"> <T n="balloon_category">38825<!--BalloonCategory: BalloonCategory_SetSocialRelationships_BadRomance_Speech--></T> </V> </U> </L> <L n="balloon_target"> <E>Actor</E> </L> </U> </L> </V> </U> </U> </V> <L n="loot_list"> <T>10954<!--LootActions: Loot_ForSocialsSocialMotiveMedium--></T> <T>11032<!--LootActions: Rel_Gain_Medium--></T> <T>24123<!--LootActions: Loot_SocialContext_Friendship_Gain--></T> <T>36121<!--LootActions: Skill_Loot_Dynamic_Small_ChildrenOnly_Social--></T> <T>98217<!--LootActions: Loot_Buff_RemoveStressedBuffs--></T> <T>109228<!--LootActions: loot_Commodity_CareerBenefit_Agent_Main_Level--></T> <T>104567<!--LootActions: loot_Relationship_Bit_KnowsIsAlien--></T> <T>216556<!--RandomWeightedLoot: randomWeightedLoot_Cauldron_Potion_Luck_RandomBenefit_Social_Friendly--></T> </L> </U> <U n="weight"> <T n="base_value">3</T> </U> </U> </L> <L n="tests"> <L> <V t="test_based_score_threshold"> <U n="test_based_score_threshold"> <T n="test_based_score">249138<!--TestBasedScore: scores_socialoutcomes_friendly_AlwaysOn--></T> <U n="threshold"> <T n="value">15</T> </U> </U> </V> </L> </L> </U> <U> <L n="potential_outcomes"> <U> <U n="outcome"> <V n="animation_ref" t="enabled"> <U n="enabled"> <T n="factory">11892<!--AnimationElement: Soc_Generic_NT_Complain_Fail_basic--></T> <U n="overrides"> <V n="balloons" t="enabled"> <L n="enabled"> <U> <L n="balloon_choices"> <U> <V n="item" t="balloon_category"> <T n="balloon_category">38825<!--BalloonCategory: BalloonCategory_SetSocialRelationships_BadRomance_Speech--></T> </V> </U> </L> <L n="balloon_target"> <E>Actor</E> </L> </U> </L> </V> </U> </U> </V> <L n="loot_list"> <T>10954<!--LootActions: Loot_ForSocialsSocialMotiveMedium--></T> <T>11042<!--LootActions: Rel_Loss_Small--></T> <T>24124<!--LootActions: Loot_SocialContext_Friendship_Loss--></T> <T>36121<!--LootActions: Skill_Loot_Dynamic_Small_ChildrenOnly_Social--></T> <T>98217<!--LootActions: Loot_Buff_RemoveStressedBuffs--></T> <T>258936<!--LootActions: loot_Trait_Mean_ReactBroadcaster--></T> <T>99714<!--LootActions: Loot_DidNegativeSocial--></T> <T>109228<!--LootActions: loot_Commodity_CareerBenefit_Agent_Main_Level--></T> <T>104567<!--LootActions: loot_Relationship_Bit_KnowsIsAlien--></T> </L> <E n="outcome_result">FAILURE</E> <V n="response" t="enabled"> <V n="enabled" t="individual"> <U n="individual"> <L n="animations"> <U> <E n="target">Actor</E> <U n="animation"> <T n="factory">28339<!--AnimationElement: Socials_Responses_Angry_HighIntensity_Footstomp--></T> </U> </U> <U> <E n="target">TargetSim</E> <U n="animation"> <T n="factory">28336<!--AnimationElement: Socials_Responses_Angry_LowIntensity--></T> </U> </U> </L> </U> </V> </V> </U> <U n="weight"> <T n="base_value">2</T> </U> </U> </L> <L n="tests"> <L> <V t="test_based_score_threshold"> <U n="test_based_score_threshold"> <T n="test_based_score">249138<!--TestBasedScore: scores_socialoutcomes_friendly_AlwaysOn--></T> <U n="threshold"> <E n="comparison">LESS_OR_EQUAL</E> <T n="value">-10</T> </U> </U> </V> </L> <L> <V t="relationship"> <U n="relationship"> <U n="required_relationship_bits"> <L n="match_any"> <T>8809<!--RelationshipBit: family_parent--></T> </L> </U> </U> </V> </L> </L> </U> <U> <L n="potential_outcomes"> <U> <U n="outcome"> <V n="animation_ref" t="enabled"> <U n="enabled"> <T n="factory">11892<!--AnimationElement: Soc_Generic_NT_Complain_Fail_basic--></T> <U n="overrides"> <V n="balloons" t="enabled"> <L n="enabled"> <U> <L n="balloon_choices"> <U> <V n="item" t="balloon_category"> <T n="balloon_category">38825<!--BalloonCategory: BalloonCategory_SetSocialRelationships_BadRomance_Speech--></T> </V> </U> </L> <L n="balloon_target"> <E>Actor</E> </L> </U> </L> </V> </U> </U> </V> <L n="loot_list"> <T>10954<!--LootActions: Loot_ForSocialsSocialMotiveMedium--></T> <T>11042<!--LootActions: Rel_Loss_Small--></T> <T>24124<!--LootActions: Loot_SocialContext_Friendship_Loss--></T> <T>36121<!--LootActions: Skill_Loot_Dynamic_Small_ChildrenOnly_Social--></T> <T>98217<!--LootActions: Loot_Buff_RemoveStressedBuffs--></T> <T>258936<!--LootActions: loot_Trait_Mean_ReactBroadcaster--></T> <T>99714<!--LootActions: Loot_DidNegativeSocial--></T> <T>109228<!--LootActions: loot_Commodity_CareerBenefit_Agent_Main_Level--></T> <T>104567<!--LootActions: loot_Relationship_Bit_KnowsIsAlien--></T> </L> <E n="outcome_result">FAILURE</E> </U> <U n="weight"> <T n="base_value">1</T> </U> </U> </L> <L n="tests"> <L> <V t="test_based_score_threshold"> <U n="test_based_score_threshold"> <T n="test_based_score">249138<!--TestBasedScore: scores_socialoutcomes_friendly_AlwaysOn--></T> <U n="threshold"> <E n="comparison">LESS_OR_EQUAL</E> <T n="value">-20</T> </U> </U> </V> </L> </L> </U> <U> <L n="potential_outcomes"> <U> <U n="outcome"> <V n="animation_ref" t="enabled"> <U n="enabled"> <T n="factory">11892<!--AnimationElement: Soc_Generic_NT_Complain_Fail_basic--></T> <U n="overrides"> <V n="balloons" t="enabled"> <L n="enabled"> <U> <L n="balloon_choices"> <U> <V n="item" t="balloon_category"> <T n="balloon_category">38825<!--BalloonCategory: BalloonCategory_SetSocialRelationships_BadRomance_Speech--></T> </V> </U> </L> <L n="balloon_target"> <E>Actor</E> </L> </U> </L> </V> </U> </U> </V> <L n="loot_list"> <T>36121<!--LootActions: Skill_Loot_Dynamic_Small_ChildrenOnly_Social--></T> <T>98217<!--LootActions: Loot_Buff_RemoveStressedBuffs--></T> <T>11042<!--LootActions: Rel_Loss_Small--></T> <T>10954<!--LootActions: Loot_ForSocialsSocialMotiveMedium--></T> <T>31828<!--LootActions: Loot_SocialContect_Fun_Loss_conditionalBoring--></T> <T>109228<!--LootActions: loot_Commodity_CareerBenefit_Agent_Main_Level--></T> <T>104567<!--LootActions: loot_Relationship_Bit_KnowsIsAlien--></T> </L> <E n="outcome_result">FAILURE</E> <V n="response" t="enabled"> <V n="enabled" t="individual"> <U n="individual"> <L n="animations"> <U> <E n="target">Actor</E> <U n="animation"> <T n="factory">28356<!--AnimationElement: Socials_Responses_Embarrassed_LowIntensity--></T> </U> </U> <U> <E n="target">Listeners</E> <U n="animation"> <T n="factory">28354<!--AnimationElement: Socials_Responses_Bored_HighIntensity--></T> </U> </U> </L> </U> </V> </V> </U> <U n="weight"> <T n="base_value">999</T> </U> </U> </L> <L n="tests"> <L> <V t="test_set_reference"> <T n="test_set_reference">31850<!--TestSetInstance: testSet_SocialBoredom_Low--></T> </V> </L> </L> </U> </L> </U> </V>
Creator Musings is a Sims 4 modder, poser/animator, and CC creator hangout server (though everyone is allowed) with a tutorial/resource directory, help channels, and mod/cc/sims 4 news channels!
My Discord | Twitter | Tumblr | Patreon
My Discord | Twitter | Tumblr | Patreon
Who Posted
|