Talk:Trait (The Sims 4): Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
Line 8: Line 8:
== Codenames for traits ==
== Codenames for traits ==


It might be good to have the code names for each trait. Or at least the non-obvious ones. I wiped out all my traits by mistake (and very easily) by modifying traits using the CAS editor and then had to add them back manually. It was hard to get Poetic back. I still can't get: Beloved, Handy, Hilarious, Professorial, or Shrewd back.
It might be good to have the code names for each trait. Or at least the ones which aren't obvious. Normally the code names are just written without spaces e.g. if you want to add the Gym Rat trait you'd type in the console: traits.equip_trait gymrat


I wiped out all my Sims' traits by mistake *Very* easily by using the CAS editor and then had to add them back manually. Sadly the game devs didn't think to apply the no space rule consistently making the process difficult.
The general rule is that the code names are written in what's known as CamelCode e.g. if you want to add the Gym Rat trait you'd type: GymRat e.g. traits.equip_trait GymRat
{| border="0" cellpadding="1" cellspacing="1" class="article-table" style="width: 500px;"
|-
! scope="col"|Trait
! scope="col"|Code name (all of these are not case-sensitive)
|-
|Angler's Tranquility
|anglerstranquility (NB no apostrophe)
|-
|Beloved
|legendary
|-
|Business Savvy
|business_savvy (NB stupid underscore)
|-
|Companion
|eternalbond 
|-
|Handy
|(nobody knows sorry)
|-
|High Metabolism
|high_metabolism
|-
|Long Life
|longevity
|-
|Naturalist
|onewithnature
|-
|Poetic
|poet (epicpoet will also work)
|-
|Professorial
|(nobody knows)
|-
|Quick Learner
|quick_learner
|-
|Shrewd
|(nobody knows)
|}


IMO, randomly inserting underscores into the middle of code names is a hateful thing that programmers sometimes do to trip novice programmers up. Angler's Tranquility = AnglersTranquility so if someone types in: traits.equip_trait Angler'sTranquility (NB apostrophe in the middle) it won't work and it may well be difficult to understand *why* it didn't work. (This is very typical in computer programming - programming can be a massive pain in the *** to do because 1 character out of place can break your programme and the computer won't say why it's broken.) [[Special:Contributions/80.229.165.251|80.229.165.251]] ([[User talk:80.229.165.251|talk]]) 19:29, November 9, 2014 (UTC)
But this rule wasn't applied consistently and uniformly. For example some of the traits randomly have underscores in the middle (which is a hateful thing that programmers sometimes do to trip novice programmers up) Business_Savvy High_metabolism Quick_Learner

Moreover if you type in: traits.equip_trait Poetic it won't do anything because the codename is actually POET. Long Lived is actually LONGEVITY. Naturalist = oNEWIThNaTUrE. Companion = EteRnalbOnd. Angler's Tranquility = AnglersTranquility so if someone types in: traits.equip_trait Angler'sTranquility (NB apostrophe in the middle) it won't work and it may well be difficult to understand *why* it didn't work. (This is very typical in computer programming - programming can be a massive pain in the *** to do because 1 character out of place can break your programme and the computer won't say why it's broken.) [[Special:Contributions/80.229.165.251|80.229.165.251]] ([[User talk:80.229.165.251|talk]]) 19:29, November 9, 2014 (UTC)