Skip to content

Has Trait

Group
Conditions
In the node menu
Conditions › AI › Has Trait
Where it can be used
Scheme graphs
Tags
  • Also a condition row: Trait

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.

A node of the demo scheme Pledge the Young (Drafts/schemes/04-pledge-the-young.json). The trait Two-Faced is defined in Drafts/world/01-definitions.json.

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.

  • 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.
LabelDraft keyTypeDefaultShown if, tooltip and notes
ActorActorActorRef"Target"The actor whose traits are checked.
TraitTraitIDname of TraitnoneThe trait the actor must have. Leave it empty to check for any trait of a group.
  • none: "Any trait of a group"
Or a trait groupGrouptext""Used when no trait is chosen: the actor must have any trait of this group ("Courage"). Upper and lower case do not matter.
draft onlyNegateboolfalse
  • Every condition node has this setting.
  • The Studio shows the NOT mark on a condition's heading line instead, once the node has more than one condition.
draft onlyExtraConditionsrows of ConditionDatanot in the data
  • Every condition node has this setting.
  • The Studio shows "+ Add another check" under the node's own rows instead; each further condition gets a heading line (IF / AND / OR, NOT).

Draft only: a draft sets it; the Studio has no row of its own for it.

  1. True
  2. False
"type"
"Has Trait"
"set" keys
Actor, TraitID, Group, Negate, ExtraConditions
"then" keys
"True", "False"
As a condition row
"kind": "Trait"
"<alias>": {
"type": "Has Trait",
"then": { "True": "<alias>", "False": "<alias>" }
}