Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: An array of objects?

From: al:bri:xtra at: 22-Dec-2000 21:31

Vache wrote:
> room1: make object! [ > > directions: [0 1 0 1] ; N S E W > description: "You are in a dark cave!" > > ] > > room2: make object! [ > > directions: [1 0 0 1] > description: "You are outside!" > > ]
If you're going to have a lot of rooms, then use a dialect to store them. For example: [S W] "Dark cave" "You are in a dark cave!" [N W] "Outside" "You are outside!" Which is: block! string! string! exits short desc long desc and then use the code that was published earlier to create objects from blocks that look like tables. I hope that helps. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/