Re: Plural Decorations in TADS


14 Dec 1995 14:23:23 GMT

In article <4ano98$12k@grid.direct.ca>, Neil K. Guy <nkg@grid.direct.ca> wrote:
>Charles Gerlach (cagerlac@merle.acns.nwu.edu) wrote:
>: Maybe it's because I haven't (yet) registered TADS, maybe it's because I am
>: *way* lazy, but I cannot figure out how to tell it to make my decorations
>: plural. It irks me no end to have the game say:
>
>: The clothes isn't important.
>
> Simple? Well the simplest approach is to write your sdescs in such a
>fashion that every word is in the singular. (eg: "The clothing isn't
>important.")
>
> 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.

There's at least one more way, which is appreciably less time-consuming:
define your own class PluralDecoration which is identical to decoration
except that it prints a different message when you try to do something
with it. You could, for example, copy the code for decoration from
std.t (or is it adv.t?) and just change "is" to "are".

Magnus