intfiction.org

The Interactive Fiction Community Forum
It is currently Thu Oct 19, 2017 8:27 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Mon Dec 05, 2016 7:43 pm 
Offline

Joined: Mon Dec 05, 2016 7:36 pm
Posts: 1
Hi. I'm new and I'm trying to make my first simple inform game. I wanted to make a condition about "instead of inserting water into something"... but inform doesn't seem to recognize the verb. This is the part of my current game typed out (sorry, there are probably a ton of things I'm not supposed to do, but this is my first attempt).

Quote:
Instead of inserting water into anything except a mug:
say "No, that'll be ruined. Try putting it in a mug."
After inserting tea into the mug or inserting water into the mug, if tea and boiled water are in the mug at the same time:
say "Congratulations, you made tea."
now the boiled water is nowhere,
now the tea is edible.

(note: I did define "boiled" earlier, at least to the best of my knowledge.)

I'm super iffy about that second part but that's the idea I'm trying to get across, and I was experimenting with ways to phrase it but I can't get past this roadblock.
For the first part, I thought it would work since it seemed to be pretty close to some of the examples I read in the manual.

When I type phrases like the ones above, inform keeps reading the verb as "inserting water into anything except a mug," or whatever the whole phrase is. How do I get it to read them as different phrases, or a verb and a phrase?


Top
 Profile Send private message  
Reply with quote  
PostPosted: Mon Dec 05, 2016 9:45 pm 
Offline

Joined: Tue Nov 08, 2011 8:11 am
Posts: 2181
Location: US - Central
Code:
Check inserting water into something (called M):
   if M is not a mug:
      say "No, that will be ruined. Try putting it into a mug." instead.

Check inserting tea into something (called M):
   if M is not a mug:
      say "You probably want to put that into a mug if you intend to drink it." instead.

After inserting something into a mug (called M):
   if M contains tea and M contains boiled water:
      now a random boiled water in M is off-stage;
      now the tea is edible;
      say "Congratulations, you made tea."


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 5 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