-- Alan Tutorial -- file : lesson4.ala -- Lesson 4 example program -- synonyms, look and brief/verbose commands LOCATION Street NAME A City Street DESCRIPTION "Either side of the street is full of shops. The shops are a typical mixture of old houses converted into trendy boutiques and a few new glass-fronted shopping arcades. The exception is one house, to the north of you, which looks like a deserted house. A sign on the front door says $n$tPrivate $n$tThis is my home$n$tDon't Annoy Me!" EXIT north TO Porch. END LOCATION. LOCATION Porch NAME Front Porch DESCRIPTION "The unpainted wood of the porch is rotting and feels like it could crack under your weight at any moment. The front door of the house, however, seems newly installed and very strong." SCORE 5. EXIT south TO Street. END LOCATION. SYNONYMS n=north. s=south. SYNTAX 'quit'='quit'. SYNONYMS q ='quit'. 'exit' ='quit'. VERB 'quit' DOES SCORE. QUIT. END VERB. SYNTAX 'score'='score'. SYNONYMS sc ='score'. VERB 'score' DOES SCORE. END VERB. SYNTAX brief=brief. SYNONYMS b=brief. short=brief. VERB brief DOES VISITS 99. "$pNow using 'brief' mode - full descriptions will only be displayed the first time you visit a location$p" END VERB. SYNTAX verbose=verbose. SYNONYMS v=verbose. long=verbose. full=verbose. f=verbose. VERB verbose DOES VISITS 0. "$pNow using 'verbose' mode - full descriptions will be displayed each time you visit a location$p" END VERB. SYNTAX 'look'='look'. SYNONYMS l='look'. VERB 'look' DOES LOOK. END VERB. START AT Street. VISITS 99. -- 'visits' sets number of times must revisit a location before -- its description is redisplayed. So 'visits 99' effectively -- means the description is only displayed the first time a -- location is visited.