# 主页

> 注意：本站是从 ChoiceScript 维基翻译并重新组织而来，剔除了非必要的内容。如有需要，请直接访问原始网站：
>
> <https://choicescriptdev.fandom.com/wiki/ChoiceScript_Wiki>

## 欢迎来到 ChoiceScript 维基

本维基介绍 [ChoiceScript](/zh-hans_choicescript-guide/she-qu-zhi-nan/liu-lan/nei-rong/choicescript.md)，这是一种由 [Choice of Games](https://www.choiceofgames.com/) LLC 的 Adam Strong-Morse 和 Dan Fabulich 开发的简单脚本语言，用于编写基于文本的多选游戏。

## 学习 CoiceScript

### 从这里开始

* [基础教程](/zh-hans_choicescript-guide/she-qu-zhi-nan/ji-chu-jiao-cheng.md)
* [开发工具](/zh-hans_choicescript-guide/she-qu-zhi-nan/ji-chu-jiao-cheng/kai-fa-gong-ju.md)
* [设置 ChoiceScript](/zh-hans_choicescript-guide/she-qu-zhi-nan/ji-chu-jiao-cheng/she-zhi-choicescript.md)
* 基础场景脚本编写
* 错误信息
* 快速测试与随机测试
* 发布你的游戏
* Beta 测试
* ……更多！

### 重要概念

* 缩进
* 变量
* 数据
* 算术运算符
* 字符串连接
* 多重替换
* 隐式控制流
* 数组
* 参数

### 文件

* CS 游戏的结构
* startp.txt
* choicescript\_stats.txt
* 场景文件

### 命令

* [\*choice](/zh-hans_choicescript-guide/she-qu-zhi-nan/liu-lan/ming-ling/choice.md) | [\*fake\_choice](/zh-hans_choicescript-guide/she-qu-zhi-nan/liu-lan/ming-ling/fake_choice.md)
* \*create | \*temp | \*set
* [\*if](/zh-hans_choicescript-guide/she-qu-zhi-nan/liu-lan/ming-ling/if.md) | \*elseif | [\*else](/zh-hans_choicescript-guide/she-qu-zhi-nan/liu-lan/ming-ling/else.md)
* \*label
* \*goto | \*goto\_scene
* \*gosub | \*gosub\_scene
* \*finish | [\*ending](/zh-hans_choicescript-guide/she-qu-zhi-nan/liu-lan/ming-ling/ending.md)
* \*page\_break | \*line\_break
* \*selectable\_if
* \*disable\_reuse
* \*hide\_reuse | \*allow\_reuse
* \*redirect\_scene

#### 按类别查看命令

<table data-full-width="true"><thead><tr><th width="128.54547119140625">类别</th><th>命令</th></tr></thead><tbody><tr><td>选择</td><td><a href="/pages/c8ee5e91e35477a88098551cf3e370874d6f2506">*choice</a>, <a href="/pages/9c72fb03b1b1fc95aa3c9b043dc4b7efed2f76ea">*fake_choice</a>, *disable_reuse, *hide_reuse, *allow_reuse, *selectable_if</td></tr><tr><td>变量</td><td>*create, *temp, *set, Arithmetic operators, *delete, *input_number, *input_text, *print, *rand</td></tr><tr><td>条件</td><td><a href="/pages/e719a938678a3eabe0d0901c3934b122d9c9e59a">*if</a>, *elseif, <a href="/pages/3b39d2b04d6bee32d10fa7b76aa61816e4895560">*else</a>, Multireplace</td></tr><tr><td>前往</td><td>*label, *goto, *goto_scene, *goto_random_scene, *gosub, *gosub_scene, *finish</td></tr><tr><td>格式化</td><td>Bold text, Italic text, *image, *line_break, *page_break, *link, *stat_chart</td></tr><tr><td>杂项</td><td>*comment, *scene_list, *title, *author, *achieve, *achievement, *check_achievements, *bug, <a href="/pages/7047f9861becc6c54212b238e1015f302d39a2c0">*ending</a>, *more_games, *share_this_game, *show_password, *script, Implicit Control Flow</td></tr></tbody></table>

### 下载 ChoiceScript 文件

最新版本：<http://github.com/dfabulich/choicescript/zipball/master> (.zip 文件)

## 关于 ChoiceScript 维基

本维基是一个由社区创建、为社区服务的 ChoiceScript 游戏开发者社区项目。它面向所有计划学习 ChoiceScript 的人，需要澄清特定主题或命令的人，以及仅仅希望更清楚地理解特定错误可能原因的人。

## 什么是 ChoiceScript？

本维基介绍 [ChoiceScript](/zh-hans_choicescript-guide/she-qu-zhi-nan/liu-lan/nei-rong/choicescript.md)，这是一种由 [Choice of Games](https://www.choiceofgames.com/) LLC 的 Adam Strong-Morse 和 Dan Fabulich 开发的简单脚本语言，用于编写基于文本的多选游戏。

使用 ChoiceScript 开发互动小说既简单又有趣。它免费使用，无需任何编程经验，非常容易上手——同时对于拥有高度创意想法的资深用户来说，它也是一个强大而灵活的创作工具。

ChoiceScript 游戏可以发布在网页、iOS、Android 和 Kindle 设备上，甚至可以在 Steam 上发布。当 Choice of Games LLC 发布游戏时，ChoiceScript 作者可以从发行的游戏中获得版税。（请在[其官网](https://www.choiceofgames.com/looking-for-writers/)上查看具体要求。）

想成为一名 ChoiceScript 游戏作者吗？首先下载[最新版本](http://github.com/dfabulich/choicescript/zipball/master)（.zip文件）开始吧。

## 注意

本维基所有页面提供的示例代码段均已在 Mozilla Firefox 浏览器中测试通过，并遵循[ CC BY-SA](http://creativecommons.org/licenses/by-sa/3.0/) 许可协议。通过编辑或以其他方式贡献内容至采用 CC BY-SA 许可协议的维基，即表示您同意将您修改或贡献的任何文本内容同样以 CC BY-SA 协议进行授权。

## 分类

除非另有说明，社区内容均采用 [CC-BY-SA](http://creativecommons.org/licenses/by-sa/3.0/) 协议授权。

## 开始

[从这里开始](#cong-zhe-li-kai-shi)


---

# Agent Instructions: 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:

```
GET https://raster.gitbook.io/zh-hans_choicescript-guide/she-qu-zhi-nan/zhu-ye.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
