Builder guides

Scripted login events

Builder tools

When the harbour chain goes up, the people on the quay see who ordered it. Someone who returns to town tomorrow hears the bells and the rumours. A storyteller can give each audience its own account of the same night. Each player gets a personal copy which they can answer at login or open while playing.

Choose the audience

A junior administrator can use scriptedevent or sevent. Create a template for the witnesses. Replace <quay-room-id> with the numeric ID of the playable room. Use the actual beginning and end of the scene in UTC.

scriptedevent new The Harbour Chain – Witnesses
scriptedevent set template
scriptedevent set filter AlwaysTrue
scriptedevent set attendance room <quay-room-id> include between 2026-12-03T08:00:00Z and 2026-12-03T08:30:00Z

A character who was playing in that room for any part of the window counts, even if they watched quietly. A character who left at the start or arrived at the end is outside the window. Someone whose character was saved on the quay while they were logged out counts as absent. Room attendance establishes location during play. It cannot tell you whether someone saw through darkness, heard particular words, or took part in the action.

Immediately after a scene you can also use scriptedevent set attendance room <quay-room-id> include last 30 minutes. This takes the previous 30 real minutes at the time you set the rule. Read the UTC bounds back from the preview and use those same bounds for the catch-up template. scriptedevent set attendance clear removes the room condition. A character filter prog can further narrow either audience, for example to members of the town.

Attendance history covers up to 30 real days after the engine starts recording. An older time, or an interval with an uncertain departure following a crash, can leave attendance unknown. Check the recipient preview before distributing the event. A missing record from before tracking began cannot establish that someone missed the scene.

Write the witness questionnaire

Stay on the witness template and run these commands in order. Each question opens the text editor. Type the prompt and finish it with @ on its own line. Adding an answer opens two editors in succession. The first text is the player's option, and the second describes what follows after they choose it.

Command Example content
scriptedevent set addmulti “The watch asks what you remember of the closure. Will you make a statement?”
scriptedevent set multi 1 addanswer Option “Give the watch your account.” Result “The clerk opens the deposition book.”
scriptedevent set multi 1 addanswer Option “Keep what you saw to yourself.” Result “The clerk rules a line through the empty space.”
scriptedevent set addfree “What did you see or hear on the quay?”
scriptedevent set addmulti “May the clerk put your name to this account?” Add “Sign it” and “Leave it unsigned” using set multi 2 addanswer.
scriptedevent set branch 1 2 end A witness who declines finishes immediately. A witness who agrees continues to the written statement and then the signature.

scriptedevent show gives the overall sequence. set multi and set text edit a question within its own type. set move <question> <position> and set branch <question> <answer> <destination> use positions in the overall sequence. A destination can be a later question number, end, or default to continue in order. Set the route after arranging the questions. The event must still have a valid forward route after an edit.

An answer filter has the signature Boolean(Character). Use scriptedevent set multi 1 answer 1 filter <prog> if, for example, only sworn harbour officers may offer official testimony. Keep at least one unconditional option for ordinary witnesses. An optional consequence has the signature Void(Character) and attaches with scriptedevent set multi 1 answer 1 choice <prog>. The before/after text already conveys the narrative result. Use a consequence when the world itself should change. Keep filters observational because the engine evaluates them when previewing and when checking a player's choice. FutureProg for builders

Preview and distribute both versions

  1. While editing the witness template, use scriptedevent preview as <character> to inspect that person's choices and routes. Previewing does not submit an answer or run its on-choice consequence.
  2. Use scriptedevent set preview to inspect the recipients. Check a known witness, a known absentee, and anyone already assigned this template. To assign to the eligible group, run scriptedevent set autoassign and review the confirmation. For one eligible PC use scriptedevent assign <character-id>.
  3. Create a second template called News of the Harbour Chain. Set its filter and use scriptedevent set attendance room <quay-room-id> exclude between <same-start-UTC> and <same-end-UTC>. Add the question “Who do you turn to when you hear the harbour has closed?” Give it an answer about the watch and another about the boatmen. Describe what each contact knows. Absentees now make a meaningful choice without being asked to remember an event they never attended.
  4. Preview the catch-up recipients and distribute that template separately. For a delayed epilogue, set scriptedevent set earliest <date> before distributing it. Review its displayed due time.

Assignment copies the questionnaire. Edit the template to change what future recipients receive. Use scriptedevent list assigned and scriptedevent show <id> to inspect an individual copy. A repeated assignment of the same template to the same character is skipped, including after they finish it. Copies created before the attendance upgrade have no recorded source template. Check old assignments before distributing an existing campaign again. Use a new template for a separate episode.

Give new characters an event after chargen

On the News of the Harbour Chain template, use sevent set chargen on to give later arrivals the catch-up story. The engine evaluates each newly approved player character with their final chargen choices. Someone who matches the character filter and the room exclusion receives one personal copy. The original 30-day history limit still applies. For a lasting town introduction, use a separate template with a town-membership filter and no historical room condition.

For an introduction everyone should receive, enable chargen on a completed template with no audience restrictions. A due event appears at first login. A future-dated event waits for its configured earliest time. sevent show displays the setting. sevent set chargen off stops future assignments. Existing characters can receive the same template through sevent set autoassign; turning chargen on by itself only affects future approvals. Cloned templates start with chargen assignment off.

If the harbour chain comes down on 10 December at 18:00 in your account’s time zone, use sevent set chargen on until 2026-12-10 18:00. A character approved at 17:59 receives the catch-up and can finish it on a later login. A character approved at 18:00 or afterwards skips it, even if they submitted their application earlier. Staff can still assign the template manually.

For a two-week campaign, use sevent set chargen on until 14 days. The deadline is fixed when you enter the command. sevent show displays the cutoff in your time zone and marks it expired once it passes. Use plain sevent set chargen on to return to open-ended assignment.

Take the event as a player

A player in the world receives a short notice when a ready event is assigned. They can keep playing. For a future-dated event, the notice gives its availability time and a player who is still online also receives a notice when it becomes due. At or after the earliest time, events lists what they can answer, events <number> opens the listed event, and events id <id> selects a particular assignment. Due events also appear during login.

Choose the number beside the answer you want. Read its result and type done. For a written response, finish with @ on its own line. At a choice or result, use back to leave. In the text editor, use *cancel to discard the current draft. Previously submitted answers stay with the character. Reopening it resumes the questionnaire. Finishing from the world returns control to your character in place. The completed questions and their answers appear together in a character journal entry.

Recover an interrupted consequence

The engine records a choice before starting its on-choice prog. If the process stops mid-prog, restarting that prog could apply a payment or another world change twice. Inspect the assigned copy with scriptedevent show <id> and check the affected world state. Correct any incomplete effect through the owning system. Then edit the assigned copy and use scriptedevent set acknowledge <question-number> <reason> to record what you verified. The player can continue from the recorded answer.