> For the complete documentation index, see [llms.txt](https://book.rochat.ai/rochat_book_zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.rochat.ai/rochat_book_zh/ru-he-zai-rochat-chuang-jian-you-xi-ai-avg/you-xi-chang-jing-she-ding.md).

# 游戲場景設定

## **游戲場景設定**

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

* 每個場景名稱名字都不應該一樣。
* **游戲場景設計應該和游戲的背景在同一個世界觀裏，且每一個場景背後存在聯係性，這樣設計的游戲才能在運行中更加順暢。**
* 場景描述可以包括角色行為的特定規則。

每個場景都有一個獨特的名稱和詳細的描述，以觸發特定的事件和行為規則。舉例：

**場景名稱**

* 大廳&#x20;
* 圖書館&#x20;
* 地下室&#x20;
* 花園&#x20;
* 主臥室

**場景描述**

每個場景的描述應包含特定的細節和規則。例如：

* 大廳：寬敞的大廳中懸掛著古老的油畫，地板上有一張破舊的地毯。玩家可以在這裡找到一條隱藏的樓梯。
* 地下室：昏暗潮濕的地下室中堆滿了破舊的家具和雜物，空氣中瀰漫著霉味。這裡有一個鎖著的箱子，玩家需要找到鑰匙才能打開。

**數字觸發規則**

每個場景都應包含特定的數位觸發規則，以確保遊戲的進展和邏輯。例如：

* 如果健康值小於 20，玩家在進入地下室時會遇到額外的敵人。&#x20;
* 如果進度值大於 50，玩家在圖書館中可以找到一本有用的書籍，增加 20 點進度值。

**場景類型**

* **首章**

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

首章是游戏的开篇，包含故事开头和玩家选择。举例：

**故事开局**：

玩家刚刚进入庄园，天色已晚，周围一片寂静。突然，门在他们身后关上了。玩家需要找到庄园的出口，并解开其中的秘密。

**玩家选择**：

* 探索大厅
* 前往图书馆
* 检查地下室入口

**过程章节**

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

过程章节包含游戏中的各种事件和谜题，这些章节的顺序可以根据玩家的选择而变化。

**最终章**

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

最终章是游戏的结局，包含目标任务和逻辑。举例：

**数字触发规则**：

* 如果健康值为 0，玩家死亡，游戏结束。
* 如果进展值达到 100，玩家成功解开了庄园的秘密，游戏胜利。
* 如果恐惧值达到 100，玩家因恐惧过度而失去理智，游戏失败。


---

# 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://book.rochat.ai/rochat_book_zh/ru-he-zai-rochat-chuang-jian-you-xi-ai-avg/you-xi-chang-jing-she-ding.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.
