# Let the player ask questions

Many RPG conversations work like a menu: the player asks a character about several topics, in any order, and leaves when they're done. You'll build that loop with a **Label**, a named point in the Script, and `@go`, which jumps back to it.

## Before you begin

Complete [Give the player a choice](player-choices.md). This guide rewrites the `Gate Conversation` Script on the guard.

## Mark the point to return to

A line that starts with a hash (`#`) is a Label. It shows nothing to the player; it only names a place in the Script. Replace the text of `Gate Conversation` with:

```dialogue
Guard: Halt! State your business, traveler.
Player: Just passing through. Mind if I ask a few things?
Guard: Make it quick. What do you want to know?

# questions
* What is this village called?
  Guard: Ashford. Don't wear the name out.

* Why is the gate closed?
  Guard: Wolves. Three sheep gone this week.

* Where can I find work?
  Guard: Ask the elder. She always has a job that needs doing.

* That's all. Thanks.
  Guard: Then on your way.
```

The Label `questions` sits right above the choice group. Label identifiers accept letters, digits, hyphens (`-`), and underscores (`_`), and each one must be unique within its Script.

## Jump back after each answer

At the moment, every answer ends the conversation. Add `@go questions` at the end of each branch that should return to the menu:

```dialogue
Guard: Halt! State your business, traveler.
Player: Just passing through. Mind if I ask a few things?
Guard: Make it quick. What do you want to know?

# questions
* What is this village called?
  Guard: Ashford. Don't wear the name out.
  @go questions

* Why is the gate closed?
  Guard: Wolves. Three sheep gone this week.
  @go questions

* Where can I find work?
  Guard: Ask the elder. She always has a job that needs doing.
  @go questions

* That's all. Thanks.
  Guard: Then on your way.
```

`@go` moves the conversation to the Label, which leads straight back to the choices. The last choice has no `@go`, so picking it plays the guard's farewell and ends the conversation.

!!! warning "Keep a way out"
    If every branch ends with `@go`, the player can never leave. Always keep at least one choice that doesn't jump back.

## Change the prompt on return

The choices now reappear without a word from the guard. A second Label lets him ask *Anything else?* on each return, but not the first time:

```dialogue hl_lines="4 6 7"
Guard: Halt! State your business, traveler.
Player: Just passing through. Mind if I ask a few things?
Guard: Make it quick. What do you want to know?
@go questions

# ask-again
Guard: Anything else?

# questions
* What is this village called?
  Guard: Ashford. Don't wear the name out.
  @go ask-again

* Why is the gate closed?
  Guard: Wolves. Three sheep gone this week.
  @go ask-again

* Where can I find work?
  Guard: Ask the elder. She always has a job that needs doing.
  @go ask-again

* That's all. Thanks.
  Guard: Then on your way.
```

Follow the two paths:

- **The first time**, `@go questions` skips over *Anything else?* and lands on the choices.
- **After an answer**, `@go ask-again` plays *Anything else?*, then continues downward. A Label doesn't stop the conversation, so it passes `# questions` and shows the choices again.

## Dim the questions already asked

The player can't yet tell which topics they've covered. Dialogue records each choice the player picks, but only when the choice has an identifier.

1. Select `Gate Conversation` and open the **Settings** tab.
2. Click **Generate IDs**.

Every line and choice now ends with metadata such as `[id:4a25ca29]`. The sample Skin uses those records to dim the choices the player has already picked.

The record belongs to the guard's **Dialogue** component, so it carries over to the next conversation with him while the game runs. To keep it after saving and loading, see [Greet the player differently on each visit](remember-visits.md).

## Verify the result

Enter Play mode and talk to the guard:

1. Ask about the village name. The guard answers, asks *Anything else?*, and the choices return.
2. Confirm the question you just asked appears dimmed.
3. Ask the other two questions in any order.
4. Pick *That's all. Thanks.* and confirm the conversation ends after the farewell.

If the Console reports `Unable to find label`, a `@go` names a Label that doesn't exist. Dialogue logs the error and continues with the next line, so check the spelling on both lines.

## Where to go next

- **[Force a decision with a timer](timed-decision.md)** — give the player a few seconds to choose.
- **[Language syntax](../../syntax.md#labels)** — see the rules for Labels and `@go`.
- **[Split a story across several Scripts](split-long-stories.md)** — jump to a Label in another Script.
