Re: TADS - modifying a verb


8 Dec 1995 12:36:33 -0500

>>I want "show" to work as normal with every object in the game, that is
>>"show <direct object> to <indirect object>." But for one direct object,
in
>>one room, I want "show <direct object>" to work, without the parser
>>requiring an indirect object. Or is there a way to make the parser
assume
>>a particular indirect object for that direct object, only in that room,
>
>This is off the top of my head. I'm not sure it'll work as you want it
>to, but at least you could try it.

This is off the top of *my* head, but isn't there a simpler way? How about
this:

showVerb:deepverb
doAction='Show'
ioAction(toPrep)='ShowTo'
;

modify thing
verDoShowTo(actor,io)={}
;

directshowobj:item
verDoShow(actor)={}
doShow(actor)={[whatever you want to happen here]}
;

My understanding is that TADS would respond to "Show [thing]" for most
items by demanding an indirect object, since there would be no
verDoShow(actor) defined; but for the one object in question, "show" or
"show to" would work.

Somebody correct me if I'm wrong, please.

Neil