intfiction.org

The Interactive Fiction Community Forum
It is currently Sun May 19, 2013 12:42 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Mon Mar 12, 2012 3:26 pm 
Offline

Joined: Sun Nov 06, 2011 12:17 pm
Posts: 156
Location: Toledo, Ohio, USA
I have enclosed the code for the Actor's shorts and shirt. The way I have it arranged, I am not able to put any object into any of the pockets. Should I try making the shorts and the shirt both into a bag of of holding; in which case how do I show the pockets?

RonG

Code:
++khakis:AlwaysWorn
   'pair/khaki/khakis/shorts''pair of rugged khaki shorts'
   "It's a pair of khakis with large, useful pockets. "
;

+++khakipockets:BagOfHolding,Component,Container
   '(khaki)pocket/pockets''pocket'
   "One of the things you like best about these shorts is the nice, deep
    pockets. "
   isPlural=true
   bulkCapacity=200
   affinityFor(obj){return 200;}
   theName='your khaki pockets'
   aName='khaki pockets'
   disambigName='khaki pockets';

++AlwaysWorn 'khaki shirt''tough khaki shirt'
   "The tough shirt matches your shorts and also has some useful pockets. "
;

+++shirtpockets:BagOfHolding,Component,Container
   '(shirt)pocket/pockets''pocket'
   "Like your shorts, the shirt also has some handy pockets. "
   isPlural=true
   bulkCapacity=200
   affinity(obj){return 150;}
   theName='your shirt pockets'
   aName='shirt pockets'
   disambigName='shirt pockets';


Top
 Profile Send private message  
 
PostPosted: Mon Mar 12, 2012 7:01 pm 
Offline

Joined: Sun Mar 01, 2009 8:02 pm
Posts: 902
The problem turns out to be distressingly simple. You failed to put a space in the vocabWords of the pockets. You need:

Code:
'(khaki) pocket/pockets'


T3 doesn't usually care about spaces -- but any time you're within quotation marks, you need to be careful. That space is what separates the adjective vocabWords from the noun vocabWords.


Top
 Profile Send private message  
 
PostPosted: Wed Mar 14, 2012 10:51 am 
Offline

Joined: Sun Nov 06, 2011 12:17 pm
Posts: 156
Location: Toledo, Ohio, USA
Thanks again for all the help and quick response you guys furnish. I would have worked on that one for days. I'm now working on rooms and 'things', so I'm sure I'll be posting on this forum many more times.

RonG


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


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