Choose who inherits
Goal: when the holder of a role dies, the right person takes the seat.
Every role carries a succession rule. You edit it on the Roles page of the Studio, under the header Succession. Read Clans, roles and succession first if the words are new.
Pick a rule
Section titled “Pick a rule”- Open the Roles page and select a role.
- In Passes on, choose one of three:
| Choice | What happens when the holder dies |
|---|---|
| Not inherited | The seat is empty, like a council seat. |
| To relatives | The seat goes to the first person in line, in the order you set. |
| Decided in code | A method of your game names the heir. |
- For To relatives, pick a Preset: Eldest child, Youngest child, Oldest in the family or Highest rank in the clan. Changing the order afterwards makes it Custom order.
- Adjust the rest if you need to: Gender (Men first, Women only and the others), Age, If tied (The one listed first or By luck), Follow family lines, Minimum age, Chance of an upset (0 to 95 percent) and Who may inherit.
- Edit the Order list with Add group, Move up, Move down and Remove. The first person found who may inherit is the heir.
You will see: the Succession column of the Roles page shows the rule as a short sentence, and the tooltip shows the full one.
Name one heir
Section titled “Name one heir”Use the Set Heir node. Set Actor to the holder and Heir to the person you want. The named heir comes first in line while alive and allowed to inherit. It counts only while the actor holds an inherited court role in a clan. Turn on Normal Succession to forget the named heir and go back to the rule.
Decide in code
Section titled “Decide in code”- Set Passes on to Decided in code and type a Method name. The row warns you until you do.
- Register that name when the game starts. Example. Compiled against the package’s runtime assembly; not run in Unity. The signature is from
Succession.cs:
Succession.Register("Elders Vote", (holder, role, clan, line) => { // add the people who should inherit, first to last});The line is an empty list to fill. Dead people, duplicates and the holder are dropped afterwards. See Succession in code.
What can go wrong
Section titled “What can go wrong”- Nobody inherits and the log names a method: the name in Method name is not registered. Call
Succession.Registerwhen the game starts. - The order is empty: the rule shows the error “Add at least one group to the order.”
- The heir is not who you expected: a group may have skipped them for age, gender, clan or family, or the chance of an upset passed them over. The upset is worked out from the world seed, so the heir stays the same for the whole game.
- A rule changed from code does not reach heirs already worked out: use
Role.SetSuccessionorClan.SetSuccession.
The page that covers the Roles page itself is Clans: Roles.