Usenet.com

www.Usenet.com

Group Index

Rec Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Re: [TADS2] giveVerb's validDo



Kevin Venzke <[EMAIL PROTECTED]> wrote:
: "Steve Mading" <[EMAIL PROTECTED]> wrote in message
: news:[EMAIL PROTECTED]
:> In general, I've found that whenever you want an NPC to do something in
:> such a manner that the error messages appear right to the user, the
:> best way to do that is with execCommand().  It 'hooks into' the parser
:> at the point just after everything got disambiguated, but before any
:> validation checks have occured (other than the checks to disambiguate).
:>
:> So, if you want to have "ask dude for thingy" transform into
:> "dude, give me thingy", with the right replacement of pronouns
:> (so it says "He" instead of "You"), it might be something
:> like this:

: Thanks for replying.  Unfortunately your solution seems to preserve my
: problem; NotPresentItem may be a valid IObj for "ask for," but when
: recast as "dude, give me it" you should get a visibility error.

But calling execCommand() does call all the appropriate ver...
properties, so if your ver... property checks for visibility, it
should work.




<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.