Moodle Lesson activity for branching scenarios

Plan branching, scenario-based training with the core Moodle Lesson activity, including content pages, question pages, jumps, scoring and the point where H5P branching content is the better choice.

On this page

How the Moodle Lesson activity supports branching scenario training

The Moodle Lesson activity lets a training team build branching scenarios in which each learner's answer decides which page comes next, so decisions carry visible consequences inside a course. Teams implement it when they need short, self-contained decision practice (customer conversations, safety escalations, compliance judgment calls) that can be delivered without extra software on a self-hosted Moodle. The activity is built from a small set of page types: content pages that present the situation, question pages (multiple choice, true or false, short answer, numeric and matching, among others) that capture the decision, and end-of-lesson or end-of-branch pages that close a path. Each question page can carry jumps to other pages, and jumps are how a path is defined. Teams should confirm the exact page types and jump options available in the Moodle version they run, since these have changed across releases.

Most of the design effort sits in the scenario map, not in the Moodle settings. Before anyone opens the activity editor, the team needs a written map of every decision point, every branch, the consequence shown on each branch, and the points where paths rejoin or end. Settings such as the maximum number of attempts, the review options, the grade and the time limit are quick to change. The map determines how many pages the lesson needs, how much content each branch must write and test, and whether the path logic stays manageable. A map that grows past what one lesson can hold is usually a sign that the scenario should be split into several linked lessons or moved into a different tool.

What the core Lesson activity does for scenario design

The Lesson activity is Moodle's built-in tool for branching pathways: a sequence of pages where a learner's answers decide where they go next. The cards below cover the building blocks and controls you will design around, and each should be checked against the exact options in your Moodle version before you commit to a scenario structure.

Content pages as scenario narrative

Content pages carry the story, context and decision setup that learners read before a choice. Use them to present a situation, a stakeholder message or a short piece of evidence, then keep each page focused on one decision point. Long narrative pages make it harder to see which choice is being tested, so plan the storyboard before entering pages. Confirm how your version renders images, media and embedded content on content pages.

Question pages with branch jumps

Question pages are where a learner's answer sets the next page. Each answer option can be linked to a jump, so a wrong choice can route to a consequence page while a correct one moves the scenario forward. Map every jump on paper first, because unlinked answers or loops back to earlier pages are easy to create and hard to spot in the editor. Confirm which question types your version supports as branching points.

Special jumps for navigation control

Special destinations such as end of lesson, next page and previous page let you close a branch, continue a linear sequence or return learners to a hub page. Use an explicit end-of-lesson destination on every terminal path so no learner falls through to an unintended page. Check the exact jump labels in your version, since they affect how you draft the storyboard and test edge cases.

Grading and scoring options

The Lesson activity can award points for question answers and report an overall grade, but scoring a branching path is different from scoring a linear quiz. Decide early whether the grade reflects correct decisions, path taken or completion, and confirm how your version calculates the final grade when learners follow different routes. Mismatched expectations here are a common source of grade disputes in compliance training.

Review and retake controls

Settings for retakes, review of attempts and maximum attempts decide whether learners can see the consequence of each path after finishing. For regulated training, decide whether learners may revisit the scenario and what they can see, then confirm the defaults in your version. These choices shape both learning value and how easily the activity can be shared or copied.

Dependencies and access restrictions

Lesson activities can be combined with activity completion, access restrictions and time limits, which controls who starts a scenario and when. Use these to sequence scenarios after prerequisite content or to restrict assessments to enrolled cohorts. Test each restriction with a learner account, since a rule that blocks a branch can look like a broken scenario to the learner.

Which Lesson settings to decide before building

This table compares the Lesson settings that shape scoring, retakes, feedback and reporting, and shows which option suits a compliance-driven or onboarding scenario. Read each row as a decision to make with the course owner and the reporting team before the first page is built. The main takeaway is that grading mode and attempt rules are hard to change once learners have started, so settle them first.

SettingOptions and effectWhen it fits compliance or onboardingWhat it changes for reporting
Graded or practice-onlyGraded lessons write a grade to the gradebook. Practice-only lessons show feedback without a recorded result.Graded suits mandatory policy or safety scenarios that must leave evidence. Practice-only suits optional onboarding walkthroughs where learners explore consequences.Graded results appear in gradebook and completion reports. Practice-only attempts may not appear in grade exports, so confirm what auditors will ask to see.
Scoring methodLesson can score by question points, or by the number of correct answers in the branch path. Confirm which methods your Moodle version offers.Question-point scoring suits knowledge checks with clear right answers. Path-based scoring suits scenarios where the wrong decision matters more than the number of questions.Changing the method later makes historic grades hard to compare. Document the method in the course description so reviewers can interpret scores.
Maximum gradeSets the top score the lesson can contribute to the gradebook. It works with the chosen scoring method.A pass mark tied to a policy requirement fits compliance training. Lower maximums suit low-stakes onboarding where completion matters more than the score.Maximum grade drives percentages in course totals and weights. A change after learners attempt the lesson alters reports for finished work.
Maximum attempts and retakesControls how many times a learner may attempt the lesson, and whether a retake starts fresh or keeps the last result.Limited attempts fit assessed compliance scenarios. Unlimited retakes suit onboarding practice where learners should rehearse different branches.Multiple attempts create several records per learner. Decide which attempt counts toward completion and state the rule in the reporting brief.
Review of answersAllows learners to review their answers and feedback after finishing, depending on the review setting.Review after completion suits onboarding that teaches the reason for each consequence. Hidden review suits assessed scenarios where the answer key must stay protected.Review settings do not change stored results, but they decide what learners can see afterwards. Align them with the question bank security rules.
Progress barShows learners how far through the lesson they are, based on pages viewed or questions answered.A progress bar helps long onboarding scenarios feel manageable. In assessed lessons it can reveal how many branches exist, so many teams hide it.Progress display does not alter grades. Confirm with the course owner whether a visible progress bar affects how learners approach the test.
Time limit and due dateSets a time window for the lesson and a deadline for completion, with optional late handling depending on configuration.Time limits fit timed compliance attestations. Open-ended due dates suit onboarding modules that run alongside other work.Time limits and due dates appear in activity completion and overdue reports. Confirm how late attempts are recorded before you publish.
Completion conditionsDefines what counts as finishing the lesson, such as reaching the end page or achieving a grade.Completion tied to reaching an end page suits practice. Completion tied to a passing grade suits assessed policy training that needs evidence.Completion rules feed course completion and compliance dashboards. Test each ending path, since an unused branch can leave learners marked incomplete.

How a branching lesson moves from scenario map to live course

This sequence turns a training objective into a tested Lesson activity that learners can work through safely, with each step producing a reviewable artifact. The order matters because jump logic and scoring are hard to fix once learners have started a live course.

  1. Write the scenario map and objectives

    Subject matter experts and the instructional designer agree the learning objectives, the decision points learners must face, and the consequences of each choice, drawn on paper or in a diagram before anyone opens Moodle. The output is an approved scenario map that names every node, the decision it asks for and the learning objective it serves. The step is done when the SMEs and the course owner have signed off the map and no node is left without a purpose.

  2. Define branch outcomes and scoring rules

    Decide which endings count as success, partial success or failure, how many points each path earns, and whether learners can retry a branch or must restart the lesson. Record these rules in a scoring sheet that also states the maximum grade and the pass threshold, since the Lesson activity grade depends on them. The output is a scoring specification that the course owner and assessment lead approve, with each ending mapped to one outcome label.

  3. Build content and question pages in a test course

    Create the Lesson activity in a separate test course, not the live one, and add content pages and question pages in the order the scenario map defines. Each question page gets its answer options, the jump each answer leads to, and the points it awards, and each ending page is labeled with its outcome. The step is complete when every page in the map exists in the test course and the page titles match the map node IDs.

  4. Verify every jump path

    Walk every route from the first page to every ending, using a test account for each path and recording the page sequence, the points shown and the ending reached. Check for dead ends, loops that never reach an ending, and jumps that point to the wrong page after pages are moved or renamed. The output is a path test log listing each route against its expected result, and the step is done only when every route in the log matches the scenario map.

  5. Configure grading and reporting

    Set the Lesson grade, pass threshold, attempt limits and review options to match the scoring specification, then confirm that the gradebook shows the expected score for each path in the test log. Check the reports that managers and assessors will read, including the attempt and answer views, and confirm they show the branch a learner took. The output is a configured Lesson with a grade check record, and the step closes when a test learner's gradebook entry matches the logged result.

  6. Pilot with a learner group

    Run the lesson with a small group of representative learners in a copy of the live course, collecting completion times, confusing wording reports and any paths that learners took that the test log did not cover. Revise pages or jumps based on the findings and rerun the affected paths through the test log. The pilot is finished when the course owner accepts the revised lesson and the path log has been updated to match the final version, which then becomes the baseline for the live course.

  7. Publish and freeze the approved version

    Copy the approved Lesson into the live course, confirm that the restored activity keeps its jumps, grades and settings, and rerun a sample of the path test log against the live copy. Record who approved the version and the date, and lock further edits through a change process so that later revisions go back through the path test. The output is a live Lesson with an approval record, and the step is done when the spot checks on the live copy match the baseline log.

Designing jumps and paths that stay maintainable

Every branch in a Lesson is a jump, so the maintainability of a scenario depends on how those jumps are defined and recorded. Each content or question page points to the next page through its jump settings, and a path is simply the chain of jumps a learner follows. Every path needs a defined end state: either an end-of-lesson jump or a jump to a page that closes the scenario. Without one, a learner can reach a page that leads nowhere, or loop back into earlier content with no clear exit. As scenarios grow, dead ends and unreachable pages appear quietly. A page is edited, a jump target is renamed or a branch is added late, and nothing in the course flags the break until a learner hits it.

Naming is the cheapest control you have. Give pages names that state their role in the scenario, such as the scenario number, the decision point and the outcome, so that jump targets in the editor can be read without opening each page. Keep a written map of the lesson alongside the course, either as a document in your course-build workspace or as a table kept with the lesson, listing each page, its jumps, its end state and its owner. Update the map in the same change as the lesson, because a map that drifts from the course is worse than none. Confirm with your Moodle administrator where the team's shared documentation lives and who may edit it.

Test every path before release, not only the path the author built. Create a test user with no prior attempts, or use a course role that mirrors a learner, and walk each branch from start to end-of-lesson, recording which page each answer sends the learner to. Compare what you observe against the map, and check that every page appears on at least one path. Repeat the walk after any change, because a single edited jump can orphan pages several steps away. Confirm the behavior of the lesson's review and retake settings with the test user as well, since they change what a returning learner sees. Treat any page you cannot reach from the test as a defect until you have explained it.

What drives the effort of a branching scenario build

This table lists the main factors that change how long a Lesson-based branching scenario takes to build, test and sign off, and how to keep each one under control. Read it before estimating, because the biggest gains usually come from limiting branch depth and reusing structure rather than from faster authoring. Ask any partner to price the scope against these drivers so the quote reflects the actual number of pages, paths and reviewers.

DriverWhy it changes effortHow to keep it down
Number of branches and endingsEach extra branch adds pages, jumps and test paths, and every ending needs its own check that the learner reaches it correctly.Limit depth to a few decision points, merge paths that converge, and fix the number of endings in the design before authoring starts.
Media and feedback textEvery content page with images, video or long feedback needs sourcing, editing, accessibility checks and layout work across each path.Use short feedback that points back to the scenario, reuse approved images and clips, and keep long explanations in a single shared page.
Scoring logic complexityQuestion pages, custom scoring and grade-based jumps interact, so each path needs checking against the expected score and the gradebook.Use one scoring model for the whole lesson, such as a single pass mark, and avoid per-branch point values unless reporting needs them.
Reporting requirementsReports that need per-decision data beyond the standard Lesson grade and attempt views require custom reports, queries or plugins.Agree the required report fields before build, and use standard grade and completion reports where they meet the need.
LocalizationEvery text page, question and feedback message is translated and checked separately, and jump logic must survive the translation.Freeze the English content before translation, keep branch logic in shared pages, and budget review time for each language.
Reviewers for subject-matter sign-offEach reviewer reads paths in a different order, so more reviewers mean more rounds of comments and rework on the same pages.Name one approving owner per scenario, send reviewers a path map rather than the full lesson, and set a single consolidated review round.
Template reuseBuilding each scenario from scratch repeats layout, navigation and scoring decisions that could be settled once.Copy a tested Lesson with the same structure, page types and scoring for new scenarios, then change only content and branch text. Ask whether the partner will reuse a template.
Testing across pathsEach path, including invalid answers and back-navigation, needs a learner-role test, and missed jumps often appear only in one path.Generate a path list from the design, test endings first, and confirm the test plan is part of the agreed scope in writing.

When Lesson or H5P branching content is the better choice

Choose the core Lesson activity when the training needs scores and reporting that live inside Moodle's gradebook and activity reports. Lesson can record branch-level question outcomes, apply a grade from the score, and let learners retake the lesson with reports showing attempts. Teams that must show a compliance owner exactly which path a learner took, and which questions they missed, usually benefit from this native record. The trade-off is that the scenario logic is built page by page inside Moodle, so the design lives in the course rather than in a reusable package.

  • Gradebook integration: Lesson grades flow into the course gradebook with the same weighting tools used for other activities.
  • Path-level reporting: Instructors can review which pages were visited and which answers were chosen during an attempt.
  • Simple jump logic: Each answer can send learners to a named page, which suits decision trees with a moderate number of branches.
  • Minimal dependencies: No external authoring tool or package upload is needed, so the content stays with the course backup.
  • Limited visual richness: Lesson pages are text and simple question formats, so complex drag, timing or media interactions need another tool.

Before committing, confirm with the course design lead which grade and completion rules the audit team expects, and test one full path against the report output.

Questions buyers ask about Moodle Lesson branching scenarios

How much does a branching scenario build in Moodle Lesson cost?

No supplied figure covers this, so the price depends on the written scope, which is what a quote follows from. The main cost drivers are the number of decision points and endings, how many content and question pages each branch needs, whether media is produced from scratch, and how many scenarios reuse the same design. Ask for the quote to separate design and scripting, Moodle configuration, media production, testing and any post-launch changes. Design work is usually a one-time cost, while revisions after launch recur whenever the content changes. DeployOpen does not publish a price list, and fixed-scope engagements have their scope, deliverables and timeline agreed in writing before work starts.

How long does it take to plan and test a branching Lesson?

The duration depends on the number of branches, the depth of the scenario and how many review rounds the subject-matter experts need. Planning covers the storyline, a branch map, learning objectives and the scoring rules. Testing needs every path to be walked end to end, including dead ends, jumps back into the story and the final grade for each route. Ask for a timeline in the written scope that lists these phases separately, with the review cycles and the sign-off points for content owners. No supplied fact gives a typical duration, so treat any figure you see elsewhere as unverified until it matches your own scenario.

What does the build need from subject-matter experts and Moodle administrators?

Subject-matter experts own the accuracy of the scenario, the consequences of each choice and the feedback learners receive. Their time is most needed during storyline design and the review of each branch, so agree who signs off content and how long reviews take before work starts. Moodle administrators need to provide a test course, the Lesson activity settings that the institution permits, enrolment for test accounts, and a decision on where the finished activity lives. They also own the gradebook category the Lesson feeds, and they approve any change to the site configuration. Confirm these named people and their availability during scoping.

Can our internal team build a branching Lesson without a partner?

Yes, a trained Moodle course designer can build a branching Lesson with the core activity, and many teams do. The work is mostly careful planning and repetitive page setup, so the difficulty grows with the number of branches and the need for consistent scoring. A partner is most useful when the scenario is large, when the design must be repeated across many courses, or when internal staff lack time to test every path. Check whether your team has the Lesson editing skills, a reviewer for the logic and capacity for testing before you decide. Your internal team can also take over once the design is documented.

How do Lesson grades flow into the gradebook?

A Lesson reports a grade to the gradebook only when it is configured to grade, and the grade reflects the way the Lesson's scoring is set up. Confirm in your Moodle version which grading option the Lesson uses, how the maximum grade is set and whether attempts count toward the final grade. Branches with different point values need a consistent scoring rule, or learners on different routes will not be comparable. Test the gradebook result for every ending, and check how the grade appears in the course report before learners start. Your Moodle administrator should confirm the grade category and any weighting in the gradebook setup.

How do we version a branching scenario after launch?

Treat each published scenario as a versioned asset. Keep the approved design document and a master copy of the Lesson outside the live course, so changes are made to a copy and tested before replacement. Learners who have started an attempt may be affected by edits to pages or jumps, so schedule updates between cohorts and record which version each cohort took. Note that the Lesson's per-learner attempt data stays with the activity, so changing it can alter reports. Agree a change log, an owner for approvals and a retest of every path after each revision, and confirm how your Moodle backups capture these changes.

When is H5P branching content a better choice than a Lesson?

Choose H5P branching content when learners mostly need interactive media, reusable templates or a self-contained package, and when the scenario is shared across courses through the content bank. Choose the core Lesson when you need Moodle-native jumps, question pages graded in the gradebook and direct control over page flow inside a course. The Lesson is easier to tie to standard course reporting, while H5P suits richer interactions and reuse. Before deciding, test both with one branch and confirm which grading and reporting the training owner needs. The H5P and Lesson topics on this site cover the trade-offs in more detail.

How learner decisions move through a Lesson scenario

This illustrative example starts when a learner opens a content page that sets up a workplace situation. The learner then reaches a question page whose answer choices each carry a jump, so the lesson routes them to one of several branch pages rather than a single next page. Each path ends at an ending page that records a score. Before you publish, check that every answer has a jump, that every path reaches an ending, and that scores flow into the gradebook and reports as you intended.

Illustrative flow of one learner path through a branching Lesson.

How Lesson scores connect to the rest of Moodle

A Lesson activity produces grades, completion state and attempt records that other parts of Moodle read. Whether a branching scenario counts toward a course depends on how its grade item, completion rules and enrolments are wired together, so check each link before learners start.

Gradebook item and grade calculation

A Lesson reports a single grade to the gradebook, based on the scoring method chosen in the activity settings. Decide early whether the grade reflects the best attempt, the average or the last attempt, and confirm the maximum grade matches the weight the course category expects. If the scenario is one of several graded items, check how the category aggregates it, because a branching path that scores fewer points can quietly lower the course total for learners who took a shorter route.

Activity completion conditions

Set completion for the Lesson on the basis of a required grade or on viewing the activity, and test each condition with a learner account. Completion is what triggers later activities and certificates, so a grade threshold that a learner can miss on the only path that reaches the end will block the course. Confirm whether learners who reach an end page without passing are marked complete or incomplete.

Course completion criteria

Course completion can require the Lesson's activity completion alongside other activities, dates or manual marking. Where a regulator or sponsor expects evidence that a scenario was finished, record which criteria define completion and keep the settings under change control. Review the course completion report after a pilot to confirm that learners who finished the scenario appear in the expected state.

Enrolment and identity sync

Learners reach the lesson only if they hold an enrolment in the course, and those enrolments usually come from an identity provider, a directory or an HR feed. Confirm which authentication and enrolment plugins create and remove memberships for the cohort that will take the scenario, and test a leaver case so that people who should no longer see the scenario lose access. Mismatched identifiers between systems are a common cause of learners who cannot find their course.

Course reports and gradebook exports

The course reports, the grader report and the activity completion report show which learners have attempted the Lesson and what they scored. Check that the columns and filters show the branch-level detail your reviewers need, since the standard reports show only the final grade. Confirm with your compliance or training owner which exports they require and how often they need them.

Downstream HR and LMS reporting

Completion and grade data often flow to HR systems, learning record stores or reporting warehouses through web services, scheduled exports or custom reports. Decide which fields those consumers need, such as user identifier, course, completion date and grade, and whether they require the attempt history or only the final result. Confirm the data retention and access rules for these exports with your data owner before building them.

Verifying branches before learners see them

Verification is the main quality gate for branching content, and it should be planned as a deliverable with its own sign-off rather than left to a final click-through. Start with a path matrix: a spreadsheet that lists every route from the first page to every ending, with one row per route showing the pages visited, the answers that caused each jump, the points or grade awarded, and the expected ending. Build it from the jump design, not from memory of the storyboard, because the matrix is what exposes unreachable pages, dead ends, loops that never terminate and endings that no route can reach. Where a page jumps to a page that is not in the lesson, or where a jump depends on a question that was later moved, the matrix will show the gap as an empty cell.

Next, create one test learner account per expected outcome and walk each route as that learner, using the same role and group settings your real cohort will have. Check that the Lesson's time limit, retake settings, dependency rules and access restrictions do not block a valid path, and that the grade shown in the gradebook matches the value you calculated from the scoring rules. Confirm the activity's completion and grade-to-pass settings against the outcome, since a learner who reaches a good ending on a page that does not count toward the grade is a common defect. Keep the matrix, the test account list and a dated record of each walk-through, including the Moodle version and the lesson's last-modified time, so you can show which build was tested.

Finally, have the subject-matter owner review every feedback and remediation text against the matrix, because a correct jump can still send a learner the wrong message. Ask them to confirm that each ending's wording, each wrong-answer explanation and each branch reached through a mistake reflects current policy. Record their approval against the matrix version, and repeat the walk-through after any change to pages, jumps or scoring. Ask your implementation partner or internal team to state in the quote which of these steps is included, who signs off each one and what evidence is handed over at the end.

How DeployOpen scopes and delivers Moodle module implementations

DeployOpen plans, builds, documents and supports Moodle Lesson branching in infrastructure you control, starting from a written scope that names the scenarios, pages, jumps and scoring rules. Engagements are fixed-scope, so the decisions about when Lesson is the right tool and when H5P branching fits better are made and recorded before build work starts.

How we scope

  • Map each branching scenario to its learning objectives, decision points and the outcomes a reviewer must be able to verify.
  • Agree in writing which Lesson features are in scope, including content pages, question pages, jumps, scoring and any end-of-lesson reporting.
  • Record whether H5P branching content is a better fit for specific scenarios, so the choice is documented rather than assumed.

How we build

  • Build the Lesson activity from an approved scenario map, with page IDs, jump targets and grade rules documented before authoring starts.
  • Test every path through the lesson, including retries, dead ends, timed sessions and the scoring result for each route.
  • Review content pages and feedback text with your subject matter experts, and confirm the lesson behaves the same on your target Moodle version.

How we hand over

  • Deliver a written branch map, a scoring specification and an authoring guide that your course designers can follow without us.
  • Walk your course team through the build, the path test results and the known limits of Lesson branching in your environment.
  • Document the backup, restore and course-copy steps so the lesson survives reuse and version upgrades.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer after handover, if your team wants it.
  • Re-run path tests when Moodle is upgraded or when scenario content changes, and report the differences.
  • Confirm with your team what support hours, response expectations and change handling the retainer should include before signing.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.