Show password

The *show_password command is used if and when you want to allow the player to save the game. show_password 命令用于在您希望允许玩家保存游戏时使用。

Usage 用法

When used, it will create a text box containing a long password; something like in the image to the right. 使用时,它会生成一个包含长密码的文本框;类似于图片所示。

Although this password looks like it's randomly generated, it's not. ChoiceScript has something called "Obfuscator", which converts some alphanumerical characters to other characters, codifying the password this way. 尽管这个密码看起来是随机生成的,但事实并非如此。ChoiceScript 有一个名为“混淆器”的功能,它会将一些字母数字字符转换为其他字符,以此方式对密码进行编码。

This password contains data about your current game; all the variables in the game, codified, with their values included, the scene name, etc. 该密码包含了你当前游戏的数据;游戏中所有变量及其值都经过编码,还包括场景名称等信息。

If you made a game and you've set up index.htmlarrow-up-right so that error reports come to your mail, if you get an error message you'll see the error name, the scene file, the platform the game was played on (iOS, Android etc.) and all the variables used within the game. 如果你制作了一款游戏,并已将 index.html 设置为将错误报告发送到你的邮箱,那么当你收到错误消息时,会看到错误名称、场景文件、游戏运行平台(iOS、Android 等)以及游戏中使用的所有变量。

This is what the password looks like, deobfuscated (not codified). The password's length depends on the number of variables used within the game (the password on the right is of a game having over 400 variables). 这是密码去混淆化(非编码)后的样子。密码的长度取决于游戏中使用的变量数量(右侧密码来自一个拥有超过 400 个变量的游戏)。