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!
Quick Reply
Search this Thread
Guest
Original Poster
#1 Old 8th Feb 2015 at 10:07 PM
Default Mod to add traits
I could have sworn I saw a tutorial on how to create a mod that adds a new trait.

I want to make a new hidden trait.

Can anyone point me in the right direction? I tried a search and failed. All I get is a bunch of links to Sims 4 mods. I want to make new traits for Sims 3.

Help?
Advertisement
Inventor
#2 Old 9th Feb 2015 at 8:57 AM Last edited by Arsil : 9th Feb 2015 at 12:00 PM.
I think that my mod, Japanese Culture Trait, is the easiest case study (but I don't
recommend my coding style and can't guarantee that is robust or issues-free).

The xml with the trait data is commented and I can provide the sourcecode with
some comments that may help (and also because it uses constants and maybe
decompiling the code they will look weird, I don't know and I don't care to check).
EDIT: I confused constants (const) with macros (#define of C language).

An important thing is using unique names/ids for trait, traitTip and commodityKind.

Of course, having a custom trait that does nothing is not much fun, so you'll have
to program some behaviour. You can also create a custom motive whose value
decreases with time, so sims with will have the urge to do trait-related stuff.
My mod doesn't do that, the trait is only used as requirement to perform 2 custom
(and bugged) interactions.

Other sources that might help (they sure helped me). I'm too lazy to search links.
- Sims MX's Hypochondriasis Mod
- AwesomeMod
- Tutorial that also talks about "editing" enum, by velocitygrass

Needless to say, it's a pure scripting mod.

Guest
Original Poster
#3 Old 9th Feb 2015 at 11:15 AM
Thanks!!
Back to top