New here, hello all.
I’ve been delving into T3 now for a few days, and still have a couple questions I haven’t been able to crack. The first involves verbRules, and isn’t so much a problem but more of a curiousity.
I created my own Tie to rules to give it the same general behavior as Attach To, but only for specific objects. Copying from the source, I came up with this:
VerbRule(TieTo)
'tie' singleDobj 'to' singleIobj
: TieToAction
askIobjResponseProd = toSingleNoun
verbPhrase = 'tie/tying (what) (to what)'
;
VerbRule(TieToWhat)
[badness 500] 'tie' dobjList
: TieToAction
verbPhrase = 'tie/tying (what) (to what)'
construct()
{
/* set up the empty indirect object phrase */
iobjMatch = new EmptyNounPhraseProd();
iobjMatch.responseProd = toSingleNoun;
}
;
Seems to work fine, but I am curious what the following lines mean, or if they are important:
askIobjResponseProd = toSingleNoun...
[badness 500]...
iobjMatch...
Even reading through the ref, I still don’t get it, and I’m wondering I missed some documentation for this somewhere, or if the source is the best place to search for an answer and I should just suck it up and delve in
The second (completely unrelated) question involves what I would call scope (although that may not be the technically correct term). I’ve noticed that after examining object(s), you can refer to them subsequently as “it” or “them”. I think it would be swell to allow the player to do the same after revealing hidden objects in certain cases - but I have no idea where to look for programmatically setting objects to be referred to in this way.
Thanks!