Hiya!
I’m trying to get the game to know the name of the person playing. by asking them.
soooooo …
After reading a command when collecting names:
if the number of words in the player's command is greater than 3:
say "[paragraph break]Sorry, first names and last names, only!";
reject the player's command;
if the number of words in the player's command is less than 2:
say "[paragraph break]I'll need a first name and a last name, please.";
reject the player's command;
now the player's full name is the player's command;
now the player's forename is word number 1 in the player's command;
now the player's last name are words number 2 and 3 in the player's command; ### this is the f***er ###
now the command prompt is ">";
move the player to the location;
reject the player's command.
I got everything to work except the last name. yes player’s last name is a text that varies.
here’s the error:
[rant]Report on Translation: FailedProduced by Inform 7 (build 6L38)
(Each time Go or Replay is clicked, Inform tries to translate the source text into a working story, and updates this report.)
Problem. You wrote ‘now the player’s last name are words number 2 and 3 in the player’s command’ : but this is a phrase which I don’t recognise, possibly because it is one you meant to define but never got round to, or because the wording is wrong (see the Phrasebook section of the Index to check). Alternatively, it may be that the text immediately previous to this was a definition whose ending, normally a full stop, is missing?
I was trying to match this phrase:
now (player’s last name are words number 2 and 3 in the player’s command - a phrase)
But I didn’t recognise ‘player’s last name are words number 2 and 3 in the player’s command’.
Because of this problem, the source could not be translated into a working game. (Correct the source text to remove the difficulty and click on Go once again.)[/rant]
Any help?