Comment

Comment by bburns_km

Thanks for linking that - it's a nice system with clean syntax -

  (location livingroom  
    (property  
      description "This appears to be the livingroom.  There is a hallway to  
                   the north and a closet to the west."   
      short-description "You are in the livingroom."   
      north hallway  
      west closet  
      south front-door-1))
https://github.com/dbetz/advsys/blob/master/osample.adv

compared with something like MDL -

  <DEFINE EAST-HOUSE ()  
      <COND (<VERB? "LOOK">  
      <TELL   
  "You are behind the white house.  In one corner of the house there  
  is a small window which is " ,LONG-TELL1 <COND (<TRNN 
  <SFIND-OBJ "WINDO"> ,OPENBIT>  
              "open.")  
            ("slightly ajar.")>>)>>
https://github.com/historicalsource/zork-mdl/blob/master/act...
parent bburns_km 5 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton