-
Notifications
You must be signed in to change notification settings - Fork 9
Responses in DropSub need work #32
Description
Starting at http://www.intfiction.org/forum/viewtopic.php?f=7&t=19461&start=30#p107693, vlaviano points out how some responses from DropSub don't make sense. "But this is not a new problem triggered by the proposed change; it's an existing issue with the test "noun in parent(actor)", which is too weak for its intended purpose.".
Constant Story "DROPSUB IMPLICIT TAKE";
Constant Headline "^An Interactive Investigation^";
Include "Parser";
Include "VerbLib";
Object Start_Room "Start Room"
with description "This is the starting room.",
has light;
Object -> table "big table"
with name 'big' 'table',
has enterable supporter;
Object tin "metal tin"
with name 'metal' 'tin',
has container openable;
Object -> mint "breath mint"
with name 'breath' 'mint',
has edible;
[ Initialise;
location = Start_Room;
move tin to player;
];
Include "Grammar";
When we run this with the unmodified library, we see:
DROPSUB IMPLICIT TAKE
An Interactive Investigation
Release 1 / Serial number 160320 / Inform v6.33 Library 6/12-beta1 SD
Start Room
This is the starting room.
You can see a big table here.
>open tin
You open the metal tin, revealing a breath mint.
>drop tin
Dropped.
>get on table
You get onto the big table.
>drop mint
Perhaps you should take the breath mint out of the metal tin first.
>drop tin
Perhaps you should take the metal tin out of the Start Room first.
So, I think that the issue that you pointed out needs to be fixed regardless. I'd suggest treating it as a separate issue: dropping an object that is not carried by the actor and not directly contained in the parent of the actor produces an inappropriate response. I think that the correct response is arguable depending on how we define "here". Does it mean the immediate parent of the actor, or does it mean in the broader location / in scope?