1
! ----------------------------------------------------------------------------
2
! PluralObj - an Inform library to allow plural nouns. For example, a pair of
3
! gloves, some adverts, or a pile of magazines. Give an object the
4
! attribute 'pluralobj' and the correct messages will appear.
6
! #include it just before VerbLib.
7
! (c) Andrew Clover, 1995, but freely usable. Release 2.
8
! Compatible with Inform 5.5, library 5/12
9
! ----------------------------------------------------------------------------
11
! NB. This library provides LibraryMessages in order to change the library
12
! responses to plural-aware ones. If you want to provide your own library
13
! messages, call the LibraryMessages object LibraryMessages2.
15
! This library gives you some commands to use instead of just printing 'it' or
16
! such like. They are itthey, itthem, doesntdont, isntarent, thatthose,
17
! thisthese (lower case initials); ittheyc, itstheyrec, thatthosec,
18
! thisthesec, thatstheyre, thattheyc (upper case). Also verbsuf, which just
19
! prints 's' for singular-form verbs. The commands also print the correct
20
! pronoun for animates. One parameter is necessary, an object number to check
21
! for pluralobj. With anything else, your printing commands will have to check
22
! for the pluralobj flag themselves.
26
object LibraryMessages "lm"
28
#IFDEF LibraryMessages2;
29
i=runroutines(LibraryMessages2,before);
33
i=action; ! pointless statements to stop a compiler warning
34
i=action; ! 'unused variable' appearing if lm2 object absent
38
print "You already have ";
80
print "You haven't got ";
89
if (second has pluralobj)
93
" unfortunately closed.";
106
print "(first taking ";
113
print "You need to be holding ";
115
print " before you can put ";
117
" into something else.";
122
" can't contain things.";
128
if (second has pluralobj)
136
print "You'll need to take ";
142
print "(first taking ";
152
" in your possession.";
164
" not something you can enter.";
169
print "You can't see inside, since ";
171
if (noun has pluralobj)
180
if (second has pluralobj)
192
" seem to be something you can unlock.";
197
" unlocked at the moment.";
204
" seem to fit the lock.";
212
" seem to be something you can lock.";
217
" locked at the moment.";
221
print "First you'll have to close ";
230
" seem to fit the lock.";
236
" not something you can switch.";
247
" not something you can switch.";
258
" not something you can open.";
276
" not something you can close.";
286
print "You're not wearing ";
293
print "You can't wear ";
299
print "You're not holding ";
305
print "You're already wearing ";
313
" plainly inedible.";
318
" would achieve little.";
320
print "You can't usefully blow ";
324
print "No, you can't set ";
328
print "No, you can't set ";
334
print "But you aren't holding ";
449
if (i hasnt pluralobj)
456
if (i hasnt pluralobj)
463
if (i hasnt pluralobj)
470
if (i hasnt pluralobj)
477
if (i hasnt pluralobj)
484
if (i hasnt pluralobj)
491
if (i hasnt pluralobj)