Skip to content

Create Actor

Group
Actors
In the node menu
Actors › Create Actor
Where it can be used
Scheme graphs
Presets
  • Add Child

A Create Actor brings a new actor into the world. It makes either a newcomer or the child of one or two actors.

A child is born into the family the parents’ marriage names, unless Born into says otherwise. Store In keeps the new actor under a name for later nodes.

A Create Actor of the demo system scheme Have a Child (Drafts/schemes/sys-have-a-child.json): a newborn of the conspirator and the target. The card shows three of the node's four lines; the fourth, → Child, keeps the new actor as Child.

Use it for births and for strangers who arrive: a child of the court, a wanderer at the gate.

Use Set Family instead to bring an existing actor into a family.

  • The node runs only in scheme graphs.
  • A birth the world’s rules forbid stops the flow, with the reason in the log. The card shows an error when both parents are the same actor.
  • A child older than a parent is refused only when the world rule A parent must be older than the child is on.
  • A newcomer with no name and no culture is called Unnamed, and the card warns.
  • A random gender is decided each time the node runs.
  • If the culture, family, clan or look is not found, the flow stops.
  • A Runtime Actor Loader in the scene brings the new actor back after a save is loaded.
  • A preset, Add Child, sets Create to a child.
LabelDraft keyTypeDefaultShown if, tooltip and notes
CreateKind
  • Newcomer (A newcomer)
  • Child (A child of)
"Newcomer"A newcomer, or the child of one or two actors.
ParentParentActorRef"Conspirator"

Shown if Kind = Child

The parent. The child is born into the family the parents' marriage names, unless "Born into" says otherwise.
Second ParentTwoParentsboolfalse

Shown if Kind = Child

The child has a second parent.
Other ParentOtherParentActorRef"Target"

Shown if Kind = Child and TwoParents is true

The second parent.
NameNametext {tokens}""The first name. Empty: a name the culture gives, from its name list and its naming customs. Tokens such as {target.Name} are allowed.
GenderGender
  • Random
  • Male
  • Female
"Random"The gender of the new actor. Random: decided by the dice each time the node runs.
AgeAgeinteger0The age in years (Newborn: 0). A child older than a parent is refused only when the world's rule "A parent must be older than the child" is on.
  • min 0
  • 0: "Newborn"
CultureCultureIDname of CulturenoneThe culture. Empty: a child takes the culture the world's custom names (by default, that of the parent whose family it is born into, else the other parent's). A newcomer has none.
  • none: "Parent's culture / none"
PortraitPortraitasset path (Sprite)null (none)Optional. Empty: no portrait, or one that fits when "Give actors without a look one that fits" is on in the Sprite Database. A RuntimeActorHandler in the scene can also set it.
FamilyFamilyIDname of Familynone

Shown if Kind = Newcomer

The family the newcomer belongs to (and was born into).
  • none: "No family"
ClanClanIDname of Clannone

Shown if Kind = Newcomer and ClanAnotherWay is false

The clan the newcomer joins.
  • none: "No clan"
Born intoFamily
  • AsTheMarriageSays (As the marriage says)
  • Parent (Parent's family)
  • OtherParent (Other Parent's family)
  • None (No family)
"AsTheMarriageSays"

Shown if Kind = Child

As the marriage says: the family the parents' marriage lives with. Parents who are not married: as the world's custom says. Or a parent's family, or none.
ClanClan
  • AsTheWorldSays (As the world says)
  • Join (Parent's clan)
  • None (No clan)
"AsTheWorldSays"

Shown if Kind = Child

As the world says: the world's custom "Children join the parent's clan". Parent's clan: the clan of the parent whose family the child is born into, without a role.
Store InStoreInStore In (Actor)not in the dataAn Actor variable of this scheme that gets the actor, so later nodes can pick it by name. It holds one actor for the whole scheme: storing into it again replaces it, even from another branch. Here: the new actor.
  • none: "Nowhere"
LookLookIDname of LooknoneA look of the Looks library. Empty: the picture below, or one that fits when "Give actors without a look one that fits" is on. Wins over the picture.
  • none: "From the portrait, or one that fits"
Clan Another WayClanAnotherWayboolfalse

Shown if Kind = Newcomer

Name the newcomer's clan another way: someone's clan, the clan their clan stands under, a Clan variable or one clan.
Newcomer ClanNewcomerClanClanRef"of:Conspirator"

Shown if Kind = Newcomer and ClanAnotherWay is true

The clan the newcomer joins. When it is not available the flow stops here.
  1. Out
"type"
"Create Actor"
Presets (also a "type")
  • "Add Child": sets Kind=Child
"set" keys
Kind, Parent, TwoParents, OtherParent, Name, Gender, Age, CultureID, Portrait, FamilyID, ClanID, Family, Clan, StoreIn, LookID, ClanAnotherWay, NewcomerClan
"then" keys
"Out"
"<alias>": {
"type": "Create Actor",
"then": "<alias>"
}