intfiction.org

The Interactive Fiction Community Forum
It is currently Sun May 19, 2013 10:36 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Feb 24, 2012 4:50 pm 
Offline

Joined: Fri Feb 24, 2012 4:40 pm
Posts: 3
Hi everyone, I'm an absolute beginner with Inform 7 and I wonder if someone could answer a quick question. I've been following a wikibooks tutorial that introduces understanding, so, for example:
Code:
Understand "toadstool" as the mushroom.

and simple conditions,
Code:
Understand "toadstool" as the mushroom when the mushroom is visible.


My question is, how do I make "toadstool" stand for mushroom ONLY AFTER the mushroom has been examined?
I.E. something like
Code:
Understand "toadstool" as mushroom when the player has examined the mushroom.

Or:
Code:
If the player examines the mushroom: understand "toadstool" as the mushroom.


Thanks in advance!


Top
 Profile Send private message  
 
PostPosted: Fri Feb 24, 2012 5:09 pm 
Offline

Joined: Fri Feb 24, 2012 11:44 am
Posts: 14
Code:
Understand "toadstool" as mushroom when we have examined the mushroom.


Although I'm not sure that you really want to do this, as the player might want to use the word "toadstool" to mean the mushroom without having examined it.


Top
 Profile Send private message  
 
PostPosted: Fri Feb 24, 2012 6:00 pm 
Offline

Joined: Fri Feb 24, 2012 4:40 pm
Posts: 3
Thanks. I had this working by setting a variable when the player examined the mushroom, but I knew there had to be a more elegant way. And yes, I understand your point; my motivation is really just about learning how things like this are done, without consideration of whether they should be done.


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: Google [Bot] and 2 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