Source with door doesn't compile

I’m bewildered with this one. This code doesn’t compile with the error:

Problem. You wrote ‘The sturdy door is south of the lab and north of the office’, but in another sentence ‘The office is south of the Lab’: but this looks like a contradiction, which might be because I have misunderstood what was meant to be the subject of one or both of those sentences.

Thanks in advance,
d.

The lab is a room. The lab is north of the office. "Lab.".
The office is a room. The office is south of the Lab. "Office.".

The sturdy door is a door. The description is "This is a door". 
The sturdy door is north of the office and south of the lab. 

Two things can’t be north of the office. You can remove the above and it should work.

Edit: Two things also can’t be south of the lab.

1 Like

yes, it worked when i removed the directions from the room lines. thank you

but it just seemed like what i was doing should have still worked.

I’ve found it helpful to think of doors as more like rooms than objects in terms of mapping - they have to go between the two rooms they connect.

3 Likes

Yeah, doors are odd things in Inform. But they have to fit into the map more of the way rooms do—with a connection on each side, leading in a particular direction—than the way things do. You can have a room south of the Lab, or a door south of the Lab, but not both.

3 Likes