> For the complete documentation index, see [llms.txt](https://docs.sandbox.game/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sandbox.game/en/creator/game-maker/docs/behaviours/basic-logic/combination-code.md).

# Combination Code

{% hint style="success" %}
**COPY/PASTE PARAMETERS**

New in GM 0.11! Right click on a behaviour or component to copy. Then open an object, add the same behaviour or component, and right click it to paste identical parameter settings.
{% endhint %}

{% hint style="info" %}
\[[Build Singleplayer & Multiplayer Logic](/en/creator/game-maker/docs/build-singleplayer-and-multiplayer-logic.md) ]\(/pages/v6S8yRFBP4GBbkxT2S7j)- about <mark style="color:green;">**\[SP]**</mark> or <mark style="color:yellow;">**\[MP]**</mark> behaviours or components.
{% endhint %}

## <img src="/files/FuCVQAhAGfIBePG8JC8y" alt="" data-size="line"> Combination Code

Set up a letter and/or number code for players to enter to win achievements or unlock secrets.

<figure><img src="/files/hmokdy1xsxHeGg78vIaZ" alt="" width="563"><figcaption><p>If incorrect, players can retry or press <code>ESC</code> to close the window</p></figcaption></figure>

### Common Uses

* Enter a combination to unlock a door, chest, etc.
* Enter the solution to a word or number puzzle
* Enter a code to unlock a challenge or quest

## How it Works

### Trigger: <img src="/files/MXqo7fq0mdij5mtZvsVz" alt="" data-size="line">One or more messages

### Action: Enter Code Screen Opens

### Out: <img src="/files/JMtrfm5HbYsCN4qAgNGB" alt="" data-size="line">Success OR <img src="/files/JMtrfm5HbYsCN4qAgNGB" alt="" data-size="line">Failure

## Parameter Notes

**Display Text:** Toggle to TRUE to make the Text field appear

**Text:** 70-80 characters may be entered depending on width

{% hint style="info" %}
To add a line break, type `\n`. There may only be two lines in this field.
{% endhint %}

**Correct Code:** Enter up to six characters. May include 0-9 and/or A-Z only.

Set any custom messages to send if the player fails or succeeds at entering the code.

<figure><img src="/files/9pxBdLu43iQkBqkp8tGa" alt=""><figcaption></figcaption></figure>


---

# 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://docs.sandbox.game/en/creator/game-maker/docs/behaviours/basic-logic/combination-code.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.
