intfiction.org

The Interactive Fiction Community Forum
It is currently Sun May 19, 2013 11:03 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Wed May 27, 2009 1:15 pm 
Offline

Joined: Tue Jan 20, 2009 4:21 pm
Posts: 23
That's a good tip! Thanks! Now, another question. I would like to keep track of the player's moves purely through a time (of day)-based system, and would like to change the ending screen to show the amount of time taken, instead of the number of turns. Also, I would like the time to show up only after the first "scene" has ended (scene number is greater than 1). Is there any way to do this without completely rewriting the obituary, as described on page 17.36 of the Documentation?


Top
 Profile Send private message  
 
PostPosted: Fri May 29, 2009 1:41 am 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 887
Goldenrod111 wrote:
I want that rule to run only when the player is taking the lightbulb from the lamp, and the action to run normally every other time. Are you saying that it might not run even then?


Try the following and you'll see what I mean:

Code:
The lamp shop is a room. The light bulb is in the lamp shop. The antique lamp and the modern lamp are containers in the lamp shop.

Instead of removing the light bulb from the antique lamp:
   say "Light bulb removed from the antique lamp.";
   silently try taking the light bulb.
   
After taking the light bulb when the light bulb was in the modern lamp:
   say "Light bulb removed from the modern lamp."
   
Test me with "get bulb/put bulb in antique lamp/get bulb/put bulb in antique lamp/get bulb from antique lamp/put bulb in modern lamp/get bulb/put bulb in modern lamp/get bulb from modern lamp"


The antique lamp uses "removing it from", the modern lamp uses "taking". The difference is that "removing it from" applies only when the player types TAKE BULB FROM LAMP, but not when they type TAKE BULB (when the bulb is in the lamp), and it is likely that most players use the shorter version of the command. When the bulb is not in a lamp taking is not affected at all.


Top
 Profile Send private message  
 
PostPosted: Fri May 29, 2009 8:19 am 
Offline

Joined: Tue Jan 20, 2009 4:21 pm
Posts: 23
I believe that, after I posted that question, I did test your suggestion, as it now uses "taking".


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours [ DST ]


Who is online

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