[REBOL] Re: An array of objects?
From: al:bri:xtra at: 22-Dec-2000 21:31
> 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.
[S W] "Dark cave" "You are in a dark cave!"
[N W] "Outside" "You are outside!"
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.
ICQ: 26227169 http://members.nbci.com/AndrewMartin/