2013-12-16 30 views
0

中試用時不起作用我已經設置了我的遊戲讓玩家在開始時根據文檔選擇自己的名字,但是,用於將其放在標題大小寫中的行不管用。 每當我開始遊戲時,玩家的名字都會以小寫顯示。標題大小寫功能在Inform 7

代碼:

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. 

這裏就是我得到了它:

你叫什麼名字? > Squiggle Squiggleson 謝謝,扭曲。

悲劇一種互動小說的由盧克Tooze 版本1 /序列號131216 /通知7構建6G60(I6/v6.32 LIB 6/12N)SD

波浪線的臥室(牀上)兒童 當你躺在你的牀上 - 盯着天花板 - 你意識到你應該起牀並面對一天。

我已經嘗試了很多變化,通知是每次都允許它,但實際上並沒有改變這種情況。請幫忙?

回答

1

您設置了變量player's full name的案例,但之後根據原始輸入(player's command)設置了仍具有原始案例的名稱。將讀取命令規則後的第二行更改爲:

now the player's forename is word number 1 in the player's full name;