Re: Plural Decorations in TADS


14 Dec 1995 00:04:13 -0500

> The only other way is to do what I ended up doing in my game - adding
>a plural flag and then rewriting adv.t to check for it. Takes forever and
>is very time-consuming.

It shouldn't. Just make a new class:

class pluraldec: decoration
ldesc = "Those aren't important."
dobjGen(a, v, i, p) =
{
if (v <> inspectVerb)
{
"\^<<self.thedesc>> aren't important.";
exit;
}
}
iobjGen(a, v, d, p) =
{
"\^<<self.thedesc>> aren't important.";
exit;
}
;

You could even throw in a new adesc while you're at it (adesc="some
<<self.sdesc>>") and kill two trolls with one sword.

Neil