SAMPLE PROJECT WALKTHROUGH

The Lighthouse Power Workshop

Download the editable project, then choose Open Existing in the App. Save your current work before opening another project.

Download editable projectPlay Example (new tab)All Sample Projects

Mechanics workshop: repair, fuel and power a lighthouse

Use a harmless machine puzzle to learn the shared builder before combining combat or timed hazards. The mechanic should repair with the correct material, accept real fuel, operate only when ready and visibly stop when fuel runs out. The Mechanics guide explains the editor, lifecycle and timing rules.

Ready-made companion

The companion is The Lighthouse Power Workshop: play the workshop or download its editable project. Save your current project before opening an example. The exercise below uses its own short names so you can build a related variation without assuming the companion has identical commands or rewards.

Companion route and expected outcome

In the companion's own world, the intended route is:

take worker jacket
wear worker jacket
north
read briefing
take brass fuse
take fuel can
use brass fuse with generator
use fuel can with generator
use generator
use lift control
take signal lens
use return lever
use generator
south
give signal lens to keeper

The return handover awards 100 points and 10 harbor coins once. The generator receives eight operating turns from its finite fuel can. Switching it off preserves remaining fuel; reaching zero stops it automatically. The emergency return remains available, so running out of fuel upstairs does not trap the player. A harmless watchman can raise the shared alarm while the machine operates; the worn worker jacket prevents identification, and the authored toy distraction resets noise. The watchman does not attack.

Try the route in the editable example and a fresh HTML export. Repeat a wrong-input attempt and a completed action, then use Save/Load/Undo to check that fuel, materials, score and progress restore together.

1. Build a small test world

Create Keeper's Workshop, Machine Room and Beacon Deck, with explicit return routes. Set the workshop as the start. Place a takeable Spare fuse and Fuel can in the workshop. Put a usable Generator and a lockable Power gate in the machine room. Keep the first version free of enemies and health loss.

Test movement and ordinary pickup before installing the mechanic. A decorative gate object does not automatically control a mapped exit: if a path should be inaccessible while power is off, configure that exit's actual condition and connect it to the same story state in the machine's power-on/off effects.

2. Bind the machine preset

Open Gameplay → Mechanics → Library → Machines & Power Connections. Choose Set up. Name the instance Lighthouse generator and bind:

Input Example binding
Machine control Generator
Repair fuse/material Spare fuse
Fuel item Fuel can
Powered gate Power gate
Operating turns per fuel item 8

Review the phases, local fuel resource and companion Recipes before applying. The preset uses actual Recipe input validation and consumption. It does not infer a repair merely because the player typed a similar sentence or carried any object with “fuse” in its description.

Choose Save Mechanic, then open the main Test area and select the Lighthouse generator for mechanic testing. Start a fresh test after each configuration edit.

3. Prove repair and fuel separately

First attempt to use Generator without the required parts. It should remain unavailable or explain its unmet requirements. Attempt USE SPARE FUSE WITH GENERATOR without possessing/accessing the fuse and confirm that no repair succeeds.

Take the fuse and use it with the real Generator. Confirm accepted Recipe execution, the intended phase change and consumption/retention exactly as configured. Try the same repair again: it must not produce an extra fuse, duplicate repair reward or second success.

Take Fuel can and use it with Generator. Inspect the local fuel value. The configured physical fuel input is finite; a second attempt with an already consumed can must not create new fuel. Add separate physical supplies or another explicit refill interaction if your game needs more.

4. Operate the generator

Use Generator after repairing/refueling it. Inspect its operating phase, local fuel and controlled gate. Each eligible operating Turn reduces fuel according to the authored rule. Paused, disabled and out-of-scope turns follow the selected policy; this is active game time, not real elapsed seconds.

If you gate the Beacon Deck exit through a story flag, set it when the generator becomes powered and clear it when power stops. Test the actual exit before and after power changes. A message saying “the lift works” is not evidence that the player can travel through the right route.

Let fuel reach zero in a fresh test. Confirm the shutdown phase, gate state, power flag and player feedback agree. Refilling/restarting should be possible only through the recovery path you intentionally authored.

5. Customize beyond the preset

Open Edit Lighthouse generator in Mechanic Builder. Add a local Noise resource, or choose a story-state link when another system should share it. Add an operating Turn rule that increases noise. Add a nested requirement group for a living guard in the affected room and the required noise threshold, then configure the intended NPC/World Event effect. Test the quiet and loud cases independently before adding a penalty.

Add a phase entry message rather than printing the same introduction every turn. If a phase should pay a permanent mission reward, use canonical Objective/Quest/Recipe once semantics or an explicit persistent guard. Resetting a mechanic is a deliberate reset of its local state.

For a complex authored sequence, keep the TAML in a separately named script and add a Run advanced script effect. Updating the visual definition must leave that script unchanged.

6. Inspect and save evidence

In the main Test area’s mechanic testing, inspect the last trigger, resource values, current phase, rule use counts, timing and unmet requirements. Explicit lifecycle controls are test interventions; use ordinary commands for the player route you intend to ship. Reading the inspector does not spend a turn.

Record separate cases in Test → Test Lab:

Case Required observation
Missing/wrong material No repair, no consumption and no reward.
Correct repair Accepted input and one intended state/phase change.
Correct refuel Actual fuel input consumed/transferred and configured resource gain.
Repeated used input No duplicated physical stock, resource or payout.
Operating and exhausted The gate/path follows real power state; shutdown occurs at the intended boundary.
Pause/resume and scope The appropriate active clock stops/resumes without creating extra effects.
Save/Load and UNDO Fuel, phase, chance stream and consequences return to the saved/prior state.
Duplicate instance Its local fuel and identity do not control the first machine by accident.

Save the editable .tagm, export a fresh playable HTML file and repeat the same successful and failure routes there. Keep the exported player separate from the editable master. Source validation is not a complete playthrough.

7. Reuse it in another project

Choose Save to Library for My Saved Items, or use Review reusable copy → Download reusable copy for portable JSON. The browser shelf survives New Project on this browser; JSON transfers the definition to another browser/computer. Import opens a draft. Bind its required machine, gate, fuse and fuel to real targets in the destination game, review external script/Recipe/Quest dependencies and apply only after validation. A portable definition does not clone an entire world or a limitless supply of physical items.

Download editable projectPlay Example (new tab)All Sample Projects