Create Actor
Create Actor
- Group
- Actors
- In the node menu
- Actors › Create Actor
- Where it can be used
- Scheme graphs
- Presets
What it does
Section titled “What it does”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.
Example
Section titled “Example”Create Actor
New child of Conspirator and Target
Name from culture, at random
Random gender
When to use it
Section titled “When to use it”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.
Good to know
Section titled “Good to know”- 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.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Create | Kind |
| "Newcomer" | A newcomer, or the child of one or two actors. |
| Parent | Parent | ActorRef | "Conspirator" | Shown if Kind = Child The parent. The child is born into the family the parents' marriage names, unless "Born into" says otherwise. |
| Second Parent | TwoParents | bool | false | Shown if Kind = Child The child has a second parent. |
| Other Parent | OtherParent | ActorRef | "Target" | Shown if Kind = Child and TwoParents is true The second parent. |
| Name | Name | text {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. |
| Gender | Gender |
| "Random" | The gender of the new actor. Random: decided by the dice each time the node runs. |
| Age | Age | integer | 0 | The 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.
|
| Culture | CultureID | name of Culture | none | The 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.
|
| Portrait | Portrait | asset 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. |
| Family | FamilyID | name of Family | none | Shown if Kind = Newcomer The family the newcomer belongs to (and was born into).
|
| Clan | ClanID | name of Clan | none | Shown if Kind = Newcomer and ClanAnotherWay is false The clan the newcomer joins.
|
| Born into | 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. |
| Clan | 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 In | StoreIn | Store In (Actor) | not in the data | An 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.
|
| Look | LookID | name of Look | none | A 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.
|
| Clan Another Way | ClanAnotherWay | bool | false | 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 Clan | NewcomerClan | ClanRef | "of:Conspirator" | Shown if Kind = Newcomer and ClanAnotherWay is true The clan the newcomer joins. When it is not available the flow stops here. |
Outputs
Section titled “Outputs”- Out
In a draft
Section titled “In a draft”"type""Create Actor"- Presets (also a
"type") "Add Child": setsKind=Child
"set"keysKind,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>"}