[MUD-Dev] Re: Verb binding

Chris Gray cg at ami-cg.GraySage.Edmonton.AB.CA
Fri Apr 25 07:58:33 New Zealand Standard Time 1997

[Shawn H:]
:Parser looks for an apple (starting in char's inv/equ then room contents).
:Finds apple in your hand.
:Parser tells apple to "pick" itself.
:That fails (silent, but noted), since apple is already in inv/equ.
:Parser looks for apple in room's contents.
:That fails, since (I assume) there are no loose apples.
:Since no indirect object (implied "tree") was given, find one.
:Parser queries each of the room's items' to see if they know about apple.
:Finds match on "tree".
:Tells tree to "pick apple".
:Tree looks for apple in its contents.
:Finds apple, tells apple to "pick" itself.
:Apple goes to subject (player).
:My parser is still nebulous and vague in places, but that's the way I'm
:visualizing it so far. 

OK, that looks like it would work! It is, however, quite expensive in
terms of searching, much more so than the simple search for an apple
that a global 'pick' verb would have to do. (The discussion of verb
binding has hit on this, and it was said that global verbs were more
expensive to implement, which I can't see.)

Chris Gray   cg at ami-cg.GraySage.Edmonton.AB.CA

More information about the MUD-Dev mailing list