intfiction.org

The Interactive Fiction Community Forum
It is currently Thu May 23, 2013 8:36 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sun Apr 22, 2012 7:37 pm 
Offline

Joined: Sat Oct 15, 2011 4:47 pm
Posts: 18
I'm writing a conditional description. I've defined "unfamiliar." I write:

[if any room is unfamiliar], but this won't compile. However, this will:
[if the number of unfamiliar rooms is at least 1].

This is from exercise 4.7 in Aaron Reed's book.

I was under the impression that Inform knows what "any" means...Reed gives "any window is visible" as an example of a condition, on page 89. What am I messing up or not understanding?

_________________
My IF blog


Top
 Profile Send private message  
 
PostPosted: Sun Apr 22, 2012 8:15 pm 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 2085
Well, that's a corker.

"Any" should indeed work in descrptions -- see chapter 6.15. But it doesn't, at all. You should file that as a bug.

You can get the effect you want by substituting "a room", e.g. "if a room is unfamiliar".

Somewhat awkwardly, this also works: "if anywhere is unfamiliar". ("Anywhere" works like "any room", and "anything" works like "any thing". Except they avoid this bug.)


Top
 Profile Send private message  
 
PostPosted: Mon Apr 23, 2012 1:23 pm 
Offline

Joined: Sun Dec 05, 2010 11:07 am
Posts: 321
Location: ኢትዮጵያ
Similarly, you could say "if there is an unfamiliar room".


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: maga 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