Skip to content

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

  1. Create the guide

    alta new onboarding writes a guide that already passes alta 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) or tour (the camera visits the map).

    Terminal
    sh
    alta new onboarding my-guide
    Output
    text
    created my-guide/onboarding.json (onboarding, id my-guide)
    next: edit the texts, then `alta lint my-guide`, then `alta dev my-guide`
  2. Say hello in your voice

    A say beat 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.json
    json
    {
      "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."
        }
      ]
    }

    examples/axes/agent/onboarding.agent.json#/beats/0

  3. 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.install and core.launch with "auto": "app-open", the hosted way is core.arrive with "auto": "hosted". The guide plays only the beats of the way the player came, so one file serves both.

    my-guide/onboarding.json
    json
    { "id": "get", "kind": "quest", "quest": "core.get", "auto": "app-open" }

    examples/axes/agent/onboarding.agent.json#/beats/1

    my-guide/onboarding.json
    json
    {
      "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."
      }
    }

    examples/axes/agent/onboarding.agent.json#/beats/4

  4. Tell a quest in your words

    A quest beat plays a quest of the game. Under steps, give a line per step, keyed by the step's id. A step can ask for a value (input, kept under saves) and answer once done with sayDone, where {name} is the answer.

    my-guide/onboarding.json
    json
    {
      "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"
        }
      }
    }

    examples/axes/play/onboarding.play.json#/beats/5/steps/name

  5. Show the team, then point the way

    A tour beat 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, with track.

    my-guide/onboarding.json
    json
    {
      "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.json
    json
    {
      "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"
    }

    examples/axes/play/onboarding.play.json#/beats/7

  6. Check it

    alta lint checks your guide against the game's quests: a quest, a step or a track that does not exist is refused, and so is a beat that cannot be played the way the player came.

    Terminal
    sh
    alta lint my-guide
    Output
    text
    ok   my-guide/onboarding.json (onboarding)
    1 checked, 0 errors, 0 warnings

Try it

alta dev my-guide

Open 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 ​

DoAvoid
Both ways in: the local quests and core.arriveOnly the local way: a player of a hosted world gets no guide
A line per step, keyed by the step's real idA key that is not a step of the quest: refused
A track that can be played wherever the beat is playedFollowing 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 ​

What's next

Alta OS is open source (MIT).