Skip to content

Daily and repeatable quests ​

You write quests that come back: a daily review, a weekly plan, an inbox sweep the player runs when they want. Each has a type, a rhythm, and a small reward; the machine proves each round, so a round is never won by a click.

Before you begin 15 minutes

  1. Choose the type

    type says how a quest lives. Without it, a quest is a campaign: done once.

    typeComes backReward
    campaignneverits reward, plus 10 per step
    instantnever; one step10 to 30
    dailyeach day or each week, at a local timeup to 60 a day for the whole branch
    repeatablewhen the player turns it in againup to 30

    An instant quest is one step and a small reward: a quick win.

    focus.game.json
    json
    {
      "id": "pin-note",
      "uid": "focus.pin-note",
      "act": 1,
      "giver": "daemon",
      "type": "instant",
      "title": {
        "en": "Pin your focus note",
        "fr": "Épingle ta note de concentration"
      },
      "reward": { "xp": 15 },
      "steps": [
        {
          "id": "pin",
          "kind": "check",
          "title": { "en": "Create the note", "fr": "Crée la note" },
          "check": {
            "type": "file",
            "path": "~/Documents/focus/README.md"
          }
        }
      ]
    }

    examples/quest-pack/focus.game.json#/branches/0/quests/5

  2. Reset it each day

    A daily quest needs reset: every is day or week, and at is the player's local time, HH:MM (04:00 when left out). At that time the quest starts again, empty. A day the player skips costs nothing: there is no streak and no penalty.

    At least one step must be proven by the machine: a check (not answer) or a mission.

    focus.game.json
    json
    {
      "id": "evening-review",
      "uid": "focus.evening-review",
      "act": 2,
      "giver": "daemon",
      "type": "daily",
      "reset": { "every": "day", "at": "18:00" },
      "title": { "en": "Evening review", "fr": "Bilan du soir" },
      "requires": ["focus.first-block"],
      "reward": { "xp": 20 },
      "steps": [
        {
          "id": "write",
          "kind": "check",
          "title": {
            "en": "Write three lines in today's note",
            "fr": "Écris trois lignes dans la note du jour"
          },
          "check": {
            "type": "file",
            "path": "~/Documents/focus/today.md"
          }
        }
      ]
    }

    examples/quest-pack/focus.game.json#/branches/0/quests/2

  3. Or each week

    A weekly quest is a daily with every: "week" and a weekday, from 1 (Monday) to 7 (Sunday). Here a mission proves it: the step is done when the agent comes back with the week's priorities.

    focus.game.json
    json
    {
      "id": "weekly-plan",
      "uid": "focus.weekly-plan",
      "act": 2,
      "giver": "architect",
      "type": "daily",
      "reset": { "every": "week", "at": "09:00", "weekday": 1 },
      "title": { "en": "Plan the week", "fr": "Prépare la semaine" },
      "reward": { "xp": 30 },
      "steps": [
        {
          "id": "ask",
          "kind": "mission",
          "title": {
            "en": "Ask for the week's three priorities",
            "fr": "Demande les trois priorités de la semaine"
          },
          "mission": {
            "brief": {
              "en": "Give me my three priorities for this week, one line each.",
              "fr": "Donne-moi mes trois priorités de la semaine, une ligne chacune."
            }
          }
        }
      ]
    }

    examples/quest-pack/focus.game.json#/branches/0/quests/3

  4. Let the player repeat it

    A repeatable quest is turned in by the player, then waits repeat.cooldownS seconds before the next round; repeat.max is the number of rounds in all, not per day. Its reward is 30 at most, and a step is proven by the machine.

    focus.game.json
    json
    {
      "id": "inbox-sweep",
      "uid": "focus.inbox-sweep",
      "act": 2,
      "giver": "operator",
      "type": "repeatable",
      "repeat": { "cooldownS": 3600, "max": 50 },
      "title": { "en": "Sweep the inbox", "fr": "Fais le tri dans la boîte" },
      "reward": { "xp": 15 },
      "steps": [
        {
          "id": "sweep",
          "kind": "mission",
          "title": {
            "en": "Send the operator to sort new mail",
            "fr": "Envoie l'opérateur trier le courrier"
          },
          "mission": {
            "brief": {
              "en": "Sort the unread mail: urgent, later, archive. Tell me the urgent ones.",
              "fr": "Trie le courrier non lu : urgent, plus tard, archive. Dis-moi les urgents."
            }
          }
        }
      ]
    }

    examples/quest-pack/focus.game.json#/branches/0/quests/4

  5. Give them a branch of their own

    The daily quests of one branch give 60 experience a day in all, and the main branch already uses its share. Put your daily quests in a branch of your own: a game file (alta.game) with its acts, skills and quests, which reaches players as a chart.

    focus.game.json
    json
    [
      { "id": 1, "title": { "en": "Make room", "fr": "Faire de la place" } },
      {
        "id": 2,
        "title": { "en": "Keep the rhythm", "fr": "Tenir le rythme" },
        "level": 2
      }
    ]

    examples/quest-pack/focus.game.json#/branches/0/acts

  6. Check it

    Check the file. A daily quest without reset, one without a machine proof, or a branch whose daily quests give more than 60 a day is refused: quest.daily-reset, quest.machine-proof, branch.daily-xp-cap. A repeatable quest above 30 is refused too: quest.repeatable-xp.

    Terminal
    sh
    alta lint examples/quest-pack/focus.game.json
    Output
    text
    ok   examples/quest-pack/focus.game.json (game)
    1 checked, 0 errors, 0 warnings

Try it

alta dev examples/chart-data/evening-pack

This chart adds a branch with a daily quest. Open the address it prints, press L, then the Evening routine tab: its daily quest says when it resets. The Today list gathers the daily quests of every branch.

Demo: nothing is written on your machine.

Pitfalls ​

DoAvoid
A step proven by the machine in every daily and repeatable questAn answer or a manual step as the only proof
A small reward that adds up over weeksA daily quest that gives more than a campaign step
reset.at in the player's local timeA time meant for one time zone
A cooldown that matches the task (an hour for an inbox)A repeatable the player can farm in a minute

Three more types are written by the game or by the player's tools, rarely by hand: repair (an entity of the map in error, proven by an entity check), system (a measure of the machine), and personal (a task of the owner). Their rules are on the quests page.

Go further ​

What's next

Alta OS is open source (MIT).