# Scripting Fundamentals

If you're here, you've worked through the [Beginner's Guide](/beginners-guide.md), and setup the [Yarn Spinner Editor](/write-yarn-scripts/yarn-spinner-editor.md), and you're ready to dive into the details of writing dialogue with Yarn Spinner.

This section of the documentation will take you through the scripting fundamentals:

* combining Nodes, Lines, Options, and Jumps for simple interactive narratives
* using Detours, Variables, and Yarn Spinner's Flow Control features for more complex interactions
* the basics of Commands and Functions in Yarn Spinner
* running options Once, and Line Groups for flexibility and control

Once you've completed it, you can move to [Advanced Scripting](/write-yarn-scripts/advanced-scripting.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.yarnspinner.dev/write-yarn-scripts/scripting-fundamentals.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
