Skip to content

Actors

An actor is a character in your game: a person who can plot, marry, rule, grow old and die. Plots and families are about actors.

In the game, each actor is a component on a scene object. Two kinds exist.

  • An InitialActor, which you add by hand (Intrigues > Actor). It takes its values from its entry on the Actors page.
  • A RuntimeActor, made by code or by a node while the game runs.
  • A name. The full name is built from the Full Name Format. The default is [{title} ]{name}: a title if the actor has one, then the name. A culture can set its own format.
  • A gender, Male or Female.
  • A life state, Alive or Dead. There is no third state.
  • An age. It sits in an age group.
  • A culture.
  • A family and a clan, if it has them, and the family it was born into.
  • Roles. A court role, a seat in a clan’s court, and a personal role, a calling such as a doctor. An actor can hold one of each.
  • Variables, traits, and ties and memories about other actors.
  • A look.
  • A mark that says whether a person plays this actor. A story needs no player at all.

The entry on the Actors page stores the starting values: the name, the player mark, the life state, the age, the culture, the gender, the portrait or look, starting variable values, traits, a personal role, ties and memories, and the day of the year the actor grows older.

An actor’s age is a whole number. An age group starts at its age and lasts until the next group starts, and the last group has no end. These are the seven groups a new database starts with.

Age group Starts at
Baby 0
Child 3
Teen 13
Adult 18
Middle age 40
Old 60
Very old 80

You can change the groups. The database also holds the oldest age, 100 at first. An age is kept between 0 and the oldest age, and 0 means no upper end. Characters die when they reach the oldest age is off at first. Then ages stop at the oldest age and characters live on until a decision, a scheme or your code ends their life.

Nothing ages by itself unless you turn it on. Characters grow a year older each year is off at first, so ages change only when your game changes them: with the Change Age node, or with code.

Crossing into another age group raises an event, and a look can change with it.

A culture gives an actor its names and its customs. It holds male and female names, a group, naming customs, traditions, typical traits, and optional family rules and laws for roles. A culture can make a name for a gender. See Families and marriage and Clans, roles and succession.

A look says what an actor looks like. It can hold a picture, a body prefab, a key your own code reads, an asset of your own, or any mix.

A look has variants. A variant applies to some age groups, and to a life state: always, only while alive, or only once dead. So one look can show a child, an adult and a grave. A look can be for men, women or anyone, and for some cultures. A look made for one actor is never offered to anyone else.

A project with no looks can use the Sprite Database, which holds pictures with tags, or an actor can hold just one picture. The Set Look node gives an actor a look from the library, one that fits, or none.

An actor entry on the Actors page does not need an object in your scene. Each actor remembers where its object came from:

  • Scene, an object you placed by hand.
  • Database, an object Intrigues made for an entry that had none.
  • Created, an object Intrigues made while the game runs: a birth, a Create Actor node, or an actor brought back by a load.

On the Intrigue Manager, Actors without a scene object decides what happens to entries with no object. Leave them out is the default: they take no part in the game. Create them when the game starts gives each one an object, a copy of the manager’s Actor Template or a plain object. Created actors join a scene that holds an actor object or a Runtime Actor Loader. Add a loader to a scene that holds no actor object, or when your own scripts read actors in Awake. The manager’s Game Scenes list names scenes that count as the game even when they hold no actor object. In code, IM.CreateMissingActors() creates the missing objects.

A Create Actor node brings in a newcomer, or the child of one or two actors, and Store In keeps the new actor for later nodes. In code, RuntimeActor.CreateActor takes a name, a state, an age, a culture, a gender and a picture. A new actor has no entry on the Actors page. A saved game keeps it, and a load brings it back as Created.