You need to sign in or sign up before continuing.
The message for the verb 'remove' with an object that does not have the attribute clothing is not adapted.
The message is "You aren't wearing that." instead of "Taken.":
You can see a basket (in which are an apple and a pear) here.
>remove apple
(first taking the apple)
You aren't wearing that.
Or if no_implicit_actions = true (which is more confusing):
>remove apple
You aren't holding that!
The message is correct if I remove several objects:
>remove apple and pear
apple: Taken.
pear: Taken.
The grammar of the verb:
Verb 'remove'
* held -> Disrobe
* multi -> Take
* multiinside 'from' noun -> Remove;
All seems to be better if I replace the token "held" by the attribute "clothing".
Verb 'remove'
* clothing -> Disrobe
You can see a basket (in which are an apple and a pear) here.
>remove apple
Taken.
>remove hat
You take off the hat.
Source code:
Include "parser";
Include "verblib";
Object room "here" with description "You are here." has light;
Object basket "basket" room with name 'basket' has container openable open;
Object apple "apple" basket with name 'apple' has edible;
Object pear "pear" basket with name 'pear' has edible;
Object hat "hat" with name 'hat' has clothing worn;
[ Initialise;
! no_implicit_actions = true;
move hat to player;
location = room;
];
Include "grammar";