English
Create an onboarding variant
You write the guide that walks a new player from "hello" to their first real quest, in the voice of one audience: a long tale for players, three lines and a clock for people who want an agent now. The quests never change; your guide changes what is said, in which order, and which quest comes next.
Before you begin 20 minutes
- The
altacommand (see Install the CLI). - The quickstart, to know what a quest and a step are.
Create the guide
alta new onboardingwrites a guide that already passesalta lint. A guide is a list of beats played in order. A beat is one of three kinds:say(the narrator speaks),quest(a quest of the game, played inside the guide) ortour(the camera visits the map).Terminalshalta new onboarding my-guideOutputtextcreated my-guide/onboarding.json (onboarding, id my-guide) next: edit the texts, then `alta lint my-guide`, then `alta dev my-guide`Say hello in your voice
A
saybeat holds one line or a list of lines, each in English and French. This one opens a short guide for people in a hurry.my-guide/onboarding.jsonjson{ "id": "hi", "kind": "say", "say": [ { "en": "Hi. I'm your agent, and I already run.", "fr": "Salut. Je suis ton agent, et je tourne déjà." }, { "en": "Three steps and I can answer you.", "fr": "Trois étapes et je peux te répondre." }, { "en": "The clock is running. Let's go.", "fr": "Le chrono tourne. On y va." } ] }Keep both ways in
A player arrives in one of two ways: they download Alta on their machine, or they open a world hosted for them. The game proves each way by itself. Write both: the local way is the quests
core.get,core.installandcore.launchwith"auto": "app-open", the hosted way iscore.arrivewith"auto": "hosted". The guide plays only the beats of the way the player came, so one file serves both.my-guide/onboarding.jsonjson{ "id": "get", "kind": "quest", "quest": "core.get", "auto": "app-open" }examples/axes/agent/onboarding.agent.json#/beats/1
my-guide/onboarding.jsonjson{ "id": "arrive", "kind": "quest", "quest": "core.arrive", "auto": "hosted", "say": { "en": "Your hosted world just lit up. The proof: you're reading me.", "fr": "Ton monde hébergé vient de s'allumer. La preuve : tu me lis." } }Tell a quest in your words
A
questbeat plays a quest of the game. Understeps, give a line per step, keyed by the step'sid. A step can ask for a value (input, kept undersaves) and answer once done withsayDone, where{name}is the answer.my-guide/onboarding.jsonjson{ "say": { "en": "What name will the Wyrm carry?", "fr": "Quel nom portera le Wyrm ?" }, "sayDone": { "en": "{name}… The Wyrm repeats it, and its eyes open.", "fr": "{name}… Le Wyrm le répète, et ses yeux s'ouvrent." }, "input": { "saves": "answers.wake.name", "placeholder": { "en": "A name of power", "fr": "Un nom de pouvoir" } } }Show the team, then point the way
A
tourbeat walks the camera from one thing to the next (walk); each stop can tick a step of its quest (tick). The last beat names the quest the player follows next, withtrack.my-guide/onboarding.jsonjson{ "walk": "agent:architect", "say": { "en": "The Barkfolk Mason raises the halls you dream of.", "fr": "Le Maçon d'Écorce élève les halles dont tu rêves." }, "tick": "architect-builds-what" }examples/axes/play/onboarding.play.json#/beats/6/stops/0
my-guide/onboarding.jsonjson{ "id": "onward", "kind": "say", "say": { "en": "Your first deed awaits: give the Wyrm the key to your letters.", "fr": "Ton premier exploit t'attend : confie au Wyrm la clé de tes lettres." }, "track": "core.mail" }Check it
alta lintchecks your guide against the game's quests: a quest, a step or atrackthat does not exist is refused, and so is a beat that cannot be played the way the player came.Terminalshalta lint my-guideOutputtextok my-guide/onboarding.json (onboarding) 1 checked, 0 errors, 0 warnings
Try it
alta dev my-guideOpen the address it prints: your guide plays in every world, from the first line. Nothing runs on your machine.
Demo: nothing is written on your machine.
Pitfalls
| Do | Avoid |
|---|---|
Both ways in: the local quests and core.arrive | Only the local way: a player of a hosted world gets no guide |
A line per step, keyed by the step's real id | A key that is not a step of the quest: refused |
A track that can be played wherever the beat is played | Following a quest that needs a machine from a hosted beat |
"schema": "alta.onboarding/0.2" | The older version: it has no auto |
Known limits, said plainly: the game does not pick a guide by audience yet. alta dev plays your file as the guide of every world, which is how you try a variant today. The check does not see an empty line or a walk to nothing: read your guide again. The titles of the quests a guide plays keep their own words.
Go further
- Onboarding: every beat and field.
- Quests and proof: why the guide plays real quests.
- Errors: each rule of
alta lintfor a guide.