Rooms named the same thing

I’m stuck again. :slight_smile:

I have a small forest maze with three rooms that I would like to be named the same thing. How can I get around the ambiguity?

Thanks!

Penny

Give the rooms different names in the source code but the same printed name. Something like:

Forest 1 is a room. The printed name of Forest 1 is "Forest". Forest 2 is a room. The printed name of Forest 2 is "Forest". Forest 3 is a room. The printed name of Forest 3 is "Forest".

Thanks!

In addition, you can reduce code duplication by defining all of these rooms as a new kind of room, allowing you to define rules that apply only to/within forest mazes, assigning certain default properties to forest mazes, etc.

A forest maze is a kind of room. The printed name of a forest maze is usually "Forest". Forest 1, Forest 2, and Forest 3 are forest mazes.

That’s a great idea. Thanks.

Penny