> For the complete documentation index, see [llms.txt](https://guide.cronuszen.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.cronuszen.com/gpcscripting/gpc-script-guide.md).

# GPC Script Guide

<figure><img src="/files/lVWB9ZpKxNjneCrrG3WA" alt=""><figcaption></figcaption></figure>

No matter your experience level, this guide takes you from your first script to advanced techniques. Everything here is written specifically for **Zen Studio Live** and the current **32-bit Zen target**.

***

### Where do you want to go?

<table data-view="cards"><thead><tr><th align="center"></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td align="center"><a href="/pages/NGLiMyb5qiLUxNU2wNCU"><strong>Start Coding</strong></a></td><td>A guided first-script path. Compile, program, and test your Zen safely — step by step.</td><td></td><td><a href="/files/OBksp43o6ZTu9ERw3akf">/files/OBksp43o6ZTu9ERw3akf</a></td></tr><tr><td align="center"><a href="/pages/yIOWjIL79fFXkNml2qnu"><strong>Learn GPC</strong></a></td><td>Variables, conditions, functions, arrays, combos, input layers, and output order — the full toolkit.</td><td></td><td><a href="/files/2X3zCdiRtbK44GpvwMNB">/files/2X3zCdiRtbK44GpvwMNB</a></td></tr><tr><td align="center"><a href="/pages/Rw1vve2tcQCR2CObNI5A"><strong>Examples and Recipes</strong></a></td><td>Real, working scripts from beginner-friendly to expert-level. Copy, modify, learn.</td><td></td><td><a href="/files/kKW0pPBehKZ6T2V9eAmA">/files/kKW0pPBehKZ6T2V9eAmA</a></td></tr><tr><td align="center"><a href="/pages/oUYCshX6pAoZh288Yq4Y"><strong>Reference</strong></a></td><td>Every built-in, every constant, every diagnostic. Debugging workflows included.</td><td></td><td><a href="/files/uLAP8EDy1FjjrkHs2sYN">/files/uLAP8EDy1FjjrkHs2sYN</a></td></tr><tr><td align="center"><a href="/pages/33sVhYf1cqoUKTH3qI0d">Troubleshooting</a></td><td>Compiler errors, warnings, tracing, and bisection. Find the real cause, not the first symptom.</td><td></td><td><a href="/files/wM0CbT3CXQ7LapnleqGL">/files/wM0CbT3CXQ7LapnleqGL</a></td></tr></tbody></table>

{% hint style="info" %}
**Never coded before?**

Start with [What is GPC?](/gpcscripting/gpc-script-guide/what-is-gpc.md) to understand the language, then [Start Here](/gpcscripting/gpc-script-guide/start-here.md) to write your first script.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://guide.cronuszen.com/gpcscripting/gpc-script-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
