intfiction.org

The Interactive Fiction Community Forum
It is currently Wed May 22, 2013 9:03 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sat Feb 25, 2012 10:10 am 
Offline
User avatar

Joined: Fri Jan 07, 2011 1:19 pm
Posts: 146
Location: USA
Ran into this recently. Figured I would run it by all of you before getting frustrated with it. I'm having some sort of timing issue in the following code, which results in my room description begin printed twice. If "move player to the chair" is removed the behavior is normal, but no matter where I try to plug that line into "when play begins" I get a weird result. I'm thinking perhaps I can't even put it there? How should I go about this?

Code:
"Begin Room" by Jizaboz

Include Basic Screen Effects by Emily Short.

When play begins:
   say "Here you are in the test lab waiting for the experiment to being.";
   wait for any key;
   clear the screen;
   display the boxed quotation "Chapter 1";
   show the current quotation;
   pause the game;
   now the player is in the chair;


Test Lab is a room. The description of test lab is "You are in a small room made of shiney green tiles."

A chair is an enterable supporter in the Test Lab. The description of chair is "A simple wooden chair."


Result:

Quote:
Test Lab (on the chair)
You are in a small room made of shiney green tiles.

Begin Room
An Interactive Fiction by Jizaboz
Release 1 / Serial number 120225 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N) SD

Test Lab (on the chair)
You are in a small room made of shiney green tiles.

>


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 10:36 am 
Offline

Joined: Fri Feb 24, 2012 11:44 am
Posts: 14
You're going to want to move the player to the chair, without printing a room description. Like so:
Code:
"Begin Room" by Jizaboz

Include Basic Screen Effects by Emily Short.

When play begins:
   say "Here you are in the test lab waiting for the experiment to being.";
   wait for any key;
   clear the screen;
   display the boxed quotation "Chapter 1";
   show the current quotation;
   pause the game;
   move the player to the chair, without printing a room description.


Test Lab is a room. The description of test lab is "You are in a small room made of shiney green tiles."

A chair is an enterable supporter in the Test Lab. The description of chair is "A simple wooden chair."


This eliminates the first room description that appears before the title block:
Quote:
Begin Room
An Interactive Fiction by Jizaboz
Release 1 / Serial number 120225 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N) SD

Test Lab (on the chair)
You are in a small room made of shiney green tiles.

>


Top
 Profile Send private message  
 
PostPosted: Sat Feb 25, 2012 11:00 am 
Offline

Joined: Tue Dec 25, 2007 10:06 am
Posts: 887
Or don't move the player at all and set the PC's initial location: "The player is on the chair."

_________________
Vorple UI libraryBeta testing siteBlog


Top
 Profile Send private message  
 
PostPosted: Sun Feb 26, 2012 9:01 am 
Offline
User avatar

Joined: Fri Jan 07, 2011 1:19 pm
Posts: 146
Location: USA
Oh cool. I thought the answer would probably be simple but it was just eluding me.

Thanks to both of you.


Top
 Profile Send private message  
 
PostPosted: Tue Feb 28, 2012 10:07 am 
Offline

Joined: Fri Jul 16, 2010 2:09 pm
Posts: 1950
My very first Inform project, written in I6 around 1999 and aborted soon afterwards, started with the player in a chair. This takes me back...


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: Eric Eve and 1 guest


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