1
Start Here

First Steps

Brand new to Yarn Spinner? Start here. Using Try Yarn Spinner in your browser, write your first script and learn what nodes, lines, options, and commands are.

title: Greeting --- Mae: Hey! Welcome to town. -> Thanks! Happy to be here. -> Where's the inn? ===
Nodes Lines Options Commands Try Yarn Spinner
Start learning
2
Build On It

Scripting Fundamentals

Learn the core features that make dialogue dynamic: variables to track state, flow control to branch your story, and commands to talk to your game.

<<declare $trust = 0>> <<if $trust >= 3>>   Ren: I have a secret to tell you. <<else>>   Ren: Maybe another time... <<endif>>
Variables Flow Control Commands Functions Jumps & Detours Options Smart Variables
Explore fundamentals
3
Go Deeper

Advanced Scripting

Master the powerful features that enable emergent, reactive narratives: storylets that select themselves, saliency that picks the best content, and node groups that organise complex stories.

title: TavernRumour when: visited("Tavern") > 3 --- Barkeep: I heard something about   the old mine. Interested? ===
Node Groups Storylets Saliency Markup Tags & Metadata Shadow Lines
Explore advanced