intfiction.org

The Interactive Fiction Community Forum
It is currently Thu Dec 18, 2014 12:36 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Making a Table
PostPosted: Thu Nov 29, 2012 7:53 pm 
Offline

Joined: Sun Nov 11, 2012 2:56 pm
Posts: 18
I want to make a table of an airplane manifest including about 100 names. In my game, you have to click something to view the whole manifest on the computer. Not sure how you'd do that. But right now, all I have is:

John's computer is an object in the Control Tower.

Table of Manifest.
"1" "John Jansen
"2" "Hank Williams"

...The List goes on.

I need a lot of help please.


Top
 Profile Send private message  
 
 Post subject: Re: Making a Table
PostPosted: Thu Nov 29, 2012 9:30 pm 
Offline
User avatar

Joined: Fri Feb 17, 2012 9:41 pm
Posts: 104
It depends on how you want the list of people to be presented to the player. If you just want the names to be listed one per line without any other special processing, that should be fairly easily. Something like this will do it:
Code:
Instead of touching John's computer:
	say "The names on the manifest are as follows:[paragraph break]";
	repeat through table of manifest:
		say "[name entry][line break]".

Note also that you should give your Table headers. Something like this:
Code:
Table of Manifest
a number	name
"1"	"John Jansen"
"2"	"Hank Williams"


Top
 Profile Send private message  
 
 Post subject: Re: Making a Table
PostPosted: Thu Nov 29, 2012 10:30 pm 
Offline

Joined: Tue Mar 09, 2010 2:34 pm
Posts: 3222
Location: Burlington, VT
Also, you probably don't want the numbers to be in quotation marks.


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 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