intfiction.org

The Interactive Fiction Community Forum
It is currently Mon May 20, 2013 3:20 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue Apr 12, 2011 5:51 am 
Offline

Joined: Wed Apr 06, 2011 4:57 am
Posts: 16
Hi guys, it's me again probably with a silly question but yet again any help is really appreciated :)

I'm trying to create a few rooms which desire electrical appliances to be used as part of the puzzles (or at least, just to make some of the rooms appear more realistic) and i was just wondering if anyone had any suggestions on how i could make them interacable? as in the player could easily just type in "use cooker" or "use shower" and be able to use it without reservation. I've tried creating new commands but inform7 keeps screaming me saying i don't have the right verb. I've used instead and before rules but it's sort of diverting the players attention away from the object rather than directly to it

So yes, thankyou for anything you have to suggest code wise :)


Top
 Profile Send private message  
 
PostPosted: Tue Apr 12, 2011 7:48 am 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 2127
Location: Burlington, VT
You can try something along these lines:

Code:
Studio Apartment is a room. The cooker is a device in Studio Apartment. The shower is an enterable container in Studio Apartment. The hoojab is in Studio Apartment.

Using is an action applying to one thing. Understand "use [something]" as using.
Instead of using: say "You'll have to be more specific about how you want to use [the noun]."
Instead of using the cooker: try switching on the cooker.
Instead of using the shower: try entering the shower.


And so on for other things that you can use. You'll probably want to implement switching on the devices so that they'll do something.

What was the code you were trying that didn't work? (One trap I fell into: you can't write "switching the cooker on," it has to be "switching on the cooker.")


Top
 Profile Send private message  
 
PostPosted: Wed Apr 13, 2011 10:55 am 
Offline

Joined: Sun Mar 01, 2009 8:02 pm
Posts: 902
You might want to look at the extension Modern Conveniences by Emily Short. I've never used it, but it creates some basic kitchen and bathroom appliances.


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: lavonardo and 3 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