Replies: 3 (Who?), Viewed: 464 times.
Test Subject
Original Poster
#1 Old 24th Jul 2020 at 10:03 PM
Please help with adding trait conflicts
I am somewhat new to mod creation in the Sims 4 and I have been working on creating some new traits using Zerbu's Mod Constructor v4, however I am completely stumped as to how to add trait conflicts (such as how in base game Family Oriented conflicts with Hates Children). I have searched up and down the internet for a tutorial or explanation but nothing of particular use has turned up. I have tried dissecting/reverse-engineering existing mods for traits that are set up to conflict with other traits by opening them up in S4PE, but so far I have had little luck.

If anyone would be willing to give me a step by step explanation of the process of adding conflict, I would be most grateful.

Thanks in advanced,
The Dragon Warrior
Advertisement
Lab Assistant
#2 Old 26th Jul 2020 at 1:44 PM
I use sims 4 studio for modding so cant help with mod constuctor. However you want to open up your trait tuning file and add this line of code in

Code:
<T n="cas_trait_asm_param">HatesChildren</T>
  <L n="conflicting_traits">
    <T>16838<!--trait_FamilyOriented--></T>


You will need to find the tuning id of the traits you want it to conflict with. You can do this with sims 4 studio by clicking tools and choosing extract tuning. In the search bar type trait/trait and look for the traits you want your conflicts with. Click add to current package.

Code:
<I c="Trait" i="trait" m="traits.traits" n="trait_HatesChildren" s="16844">


The first line of coding for the trait tuning files you just added will look similar to the above. You want to copy the number (in the case above the number 16844 and go back to your own traits tuning file and insert the number in the conflicting traits section.

Code:
<T n="cas_trait_asm_param">HatesChildren</T>
  <L n="conflicting_traits">
    <T>16844<!--trait_FamilyOriented--></T>
Field Researcher
#3 Old 4th Aug 2020 at 4:25 AM
You can only do it in Sims 4 Studio. I've never been able to add a conflict in Mod Constructor.

View all My Sims 4 Creations here https://kiarasimsfourmods.home.blog/

Creators & Support Discord - https://discord.com/invite/9Ys7SYT

KiaraSims4Mods Discord - https://discord.com/invite/TykFPkY
Lab Assistant
#4 Old 5th Aug 2020 at 5:53 AM
What I do- as do others who have conflicts in their traits, I presume- is make my traits in Constructor and edit them in Studio. What you want to do is edit the Sim Data and Trait Tuning of your traits. For example, one of my traits conflicts with Evil, Mean, and Hot-Headed, so here is the code in Sim Data:
Code:
<L name="conflicting_traits">
        <T type="TableSetReference">16836</T>
        <T type="TableSetReference">16857</T>
        <T type="TableSetReference">16845</T>
      </L>

And Trait Tuning:
Code:
<L n="conflicting_traits">
    <T>16836</T>
    <T>16857</T>
    <T>16845</T>
  </L>

However. What the previous posters failed to clarify is that if you just do this and call it a day, you'll only get a half conflict. That is, if you select my trait, Evil/Mean/Hot-Headed will be greyed out, but if you select, say, Evil, my trait will not be greyed out, and will be selectable- meaning you can have them together as long as you select Evil/Mean/Hot-Headed first. This is not good!
So you have to click Tools -> Extract Tuning..., search for and insert the data for the relevant traits, and add your trait to the conflicts list. This will also mean your mod will be incompatible with any other mods that have the same trait involved in a conflict, meaning only one mod's conflicts will register, but it is what it is.
Back to top