Set Role
- Group
- Clans & Roles
- In the node menu
- Clans & Roles › Set Role
- Where it can be used
- Scheme graphs
- Also found as
- Dismiss from Role
- Presets
What it does
Section titled “What it does”Set Role gives an actor a role, or takes one away. A court role is a seat of the actor’s clan. A personal role belongs to the actor.
With no role chosen, the node dismisses: either from the court role or from the personal role, as you set it at Dismiss from. When a role is given and every seat is taken, If the seat is taken says who gives way.
Example
Section titled “Example”When to use it
Section titled “When to use it”Use it to appoint someone, to replace a holder or to dismiss one.
Use Hand Over Role instead when the holder steps down and their heir should take the role. Use Set Clan Law instead to change how many seats a clan has.
A preset, Appoint to Court Role, starts from this node. Dismiss from Role is another name for it with no role chosen.
Good to know
Section titled “Good to know”- An actor without a clan who gets a court role gets it without a seat.
- A personal role is given as it is. It has no seats, so the setting for a taken seat does not matter for it.
- Not Given runs when the role was not given: the role is unknown, every seat is taken and the holder stays, or the role has no seats in the actor’s clan. With nothing linked to it, the flow goes on through Out. A dismissal always goes through Out.
- When every seat is taken, This holder leaves the seat is chosen and Holder names an actor who does not hold the seat, nothing changes and Not Given runs. When a seat is free, the actor takes it and nobody leaves. With no actor chosen at Holder, the flow stops.
- Store Who Left In is emptied when nobody left.
- The node does not check who sits afterwards. Game code that reacts to the vacancy may move the seat on. Read the seat again with Get Role Holder when the story depends on it.
Settings
Section titled “Settings”| Label | Draft key | Type | Default | Shown if, tooltip and notes |
|---|---|---|---|---|
| Actor | Actor | ActorRef | "Conspirator" | |
| Role | RoleID | name of Role | none | A court role is a seat of the actor's clan. A personal role belongs to the actor.
|
| If the seat is taken | IfTaken |
| "KeepHolder" | Shown if a Role is set When every seat of the court role is taken in the actor's clan: nothing changes, a holder leaves the seat (Who Leaves says which one) or the holder named below leaves it. Personal roles have no seats. |
| Dismiss from | From |
| "Court" | Shown if no Role is set Court role: the actor leaves their seat and the seat is empty. Personal role: the actor loses their personal role. |
| Who Leaves | Leaves | ranking | "Youngest" | Shown if IfTaken = ReplaceHolder Which holder leaves when every seat is taken. With more holders than seats, holders leave in this order until a seat is free. |
| Holder | Leaver | ActorRef | "Target" | Shown if IfTaken = ReplaceThisHolder The holder who leaves the seat. When this actor does not hold the seat, nothing changes and Not Given runs. |
| Store Who Left In | StoreLeaverIn | Store In (Actor) | not in the data | Shown if IfTaken is ReplaceHolder or ReplaceThisHolder A scheme Actor variable that gets the holder who left the seat (the first one when several leave). It is emptied when nobody left.
|
Outputs
Section titled “Outputs”- Out
- Not Given
In a draft
Section titled “In a draft”"type""Set Role"- Other
"type"names "Dismiss from Role"- Presets (also a
"type") "Appoint to Court Role": setsIfTaken=ReplaceHolder
"set"keysActor,RoleID,IfTaken,From,Leaves,Leaver,StoreLeaverIn"then"keys"Out","Not Given"
"<alias>": { "type": "Set Role", "then": { "Out": "<alias>", "Not Given": "<alias>" }}