← Projects

Quest tracker

Track named objectives, calculate honest progress, and make repeated completion requests harmless. Keep the original quest available for comparison.

Runs here · Luau

Loading project… · Milestone 1 of 3

Calculate objective progress

progress(objectives) returns the fraction complete. An empty quest returns zero, not a divide-by-zero result.

Acceptance criteria

  • Completed objectives are counted once.
  • Empty input is handled before division.
Project milestones
  1. Available to preview
  2. Available to preview
  3. Available to preview
Prerequisites
Optional extension

Support prerequisites between objectives and report why an otherwise known objective cannot be completed yet.

Project notes and references

This module does not verify that a player performed an in-world task.

Server-owned objectives, durable reward idempotency, migrations and data failure handling remain production-specific.

Luau library ↗

Client-server boundary ↗

Luau keyword highlighting · Ctrl/⌘ + Enter: Run · Esc: leave editor

Run experiment shows actual behavior. Check milestone uses the acceptance criteria and records trusted progress.

Output

Output will appear here.

Visible examples

Half complete · { { { complete = true }, { complete = false } } } → 0.5

Empty · { {} } → 0

Sharing is an explicit choice in your portfolio editor. Label exported work “Learning project”; existing publication rules apply.