Has Trait
Has Trait
True
False
- Group
- Conditions
- In the node menu
- Conditions › AI › Has Trait
- Where it can be used
- Scheme graphs
- Tags
What it does
Section titled “What it does”Has Trait asks whether an actor has a trait. The story goes on through True when they have it and through False when they do not.
Instead of one trait you can name a group, such as Courage. Then any trait of that group is enough.
Example
Section titled “Example”Has Trait
Target is Two-Faced
True
False
When to use it
Section titled “When to use it”Use it when a trait should change the next step, as in Pledge the Young, where a Two-Faced Target leads to its own branch. To give or take a trait, use Add Trait or Remove Trait.
Use Check Opinion instead when what matters is how one character feels about another.
Good to know
Section titled “Good to know”- When the Actor cannot be read, the flow stops at the node.
- The group is used only while no trait is chosen. Its words are trimmed and upper or lower case does not matter.
- With neither a trait nor a group, the answer is False and the card shows the error “Choose a trait or a group.”
- With a group, the card reads, for example, “Target has a trait of the group Courage”.
- As a row inside Check or Wait Until, the same check is called Trait.
- The node can hold more conditions with + Add another check, joined by AND or OR, each with NOT if you want it.
- When the Actor is the Target and the scheme runs without one, the card warns and the flow stops at the node.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Actor | Actor | ActorRef | "Target" | The actor whose traits are checked. |
| Trait | TraitID | name of Trait | none | The trait the actor must have. Leave it empty to check for any trait of a group.
|
| Or a trait group | Group | text | "" | Used when no trait is chosen: the actor must have any trait of this group ("Courage"). Upper and lower case do not matter. |
| draft only | Negate | bool | false |
|
| draft only | ExtraConditions | rows of ConditionData | not in the data |
|
Draft only: a draft sets it; the Studio has no row of its own for it.
Outputs
Section titled “Outputs”- True
- False
In a draft
Section titled “In a draft”"type""Has Trait""set"keysActor,TraitID,Group,Negate,ExtraConditions"then"keys"True","False"- As a condition row
"kind": "Trait"
"<alias>": { "type": "Has Trait", "then": { "True": "<alias>", "False": "<alias>" }}