intfiction.org

The Interactive Fiction Community Forum
It is currently Fri Feb 22, 2019 12:19 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Controlling noun prefix
PostPosted: Wed Jan 16, 2019 12:15 pm 
Offline

Joined: Fri Oct 06, 2017 8:19 am
Posts: 35
Can someone please point me towards the documentataion that explains how to control noun prefixes.

For example I have the following, but the output describes the Elves as AN Elves, I want it to say SOME Elves.

The idle Elves are people. The printed name of The idle Elves is "Elves".

The idle Elves are in The Workshop.

The busy Elves are people. The printed name of The busy Elves is "Elves".

The busy Elves are nowhere.

The output:

The Elves Workshop


You are in the Elves Workshop, there are row upon row of workbenches with toys, decorations and christmas paraphernalia of every type in various states of completion.

You can see a Poster and an Elves here.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Jan 16, 2019 1:19 pm 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5568
Location: Burlington, VT
See ยง3.18 of Writing with Inform, "Articles and Proper Names."

In many cases, including this one, it's as simple as using the indefinite article rather than the definite the first time you declare it:

Code:
Some idle Elves are people.


You can also specify the indefinite article by hand, if that helps:

Code:
A vicar is a person. The indefinite article of the vicar is "your local".


You can also use that last trick to make the indefinite article of a singular noun "some," so you get "Some water is here" whenever that is required. But in this case, Inform will use the fact that you defined the Elves with "some" to conclude that it ought to say "Some Elves are here," and that's what you'll want to happen, so no special treatment is required.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Jan 16, 2019 4:24 pm 
Offline

Joined: Fri Oct 06, 2017 8:19 am
Posts: 35
Perfect. Thank you!


Top
 Profile Send private message  
Reply with quote  
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 13 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