In chapter 13 of the DM4, we have this paragraph:
Care is required here because two different actions can make the player pass through the door. In the Corridor above, the player might type “s” or “go south”, causing the action
Go s_obj
. Or might “enter stone door” or “go through door”, causingEnter StoneDoor
. Provided the door is actually open, theEnter
action then looks at the door’sdoor_dir
property, finds that the door faces south and generates the actionGo s_obj
. Thus, provided that the door is open , the outcome is the same and you need only write code to trap theGo
action.
However, looking at the inform6lib source (v6.12.4) for EnterSub
, it seems that “Enter StoneDoor” would actually cause a <Go StoneDoor>
action to be generated, rather than <Go s_obj>
.
Could someone help me understand the library’s operation in this regard, or confirm that the DM4 misspoke?
Thank you,
Jesse