我已经将我的游戏设置为让玩家根据文档在开始时选择自己的名字,但是,用于将其放入标题大小写的行不起作用。每次我开始游戏时,玩家的名字都会以小写形式显示。
法典:
The player's forename is an indexed text that varies. The player's full name is an indexed text that varies.
When play begins:
now the command prompt is "What is your name? > ".;
no.
To decide whether collecting names:
if the command prompt is "What is your name? > ", yes;
no.
After reading a command when collecting names:
now the player's full name is "[the player's command in title case]";
now the player's forename is word number 1 in the player's command;
now the command prompt is "> ";
say "Thank you, [player's forename].[paragraph break]";
say "[banner text]";
move the player to the bed;
reject the player's command.
这就是我从中得到的:
你叫什么名字?> 波浪线 波浪线 谢谢你,波浪线。
悲剧之子 卢克·图泽的互动小说 版本 1/序列号 131216/通知 7 内部版本 6G60 (I6/v6.32 lib 6/12N) SD
波浪线的卧室(在床上) 当你躺在未整理的床上 - 盯着天花板 - 你意识到你可能应该 起床,面对这一天。
我已经尝试了许多变体,通知每次都允许它,但它实际上并没有改变情况。请帮忙?
您设置变量 player's full name
的大小写,但随后根据原始输入 ( player's command
) 设置前名,该输入仍然具有原始大小写。将读取命令规则后的第二行更改为:
now the player's forename is word number 1 in the player's full name;