Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deluxe Doors issues #141

Open
ajmako opened this issue Feb 10, 2024 · 1 comment
Open

Deluxe Doors issues #141

ajmako opened this issue Feb 10, 2024 · 1 comment

Comments

@ajmako
Copy link

ajmako commented Feb 10, 2024

Latched doors do not automatically close if they are open when you try to latch them. Also, unlatching an unlocked latched door results in "You don't see any such thing." (Inform 7 v10.1.2)

I resolved the first with this:

Carry out an actor turning a door-latch which is part of something (called the parent door) (this is the carry out turning door-latches rule):
	if the parent door is locked:
		safely unlock parent door;
	otherwise:
		if the parent door is open:
			say "(first closing [the noun])[command clarification break]";
			safely close the parent door;
		safely lock parent door.

I resolved the second with:

Understand "unlatch [an unlocked latched door]" as a mistake ("[The noun] is already unlatched.").
@ajmako
Copy link
Author

ajmako commented Feb 11, 2024

A better solution to the second problem is to remove specificity from the grammar tokens:

Understand "latch [a latched door]" as locking keylessly.
Understand "latch [a latched door]" or "unlatch [a latched door]" as unlocking keylessly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant