Page 1 of 1
Changing default blank command response
Posted: Mon Feb 18, 2013 9:26 am
by Bainespal
Is there a way to substitute something else for the default "What?" printed when the player hits enter without typing anything? I notice that the "What?" string is neither stored in Message in hugolib.h nor VMessage in verblib.h. I don't know where it comes from.
Posted: Mon Feb 18, 2013 10:12 am
by Roody_Yogurt
That message is ParseError with error number 0, although that is one of the messages provided by the engine itself:
http://hugo.gerynarsabode.org/index.php ... ParseError
Still, you can change it just the same using NewParseError:
http://hugo.gerynarsabode.org/index.php ... ParseError
Posted: Mon Feb 18, 2013 3:27 pm
by Bainespal
Yes, thank you. I noticed that I needed to explicitly return true in the errornumber condition for my replacement string, or else it goes on to print the old "What?" after my replacement message.