:: StoryTitle Typewriter Effect in Harlowe :: Start (set: $typewriterText to "Hello, world!") (display: "Typewriter") :: Typewriter { (set: $typewriterPos to 1) |typewriterOutput>[] (live: 20ms)[ (append: ?typewriterOutput)[(print: $typewriterText's $typewriterPos)] (set: $typewriterPos to it + 1) (if: $typewriterPos is $typewriterText's length + 1)[ (stop:) ] ] }