Keyword Interface
version 8 by Aaron Reed
Section: Objects
When object keyword highlighting is set to true, the extension will automatically emphasize non-scenery objects listed by the parser. Objects may also be manually emphasized in any text by wrapping them in [o] and [x] substitutions.
The Office is a room. "Only a bare [o]bulb[x] illuminates this dim office, empty except for a solitary desk.". A desk and a bare bulb are scenery in the office. On the desk is a telephone book and the lamp.
This produces output like the following (where emphasis is marked with asterisks):
The Office
Only a bare *bulb* illuminates this dim office, empty except for a solitary desk.
On the desk are a telephone *book* and a *lamp*.
If you want scenery items to be automatically emphasized, you can manually set them as keyworded, or include a line like the following (which would add emphasis to "desk" in the final line above):
When play begins: now every scenery thing is keyworded.
The emphasized word will be the final word of the object's printed name. To change this, you can use the object's "keyword" text property, which should be one of the other words in the printed name. You can also define an object as "keywordless," in which case it will never be automatically emphasized.
A book of memories with keyword "book" is in the Office. Some scattered cigarettes are a keywordless thing in the Office.
Produces:
"You can also see a *book* of memories and some scattered cigarettes here."
Automatic emphasis normally occurs when looking, opening or taking inventory. If you want to disable one of these you can use code like the following:
The Keyword Interface highlight objects when looking rule is not listed in any rulebook.
Conversely, if you want object highlighting during other times, you can use code like this:
Rule for printing the name of a thing (called item) while asking which do you mean:
carry out the object keywording activity with item.