Dishes
version 1 by Emily Short
Section 3 - The Corkscrew and Sealed Bottles
A corked bottle can be sealed or unsealed. A corked bottle is usually sealed.
A corkscrew is a kind of thing.
A corked bottle is lockable.
Check an actor unlocking a corked bottle with a corkscrew (this is the convert unlocking to cork removal rule):
try the actor uncorking the noun instead.
Check an actor taking a cork when the noun is in a sealed bottle (this is the can't open without a corkscrew assuming corkscrews exist rule):
if the number of corkscrews is at least 1:
if the actor carries a corkscrew:
continue the action;
if the actor can see a corkscrew (called the target):
if the actor is the player:
say "(first taking [the target])[command clarification break]";
otherwise:
say "([the actor] first taking [the target])[command clarification break]";
silently try the actor taking the target;
if the actor carries the target:
continue the action;
otherwise:
stop the action;
if the player is the actor:
say "You'll need a corkscrew." instead;
stop the action.
Carry out an actor opening a corked bottle (this is the unseal a corked bottle once opened rule):
now the noun is unsealed.
Dishes ends here.