intfiction.org

The Interactive Fiction Community Forum
It is currently Fri Aug 29, 2014 5:07 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Nov 29, 2012 11:29 pm 
Offline
User avatar

Joined: Tue Oct 23, 2012 7:32 pm
Posts: 49
Location: Twin Falls, Idaho, USA
I'm trying to print the banner text, followed by a MORE prompt, and *then* the room description with the status line.

Here's the example transcript I'm trying to implement:

+++

Introductory text.

[MORE]

(Clears screen)

Waiting For Room Description 01
An Interactive Example by Jay Goemmer
Release 1 / Serial number 121129 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N) SD

[MORE]

Middle of Nowhere
Well, here you are. *Again.*

>

(Status line is active.)


+++

Here's the source code I'm wrestling with:
Code:
"Waiting For Room Description 01" by Jay Goemmer

The story headline is "An Interactive Example". 

Include Basic Screen Effects by Emily Short.

When play begins: [This displays the introduction before the title.]
clear the screen;
say "[line break][line break]Introductory text.[paragraph break]";
say "[bracket]MORE[close bracket]";
wait for any key;
clear the screen;
say "[line break]";
say "[banner text]";
say "[line break]";
say "[bracket]MORE[close bracket]"; 
wait for any key ;
say "[line break]".
[;
move the player to Opening_Room. ]
		[ Forces looking at room. ]
		
Opening_Room is a room.  The printed name is "Middle of Nowhere".  The description is "Well, here you are.  *Again.*" 
As usual, any help you can offer is greatly appreciated.

Thanks and cheers,

_________________
Jay Goemmer
"Tau Zero"

"Went with Vyznev's solution as the least objectionable of a bad lot. I7 emits slight wheeze and a billow of steam, but no alarming clunking noises as yet. Will monitor closely."
--"maga", Dec 2012


Top
 Profile Send private message  
 
PostPosted: Fri Nov 30, 2012 1:48 am 
Offline

Joined: Sat Jan 23, 2010 4:56 pm
Posts: 3316
Something like this:

Code:

This is the post-initial-banner rule:
	wait for any key;
	clear the screen.

The post-initial-banner rule is listed after the display banner rule in the startup rules.
The post-initial-banner rule is listed before the initial room description rule in the startup rules.


Top
 Profile Send private message  
 
PostPosted: Fri Nov 30, 2012 2:29 am 
Offline
User avatar

Joined: Tue Oct 23, 2012 7:32 pm
Posts: 49
Location: Twin Falls, Idaho, USA
zarf, thanks again for showing me the path out of yet another "sticky wicket!" ;) :D

Here's the amended code for "inquiring minds":
Code:
"Waiting For Room Description 02" by Jay Goemmer

The story headline is "An Interactive Example". 

Include Basic Screen Effects by Emily Short.

When play begins: [This displays the introduction before the title.]
clear the screen;
say "[line break][line break]Introductory text.[paragraph break]";
say "[bracket]MORE[close bracket]";
wait for any key;
clear the screen;
say "[line break]".
		

[ Thanks yet again to Andrew "zarf" Plotkin for coming to the rescue (yet again!) with the layout for the following three pieces of code. ]

This is the post-initial-banner rule:
  say "[bracket]MORE[close bracket]"; 
  wait for any key;
  say "[line break]".

The post-initial-banner rule is listed after the display banner rule in the startup rules.
The post-initial-banner rule is listed before the initial room description rule in the startup rules.


Opening_Room is a room.  The printed name is "Middle of Nowhere".  The description is "Well, here you are.  *Again.*" 


[ I'm trying to print the banner text, followed by a MORE prompt, and *then* the room description with the status line. ]

[ Example transcript:


Introductory text.

[MORE]

(Clears screen)

Waiting For Room Description 02
An Interactive Example by Jay Goemmer
Release 1 / Serial number 121130 / Inform 7 build 6G60 (I6/v6.32 lib 6/12N) SD

[MORE]

Middle of Nowhere
Well, here you are.  *Again.*

>

(Status line is active.) ]

_________________
Jay Goemmer
"Tau Zero"

"Went with Vyznev's solution as the least objectionable of a bad lot. I7 emits slight wheeze and a billow of steam, but no alarming clunking noises as yet. Will monitor closely."
--"maga", Dec 2012


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: No registered users 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:  
cron
Powered by phpBB® Forum Software © phpBB Group