Behaviour: Traits
What this page is for
Section titled “What this page is for”A trait is a name such as Brave, Greedy or Cautious. A character who has it gets a bonus on some numbers, leans toward or away from some kinds of decision, and may pass the trait to children. Under the trait table sits the list of Personality values, the numbers that traits push.
Background is on Characters that think.
When you come here
Section titled “When you come here”- You want a new trait, or a trait that is the opposite of one you have.
- You want to see which numbers a trait changes and how many characters have it.
- You need a number for traits to push, such as Greed.
What you see
Section titled “What you see”Choose Behaviour in the Page menu, then the Traits tab. No figure is drawn. The page has two tables with the list header described on Behaviour: Formulas. The trait table has an icon, Name, Group, Changes (for example Greed +50), Leans (Hostile −40 %) and Actors, the number of characters who have the trait. The Personality values table has Name, Ends, Range, Starts At and Moved By.
With nothing selected, the inspector also shows the world setting One trait of a group, set on Home ▸ Settings as A character has one trait of a group. Off at first.
Do it, step by step
Section titled “Do it, step by step”Make a trait
Section titled “Make a trait”Click New in the trait table. New Trait opens in the inspector. Set Name, Description, Icon and Group: type one, or use ▾ to pick a group another trait has. Traits of one group are opposites (Courage: Brave, Craven). The inspector then has:
| Section | What it holds |
|---|---|
| Changes | Numbers of the character the trait adds to, such as Greed +50. |
| Leans Toward | A tag and a percent: Hostile −40 % means they want hostile decisions 40 % less. |
| Opinions | People with this trait like each other and …and dislike the opposite. The opposite needs a group. |
| Goes Against Their Nature | Tags of decisions that go against this trait. |
| Earned | Held while: a number the trait follows, then Level and How. Default: not earned. |
| Where It Comes From | Passed to children and Chance at birth, in percent. Hidden for an earned trait. |
Make the opposite
Section titled “Make the opposite”Right-click a trait and choose Make the Opposite, or press the button in the inspector. A trait named Not plus the old name is added after it, with every sign turned around. Rename it. The undo step is Make Opposite Trait.
Make a personality value
Section titled “Make a personality value”Click New in Personality values. You get a whole number from 0 to 100 that starts at 50 and shows as a bar. Traits push it through Changes.
To undo, use Undo in Unity’s Edit menu. Duplicate and Delete… work as on Behaviour: Formulas.
How it connects
Section titled “How it connects”A trait changes numbers, but it never holds the number itself: the value lives in a personality value, so the two lists belong together, and a trait that points at a number you have not made yet can create it on the spot with + New personality value… in its Changes.
Characters get traits in the People inspector, from graphs and from code. The tags a trait leans toward are the tags of decisions: see Behaviour: Decisions. What acting against a trait costs is set on Behaviour: Settings.
Mistakes and messages
Section titled “Mistakes and messages”| Message | What to do |
|---|---|
| The trait has no name. | Type a name. |
| A change has no variable. Pick one or remove the change. | Pick a number. |
| … is not a number of characters, so this change does nothing. | Pick an Integer or Float of each actor. |
| A lean with no tag does nothing. | Type a tag. |
| The opposite is another trait of the same group. This trait has no group, so this does nothing yet. | Give the trait a group. |