intfiction.org

The Interactive Fiction Community Forum
It is currently Wed May 22, 2013 2:26 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu Apr 19, 2012 12:09 am 
Offline

Joined: Fri Feb 10, 2012 12:05 am
Posts: 27
I am using fluid containers (like so):

Code:
A fluid container is a kind of container.  A fluid container can be large or small.  A fluid container can be full or empty. 


My problem is that when a fluid container is empty, the text reports it twice:

Code:
empty carton (empty)


The first empty I added because "empty carton" sounds more natural than "carton (empty)" but I would like to know how to get rid of the parenthesized text, IFF the carton is empty.

I am also having a problem with letting things be recognized by their properties. For example, if the carton is filled with milk, it prints as "Carton of Milk". "Drink milk" and "Drink carton" will both work, as I have the fluid container described by the liquid it contains, but "Drink carton of milk" doesn't work.


Top
 Profile Send private message  
 
PostPosted: Thu Apr 19, 2012 1:39 am 
Offline

Joined: Wed Oct 13, 2010 1:42 am
Posts: 343
For getting rid of the parenthesized text:

Code:
Rule for printing room description details: stop.


See 17.15 in the documentation.

I'd have to check, but IIRC, the fix for the "carton of milk" problem is something like:

Code:
Understand "of" as referring to a fluid container.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group