spacer graphic
spacer graphic
Montage of games AGS Logo
spacer graphic

 

spacer graphic
Menu
spacer graphic Home
About
News
Features
Download AGS
spacer graphic Games 
Games main page
Award Winners
Picks of the month
Short games
Medium length games
Full length games
In Production
Hints & Tips
Community
Forums
AGSers World Map
Member websites
Chat
Resources
Tutorials
FAQ
Knowledge Base
Downloads
Links
AGS-related links
* AGS Manual
  * Scripting
    * Parser functions

SaidUnknownWord

static String Parser.SaidUnknownWord()
If a word not in the game dictionary was submitted to the last ParseText call, then the word is returned by this command. This allows you to display a message like "Sorry, this game doesn't recognise 'XXXX'."

If all the words were recognised, this returns null.

Example:

String badWord = Parser.SaidUnknownWord();
if (badWord != null)
   Display("You can't use '%s' in this game.", badWord);
will display the message if the player types a word that's not in the vocabulary.

See Also: Parser.ParseText, Parser.Said


User comments and notes
There are currently no user comments on this page.
The user comment facility is currently disabled.