Inside Give the Spurs
What this page is for
Section titled “What this page is for”Give the Spurs makes a knight. You hold a night of vigil for someone of your house, give them the accolade before the hall, and they swear an oath to you. It has 71 nodes and is in the category Household. It does two things worth studying. It gives and takes back roles with Set Role. And it sends a signal, the asset Spurs Given, which this page follows to see who hears it.
When you come here
Section titled “When you come here”- You want to see Set Role used for a personal role and for a court role.
- You want to see a Send Signal node in a real scheme.
- You want to know whether this signal changes anything in the demo. (It does not; read on.)
Who may be knighted
Section titled “Who may be knighted”The scheme has seven requirements, and each hides the scheme when it is not met. The target must be alive, 16 or older, not already a Knight, and of your house or your ward (a Guardian of tie). The target must also hold none of the roles Bishop, Abbot or High Lumen. The two requirement sets Schemer Is Grown and Rules a Realm are used too. See Requirements.
The eve, the vigil and the hall
Section titled “The eve, the vigil and the hall”The scheme opens in groups, named in the draft: The eve, The vigil, What the vigil heard, A foe in the hall, The accolade and How it ends. It reads the room first. It looks for the holder of the role Hearth-Lumen in your clan, checks whether the target is your ward, finds the person named in the target’s variable True Father, and picks a Blood Foe of the target. Each find sets a flag: HasLumen, Ward, HasFather and HasFoe.
Then a dialogue, The eve of the spurs, offers four ways:
- keep the night vigil, which is a roll of 75%, or 35% for a target with the trait Idle;
- a bout in the yard, a roll of 50% with a bonus from the target’s Arms;
- skip the vigil and knight them at the feast, at the cost of 5 of your Esteem;
- not this year, which ends the scheme.
The later groups can ask whether to keep a secret about a father, and what to do with a foe. They are in the draft but not drawn here.
The accolade and the roles
Section titled “The accolade and the roles”- Play Sound goes to Set Role.
- Set Role goes to Set Role.
- Set Role, output Not Given, goes to Set Variable.
- Set Role goes to Set Variable.
- Set Role, output Not Given, goes to Show Dialogue.
- Set Variable goes to Show Dialogue.
- Show Dialogue, output Swear to {conspirator.Name}, sword and life., goes to Send Signal.
- Show Dialogue, output Swear, but name the lord of your own house first., goes to Send Signal.
- Send Signal goes to Add Memory.
- Add Memory goes to Set Variable.
- Set Variable goes to Set Variable.
- Set Variable goes to Succeed Scheme.
A sound plays for everyone. Then Set Role gives the target the role Knight. In the database, Knight is a personal role: it belongs to the actor. If that cannot be given, the scheme sets Outcome to notgiven and fails.
A second Set Role gives the court role Household Knight, a seat in your clan. The setting If the seat is taken is Nothing changes, so if every seat is full, nobody is pushed out; the output Not Given runs and the scheme goes on to the oath. If the seat was given, Housed is set to true. See Set Role.
The target now answers a dialogue, The oath:
| Answer | When it is open | What it does |
|---|---|---|
Swear to {conspirator.Name}, sword and life. |
Always | Sends the signal. The target remembers Gave me the spurs about you, gains 15 Fealty, and Outcome is sworn. |
| Swear, but name the lord of your own house first. | Only when Ward is true |
Sends the signal, a weaker memory (Strength 50), and Outcome is own. |
| Take the spurs, and swear to no one. | Always | You remember Mocked me. A Set Role with no role takes the Knight role back, and takes the Household Knight seat too if Housed is true. Outcome is unsworn and the scheme fails. |
So the scheme gives roles and takes them back in the same scheme. In the database the memory Gave me the spurs adds 30 to opinion and lasts 2,160 days.
The signal
Section titled “The signal”The two Send Signal nodes are in the figure above.
Two nodes send Spurs Given: the first two answers above. The asset is the file Intrigues Demo/Signals/Spurs Given.asset. Its own note field is empty. Open it in the Inspector to see two lists: SENT BY, with the Send Signal nodes, and LISTENERS IN OPEN SCENES. See Signals, which draws this same dialogue.
In the demo as it ships, nothing listens. No Signal Receiver component stands in the four scenes or the prefabs, no object names Spurs Given, and the demo’s code never calls IM.onSignalReceive. The signal is sent and no scene changes. That makes it a hook you can use. To make the scene react, put a Signal Receiver on an object, add a reaction to Spurs Given, and run an action in it. The concept page shows how.
The demo’s audio does react to the roles themselves: DemoAudio listens to IM.onRoleInherited and plays a knighting sound when an heir of the local player’s clan takes Knight or Household Knight. That is a separate path from the signal. The product’s code raises that event only when a role passes on by succession, not by Set Role, so this scheme’s knighting does not play it (read in Succession.cs and Actor.Roles.cs, not tested).
How it ends
Section titled “How it ends”On success, the scheme writes a line in your clan’s chronicle that you gave the target the spurs, and tells a player A knight is made. On failure, a failure sound plays and the player reads No spurs.
How it connects
Section titled “How it connects”Signals teaches the three parts. The nodes: Set Role, Send Signal and Add Memory. The next page is The demo’s own code.