Casilian StudiosCASILIANMODDING SCHOOL

WillowScript (.ws) is a proposed, not-yet-implemented language. Examples and library integrations here are illustrative design exercises, not verified runnable programs.

Reuse a typed helper function

A script becomes easier to reason about when every function has a clear job. Read its name as an action, the parameter list as the information it receives, and the type after -> as the kind of result it promises. The body explains how that promise is fulfilled.

  1. 1

    Reuse a typed helper function — Discover and trace

    Make a prediction before touching the example.

    Open practice
    →
  2. 2

    Reuse a typed helper function — Build the smallest useful slice

    Change one useful behavior while keeping the contract small.

    Open practice
    →
  3. 3

    Reuse a typed helper function — Change one requirement

    Translate one new mod requirement into a deliberate change.

    Open practice
    →
  4. 4

    Reuse a typed helper function — Boundary detective

    Find a case the simplest success path does not cover.

    Open practice
    →
  5. 5

    Reuse a typed helper function — Flash-check repair

    Use a plausible mistake to show that you understand the mechanism.

    Open practice
    →
  6. 6

    Reuse a typed helper function — Connect the previous skills

    Connect this idea with a previously learned responsibility.

    Open practice
    →
  7. 7

    Reuse a typed helper function — Review and demonstrate

    Collect a useful learning record without pretending the code was executed.

    Open practice
    →
  8. 8

    Module project — Admission rules engine

    Turn the section work into one reviewable mod feature.

    Open practice
    →

Your practice, on this browser

No public account is created. Drafts and lesson progress stay in this browser’s local storage. They do not automatically follow you to another device and can be lost if browser storage is cleared.

Export a private progress file to keep a copy, then import it on another browser when you want to move your work. Treat that file as your own writing; it can contain your practice drafts.