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.
An actor is an object in your scene
Section titled “An actor is an object in your scene”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.
What an actor has
Section titled “What an actor has”- 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.
Age and age groups
Section titled “Age and age groups”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.
Culture
Section titled “Culture”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.
A scene object, or none
Section titled “A scene object, 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.
Actors made while the game runs
Section titled “Actors made while the game runs”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.
How it connects
Section titled “How it connects”- Who a node acts on is an actor: see Who a node acts on.
- Families and clans give an actor a place: see Families and marriage and Clans, roles and succession.
- The manager that makes actor objects: see The database and the Intrigue Manager.
- To make your first two actors, see Set up your first scene.
- Ages and ageing follow the calendar: see Days, calendar and game speed.