> 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

Your complete companion for writing scripts on the Cronus Zen.

<figure><img src="https://611779084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIhlDMEOMB6JOWTfU9zr%2Fuploads%2FIvY9wgLPMvHRJETTdVvu%2Fgpc-guide-cover%20(1).svg?alt=media&amp;token=63f74c33-48ac-43a3-ba49-dc484bd67dd8" 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="/gpcscripting/gpc-script-guide/start-here.md"><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="https://611779084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIhlDMEOMB6JOWTfU9zr%2Fuploads%2FFSu2HZuDLD7BeeucE7fo%2Fcard-start-here.svg?alt=media&amp;token=56101902-a576-4e2b-93cf-33ad62949a24">card-start-here.svg</a></td></tr><tr><td align="center"><a href="/gpcscripting/gpc-script-guide/learn-gpc.md"><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="https://611779084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIhlDMEOMB6JOWTfU9zr%2Fuploads%2Fdw3ERvITmq3xlA73oYir%2Fcard-learn-gpc.svg?alt=media&amp;token=1233ff76-b664-4571-8440-5da32d4be9df">card-learn-gpc.svg</a></td></tr><tr><td align="center"><a href="/gpcscripting/gpc-script-guide/examples-and-recipes.md"><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="https://611779084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIhlDMEOMB6JOWTfU9zr%2Fuploads%2FwdNJ3Gy8Pa8teejmihTP%2Fcard-device-features.svg?alt=media&amp;token=c4290cb8-846d-4aff-be57-b57820a87111">card-device-features.svg</a></td></tr><tr><td align="center"><a href="/gpcscripting/gpc-script-guide/reference.md"><strong>Reference</strong></a></td><td>Every built-in, every constant, every diagnostic. Debugging workflows included.</td><td></td><td><a href="https://611779084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIhlDMEOMB6JOWTfU9zr%2Fuploads%2FZ2XllFkYkq1Wzr3nMQkN%2Fcard-reference.svg?alt=media&amp;token=84251311-8404-4f5f-a2bd-5a99a00a0b94">card-reference.svg</a></td></tr><tr><td align="center"><a href="/gpcscripting/gpc-script-guide/troubleshooting.md">Troubleshooting</a></td><td>Compiler errors, warnings, tracing, and bisection. Find the real cause, not the first symptom.</td><td></td><td><a href="https://611779084-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyIhlDMEOMB6JOWTfU9zr%2Fuploads%2FfJY4zsp9DrmUYAlLP5wr%2Fcard-troubleshooting%20(1).svg?alt=media&amp;token=c4c7ff66-3598-472e-b447-e0d8d41e0a25">card-troubleshooting (1).svg</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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
