# Create an onboarding variant

> Change the first session for one audience, with its own words: the same real quests, told differently.

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 `alta` command (see [Install the CLI](https://docs.altasystem.ai/start/install)).
- The [quickstart](https://docs.altasystem.ai/quickstart), to know what a quest and a step are.

### 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).

```sh [Terminal]
alta new onboarding my-guide
```

```text [Output]
created 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 `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.

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

### 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.

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

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

### 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.

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

### 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`.

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

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

### 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.

```sh [Terminal]
alta lint my-guide
```

```text [Output]
ok   my-guide/onboarding.json (onboarding)
1 checked, 0 errors, 0 warnings
```

**Try it:**

```sh
alta dev my-guide
```

Open the address it prints: your guide plays in every world, from the first line. Nothing runs 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](https://docs.altasystem.ai/reference/standards/onboarding): every beat and field.
- [Quests and proof](https://docs.altasystem.ai/concepts/quests-and-proof): why the guide plays real quests.
- [Errors](https://docs.altasystem.ai/reference/errors#standard-onboarding): each rule of `alta lint` for a guide.

**Next:**

- [Create a cinematic](https://docs.altasystem.ai/guides/cinematics/scene)
- [Create a universe](https://docs.altasystem.ai/guides/universes/create)
- [Onboarding](https://docs.altasystem.ai/reference/standards/onboarding)
