A terrible title for this thread, but I couldn’t think of a better one at the moment.
Consider the following source:
[code]The blue door is a door.
The blue door is east of the Undertomb.
Through the blue door is the Flat Landing.
Every turn:
say “[front side of the blue door].”;
say “[back side of the blue door].”;
say “[other side of the blue door from the Undertomb].”;
say “[other side of the blue door from the Flat Landing].”;
say “[direction of the blue door from the Undertomb].”;
say “[direction of the blue door from the Flat Landing].”[/code]
Here is the output:
I’m curious about the fourth and sixth entries (bolded and underlined in the output).
Shouldn’t those be “nothing” similar to the second entry?
I can somewhat understand why the last statement does print “east” but it doesn’t feel strictly accurate to say that given how directions are treated. For example (shortening it up and changing the door to be two-way):
[code]The blue door is a door.
The blue door is east of the Undertomb and west of the Flat Landing.
Every turn:
say “[direction of the blue door from the Undertomb].”;
say “[direction of the blue door from the Flat Landing].”
[/code]
Here the output is:
So in a two-day door context “direction of the blue door from the Flat Landing” in this case is west, which makes sense.
But when it’s a one-way connection, the “direction of the blue door from the Flat Landing” is east.
So Inform is shifting what “the direction of” means, or so it seems.
This may be a nit-picking thing, to be sure, but I wonder if that can lead to issues when you want to check if a one-way door does have a direction from a given location. In this case, it would seem the one-way door will always have a direction from both points even though that’s not true. Likewise, “other side of the blue door from the Flat Landing” will always provide an answer even though, in fact, it’s not the “other side”.