Is it possible to make the players input always uppercase?
Is it possible to remove the auto linebreaks in text presented to the player, and add double linebreaks before the players command?
I’m after something like this:
[code]> LOOK
The Metal Room
You are in a small metal room. There is a potato.
LOOK AT POTATO
It is so pretty.
TAKE POTATO
Taken.[/code]
The reason I want this is that the current linebreaks don’t give enough attention to the players commands. What I have right now is something like this, where the command “look at potato” kind of look like it is part of the previous text:
[code]> look
The Metal Room
You are in a small metal room.
There is a potato.
look at potato
It is so pretty.
take potato
Taken.[/code]
(Excuse me if this has been answered before. I think I saw a post about it once, but I can’t locate it now …)
(If you’re not getting that blank space, you must have done something else in your code.)
Forcing the player’s command to upper case is possible, in a couple of different ways, but they all have drawbacks. In the web interpreter you could set a CSS “font-variant” property (but this would only work on your own web site). In Glulx you could take over control of echoing the command output, and change it to upper-case, but this might be startling to the player.
They shouldn’t – at least not if the text they print ends in a full stop, a question mark, or an exclamation mark (these have to be inside the double quotes).