intfiction.org

The Interactive Fiction Community Forum
It is currently Sat Jul 21, 2018 10:11 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
PostPosted: Sun May 04, 2014 8:02 pm 
Offline

Joined: Tue Mar 18, 2008 9:04 am
Posts: 1115
This topic is for discussions related to Ordinary Room Description by Emily Short


Top
 Profile Send private message  
Reply with quote  
PostPosted: Sun Jan 07, 2018 11:43 pm 
Offline

Joined: Mon Mar 28, 2011 9:05 pm
Posts: 40
Is there a version newer than 3/150410? It doesn't give compile errors, but the default behavior isn't restored - items in a room aren't listed, for instance.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 08, 2018 12:23 pm 
Online

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5311
Location: Burlington, VT
Can you give an example of what's going wrong, exactly? At the end of the included example in the documentation, it does say
Quote:
>[5] look
Sample Chamber
You can see a gold coin here.

which seems right. Though it seems like the example deals mostly with describing what's on scenery supporters, which is something whose default behavior has changed over time--I guess if the default behavior has changed the extension wouldn't reflect that.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 08, 2018 1:06 pm 
Offline

Joined: Mon Mar 28, 2011 9:05 pm
Posts: 40
All I get is:
Quote:
>[5] look
Sample Chamber


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 08, 2018 1:07 pm 
Offline

Joined: Mon Mar 28, 2011 9:05 pm
Posts: 40
I'll mention that what I'm trying to accomplish could be better handled by Mentioned in Room Description, but that hasn't been updated in a very, very long time and throws errors when compiling.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 08, 2018 3:26 pm 
Online

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5311
Location: Burlington, VT
Odd. Maybe we have different versions of some of the extensions? Are you using Inform 6M62?

Also, in 6M62, it looks to me like the behavior of Mentioned in Room Description is built in. If I put a bracketed name in the room name:

Code:
Quarry is a room. The printed name of Quarry is "Quarry[if a stone is in the Quarry] of [list of stones in the Quarry]".

A stone is a kind of thing. Some quartz and some schist are stones. The player carries the quartz and schist.

Test me with "l/drop quartz/l".


or the description:

Code:
The Catskills is a room. "Here is a lovely, secluded fold in the mountains, far from civilization[if Rip Van Winkle is asleep in the location]: as though to prove it, [Rip Van Winkle] is sleeping under a tree[end if]."
   
   
Rip Van Winkle is a man in the Catskills. Rip Van Winkle can be asleep or awake. Rip Van Winkle is asleep. "Rip Van Winkle [if Rip is asleep]sleeps nearby[otherwise]stands here, looking mightily confused[end if]."

After jumping when Rip Van Winkle is asleep in the location:
   say "You startle Rip Van Winkle awake!";
   now Rip Van Winkle is awake.
   
test me with "l/jump/l".


then it doesn't show up in a you-can-see or initial appearance paragraph.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 08, 2018 6:00 pm 
Offline

Joined: Mon Mar 28, 2011 9:05 pm
Posts: 40
I am using 6M62 as well, though I did switch to an updated version of Room Description Control. Anyway, thanks for pointing out that behavior. Never knew it was included. That seems to do everything I want.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 08, 2018 8:05 pm 
Offline

Joined: Mon Mar 28, 2011 9:05 pm
Posts: 40
While we're on the subject..
Let's say I this
Quote:
A grotto is a room. "This is a grotto with a [bowl] in it."
A bowl is an open container. It is here.
A leaf is a thing. It is in a bowl.


How would I list the contents of the bowl?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 08, 2018 9:50 pm 
Online

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5311
Location: Burlington, VT
The Mentioned in Room Description documentation actually has a workaround for that. So the documentation is still helpful even if the extension is obsolete!

Code:
Before printing the locale description of the grotto: now the bowl is unmentioned.


(Funny thing--I searched for "Mentioned in Room Description" and the third hit was something that said "In the room description it wasn't mentioned but..." and I was thinking "Yeah it's annoying when you have to interact with undescribed objects" and then I realized it was a hotel review.)


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Jan 08, 2018 11:46 pm 
Offline

Joined: Mon Mar 28, 2011 9:05 pm
Posts: 40
That technically works, but it's no different from not using the brackets in the first place. What I ended up doing instead was

Quote:
Rule for printing a locale paragraph about an open container (called C):
if something is held by C:
say "[The C] seems to contain [a list of unmentioned things held by C]. ".


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users 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