> For the complete documentation index, see [llms.txt](https://raster.gitbook.io/zh-hans_choicescript-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://raster.gitbook.io/zh-hans_choicescript-guide/she-qu-zhi-nan/liu-lan/ming-ling/ending.md).

# \*ending

## 结束

`*ending` 命令旨在用于游戏的“结尾”处，无论是实际的最终场景结束，还是因角色死亡或其他原因导致故事无法继续的情况。

## 用法

`*ending` 命令将为玩家显示一个包含 4 个选项的 `*choice`，具体如下：

```choicescript
*choice

    #Play again.

    #Play more games like this.

    #Share this game with friends.

    #Email me when new games are available.
```

### 1. 重新开始游戏。

这将使游戏从最初阶段重新开始。

### 2. 玩更多类似游戏。

这将引导玩家前往 ChoiceOfGames 官方网站页面。

### 3. 与朋友分享此游戏。

这将显示如下文本：

```
Please support our work by sharing this game with friends! The more people
play, the more resources we'll have to work on the next game.
```

随后会出现 4 个链接，分别引导您前往应用商店为应用程序评分，以及前往 Stumbleupon、Twitter 和 Facebook（注：这些链接目前尚未显示；可能在未来的 ChoiceScript 更新中出现）。

### 4. 新游戏上线时通过邮件通知我。

这将打开玩家的默认电子邮件程序并发送订阅邮件，以便在有新游戏添加时收到通知。
