Post by noprobllama on Aug 30, 2019 18:51:03 GMT -5
I'm following this tutorial on making custom holiday traditions.
The tutorial explains how to make Sims ignore or love a tradition based on age. Here's a code snippet from the tradition tuning:
<U>
<E n="preference">DOES_NOT_CARE</E>
<L n="tests">
<V t="sim_info">
<U n="sim_info">
<V n="ages" t="specified">
<L n="specified">
<E>BABY</E>
<E>TODDLER</E>
</L>
</V>
<E n="who">Actor</E>
</U>
</V>
</L>
</U>
This is the "doesn't care" section but you get the idea.
I'm trying to make traits influence this sort of thing, too. The tutorial just says it's possible to do it but doesn't go into detail, so I decided to take a look at some of the game's own holiday tunings. I randomly picked "Give Romantic Gifts".
<U>
<E n="preference">LOVES</E>
<V n="reason" t="enabled">
<T n="enabled">0xC0DE0B95<!--(From Being Romantic)--></T>
</V>
<L n="tests">
<V t="trait">
<U n="trait">
<L n="whitelist_traits">
<T>27454<!--Trait_Romantic--></T>
</L>
</U>
</V>
</L>
</U>
This is obviously pretty different, it gives a reason for a Sim to love or ignore a tradition. The structure is also different, it has multiple "does not care" sections, so instead of just listing babies and toddlers consecutively like in the tutorial code, it has separate sections for each.
Now, onto my questions.
1. I want to make Sims with some traits LOVE the tradition, so I've edited the areas that mentioned traits to resemble the game's handling. For example:
<E n="preference">LOVES</E>
<L n="tests">
<V t="trait">
<U n="trait">
<V n="trait" t="specified">
<L n="specified">
Except I don't know what to follow it with. Can I use E tags with the trait's name or T tags with the trait's string? So for example, if I wanted to use the Outgoing trait:
<E>OUTGOING</E>
or
<T>29571</T>
?
2. It's not my priority right now to add a mouse-over explanation like in the game. I assume if I wanted to do that I'd just use the "reason" code the game uses, but then would I just replace that string with the one for "From Being Outgoing"?
3. Kind of unrelated but I tried this tutorial before. I don't know how I messed up but with that tradition, the icon appeared when setting up a custom holiday but it didn't appear under the holiday box when it actually rolled around. When that happened, I got a MCCC exception... and then I just couldn't load that game. It's 100% possible that was me, but could something have changed since that tutorial was written?
Thank you!