intfiction.org

The Interactive Fiction Community Forum
It is currently Sat Feb 23, 2019 4:54 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Feb 13, 2019 5:02 am 
Offline

Joined: Sat Feb 13, 2016 6:26 pm
Posts: 168
I was wondering, how can we get the game to reply "This is not something you need to refer to in this game?" I suppose it is related with the "not something you need to refer to" parser error, but then what? How do I associate specific objects with this response?

One way, I guess, is to say

Code:
The bedroom is a room.

Unimportant is a kind of thing.

The flip-flops are in the bedroom. They are unimportant.

Instead of doing anything with an unimportant:
   say "This is not something you need to refer to in this game."


Nevertheless, this way does not use the parser error...


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Feb 13, 2019 7:55 am 
Offline

Joined: Mon Jan 08, 2018 2:29 pm
Posts: 2
Location: Germany
It seems to be a holdover from Inform 6 times: you could attach dictionary words to a room itself, and this error would be printed when the player refers to those words. See page 106 of the DM4 for a better explanation.

However, searching through the I6 code generated by Inform 7, it appears that the parser never generates this error.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Feb 13, 2019 8:26 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 5568
Location: Burlington, VT
This is a different issue, I guess, but The Neutral Standard Responses extension (which seems to work with the latest version of Inform 7) gives you functionality where it distinguishes words that have some use but not right now from words that aren't in the dictionary at all. In a game where there is a matchbook in the game but not visible, but nothing called "gogog," you will get this:

Quote:
>x matchbook
You can't see anything called "matchbook" right now. [Or I misunderstood you.]

>x gogog
[You don't need to use the word "gogog" in this story.]


And Unknown Word Error by Mike Ciul does the same thing without changing all the standard parser error responses. (It's incorporated into Neutral Standard Responses.)

But then this is different from the functionality you're talking about, as ArdiMaster points out--that seems like something that can be done now by making an unimportant scenery object (I would recommend always making it scenery) and having a message for it. (It looks like in I6 the unimportant words were technically names for the room?)


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Feb 13, 2019 10:44 am 
Offline

Joined: Sat Feb 13, 2016 6:26 pm
Posts: 168
It is ironic that we actually need to create these objects as scenery things, in order not to use them.

How about making only one such object as an omnipresent backdrop and then assign several names to it, through an "understand" rule?

Code:
The Attic is a room. "Thousands of useless crates and boxes suffocate the narrow space under the roof."

The Corridor is down from the Attic. "A narrow space dressed with old wall paper."

Unimportance is a backdrop. It is everywhere.

Understand "crate" or "crates" or "box" or "boxes" or "roof" or "wallpaper" or "wall paper" as unimportance.

Instead of doing something with unimportance, say "Nah, don't bother. There are more important things in this game." [Which sucks as a reply anyway, since it stinks of out-of-worldliness.]


Of course, this causes the problem of cancelling out every possible box or crate or roof the game could otherwise introduce in other parts of its geography.

I guess, the question I need to answer is, do I like such a reply? As I said, it is an out of world reply. It is not the narrator, but the story's Great Architect who suddenly speaks...

---

EDIT:

Quote:
Of course, this causes the problem of cancelling out every possible box or crate or roof the game could otherwise introduce in other parts of its geography.


This is resolved by:

Code:
Understand "crate" or "crates" or "box" or "boxes" or "roof" as unimportance when the location is the Attic. Understand "wallpaper" or "wall paper" as unimportance when the location is the Corridor.


Top
 Profile Send private message  
Reply with quote  
PostPosted: Wed Feb 13, 2019 12:06 pm 
Offline

Joined: Mon Dec 15, 2014 9:15 am
Posts: 428
I posted some info on the parser errors in the "Hidden secrets of Inform 7 thread" in Nov 2017. (That's the thread that was revived a few days ago.) The "not something you need to refer to error" is one of several which are currently unused.


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

All times are UTC - 6 hours [ DST ]


Who is online

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