WelcomeWhat's NewsORLibraryDownloadsLinks
This site
produced
517527
pageviews since
8/19/2004
Today's date:
9/8/2010
Making VERBOSE the default mode The Inform Library provides three commands for players to control how rooms are described: VERBOSE prints a room's full description every time you go there, BRIEF prints the full description only on your first visit, and SUPERBRIEF never prints the full description. The Library's default setting is BRIEF, but many authors (and players) prefer VERBOSE behaviour -- to have a room fully described on each visit. Of course, just typing a VERBOSE command achieves this, but it's annoying to have to remember every time: much more convenient to make VERBOSE the standard setting. The Library uses a global variable lookmode which can take the values 1 (BRIEF), 2 (VERBOSE) and 3 (SUPERBRIEF), and which is initialised to 1 in the parserm.h file. So, to make VERBOSE the default, you can either just edit that file, or better (since it's preferable where possible to over-ride the Library rather than change it) add this line to your Initialise() function: lookmode = 2; !! default is VERBOSE mode At a mimimum, that's all you need to do. However, here are three additional changes that you may wish to incorporate. First, the message printed by the BRIEF command starts off: YOURSTORY is now in its normal "brief" printing mode... when of course BRIEF now isn't the normal mode. Second, the command NORMAL should be a synomym for VERBOSE rather than for BRIEF. Finally, you may consider that players should always see a room's full description at least once; therefore, you wish to disable entirely the SUPERBRIEF command. Here's the skeleton of a game which does all this: Constant Story "MyStory"; |
Would you