intfiction.org

The Interactive Fiction Community Forum
It is currently Fri May 24, 2013 5:19 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Apr 02, 2009 9:14 pm 
Offline

Joined: Thu Apr 02, 2009 8:50 pm
Posts: 6
Hi guys. I'm using Inform 7.
My problem is, I've got a person, and I want the player to use the 'wake' or 'wake up' commands on the person, but for the command to simply be the same as examining the person.

I've tried:

understand the command "wake" as something new.
understand the command "wake" as "examine".

now when I type "wake (person's name)" while playing the game, it examines them, and carries out all the stuff I want it to do.

However, if I'm playing, and I type "wake up (person's name)" it doesn't examine the person, or treat it as the 'wake' command! Instead, I get the message:

"I only understand you as far as wanting to wake up."

So, to summarise, if I type "wake (person's name)" and "wake up (person's name)" the program does something different.

I tried adding the lines:
understand the command "wake up" as something new.
understand the command "wake up" as "examine".

but it still just says
"I only understand you as far as wanting to wake up."


Top
 Profile Send private message  
 
PostPosted: Fri Apr 03, 2009 4:14 am 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 888
If you do
Code:
Understand "wake up [something]" as examining.

It should work, BUT you'll probably be better off not making 'wake' a synonym for 'examine': now if you try to wake up anything in the game, it behaves as if you had examined it. Assuming the NPC is named Bob, you could leave the wake verb as it is and simply do
Code:
Instead of waking Bob:
   try examining Bob.


Top
 Profile Send private message  
 
PostPosted: Fri Apr 03, 2009 6:09 pm 
Offline

Joined: Thu Apr 02, 2009 8:50 pm
Posts: 6
Thanks for the advice, I switched to 'Instead of / try examining' and no problems now.


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