Assign 5 rooms an exit to -1. Connect the 6th room to the maze entrance/exit room. Assign a proc to the maze room, that every 10th call or so, sets the connected rooms reverse door to -1, and randomly picks a new room. It sets its own door to that, then snakes into the connected room, settings its door back to itself. Each active call of the function, then clears old data, and sets new. If you can't get a working proc, lemme know. I have numerous rooms like this already. Fafhrd of Duris On Fri, 8 Nov 1996, Scoob wrote: > Hmm....I'm trying to create an area with a randomly-selected > entrance, not anywhere, but out of say six possible places. Any > suggestions on this? I thought I could make the entrance a random > maze with each of the different rooms as different connections, but > this could create a problem when trying to exit the area back the way > you came. Any suggestions? > +-----------------------------------------------------------+ > | Ensure that you have read the CircleMUD Mailing List FAQ: | > | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | > +-----------------------------------------------------------+ > +-----------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://cspo.queensu.ca/~fletcher/Circle/list_faq.html | +-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST