home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
bbs
/
trivial2
/
trivia.doc
< prev
next >
Wrap
Text File
|
1985-12-31
|
10KB
|
238 lines
========================================
Documentation for Trivial Pursuit
a Script Program for BBS Express! ST
written by Keith Ledbetter 11-17-87.
==========
Edited by Kolonel Kink of the
Compu-erotica bbs (312-425-6061)
12-12-87
========================================
General Overview
----------------
Welcome to Trivial Pursuit, a Script game written for BBS Express! ST
systems. This game is based loosely on 2 things: (1) the actual Trivial
Pursuit board game, and (2) previous 'Trivia' scripts written by Express!
SysOps (such as John R. Heritage).
There are some very nice features in this version of Trivia, which are
listed below.
- The program will serve as a good learning tool for those of you who
are learning Script language. It does many of the "less-used" features
of Script, such as using the NOTE and POINT commands to index into each
of the six question files.
- This program is HUGE. It gives some good insight into just how powerful,
large, and fast a script file can be now under version 1.30 of the BBS.
- The most exciting ability is that your USERS can add their own trivia
questions to the game. You, as SysOp, can control this. It's up to
you to set the security level required to add new questions to the
game. In other words, you can let everyone add questions, or only
yourself.
- All of the functions are contained in one .COM file: the playing of the
game, viewing of the Hall of Fame, insertion of names into the Hall of
Fame, adding new questions to the game, and viewing the "tips" file.
- You can control whether new questions added to the game are used
immediately or "hidden" until you validate them.
- You can assign a set number of questions to be played per game.
- You can set a time limit for the game.
- You can display the name of the person who entered the question
when the question is used in the game.
- An unlimited number of questions in each category (limited only by
your free disk space, of course).
- You can specify that you don't want users to be able to get the
same question in any one game. In this case if all the questions
in a category have been used the category is rendered dead.
- Multiple answers supported. In other words, "Illinois" could be
answered by either "Illinois", "IL", or "ILL".
The Program
-----------
To put this game on your BBS, you WILL have to recompile the script file
using the SC.TTP program after making a few changes to some of the
variables in the file. The steps are as follows:
1. Boot up your favorite text editor and load in TRIVIA.SCR.
2. Change the PATHNAME define to the drive and folder that you are going
to place the data files (the .QUE and .DAT files).
3. Change the HEADING define to the name of your BBS system.
4. Change the ADD_LEVEL define to your liking. This number represents the
COMMAND LEVEL required to add new questions to the trivia game. In
other words, setting
define ADD_LEVEL = 1
would mean that all users with a level 1 command level could add
questions to the game.
5. Change the SHOW_ANSWERS define to your liking. If this field is set
to 'Y', then the user will be shown the correct answer to any question
that he/she misses. If set to 'N', then the user will simply be told
that they missed the question.
6. Change the SHOW_AUTHOR define to your liking. If it is set to 'Y'
the person's name who entered the question will be displayed
just above the question when it is asked.
7. Change the REPEATS define to your liking. If set to 'N' a player
will never be able to play out one category to the point that he
starts getting repeat questions. When set to 'N' after a player
receives all the questions in a particular category that category
is closed. In the case that only one category remains active the
game is automatically ended.
8. If you would like to apply a maximum number of questions to be asked
per game change the MAX_QUESTIONS define to the max. number you
would like. If you don't want a limit set it to 'N'.
9. If you would like to impose a time limit on the game change the
MAX_TIME define to the number of minutes per game you would like.
If no limit is desired set to 'N'.
NOTE: All these limitation work with one another. If you set them all the
game will be ended by whatever limitation is encountered first.
10. If you would like to use categories other than those set up with
the game you may do so by making some obvious changes in the program
at the points requiring category names and filenames. These areas
of the program are heavily highlighted. When this version was
released I (Kink) included some extra question sets. Feel free to
inject them into your game.
11. Change the WAIT_FOR_VALIDATION flag to either 'Y' or 'N', depending on
your preference. If you set this field to 'Y', then new questions added
by users WILL NOT be 'used' until you physically validate them.
By changing the SYSOP_NAME variable to your handle any questions
that you enter will be immediately valid regardless of the setting
of WAIT_FOR_VALIDATION. Change the LOG_FILE variable to the location
of your system's log. Use the whole path/filename. If you select
'Y' for WAIT_FOR VALIDATION you will be told in your activity log
when there is a new addition as well as what file(s) the addition(s)
were made in.
When you do need to validate a question here's what you do.
It is accomplished by loading the ".QUE" file into your favorite
word processor. The question file layout looks like this:
valid : N
points: 1
author: SYSOP*Keith
quest1: What kind of nuts were originally used in the
quest2: old shell game?
answer: Walnuts
answer: Walnut
answer:
Each question will be in this format. As you can see, the above
question WOULD NOT be used because the 'valid' field is set to 'N'
for NO. To validate questions, you just simply go through each
question file, changing the 'N' to a 'Y' for each question that you
want to validate.
12. Save the new TRIVIA.SCR file, and exit your text editor.
13. Compile TRIVIA.SCR into TRIVIA.COM by running the SC.TTP program.
14. Place TRIVIA.COM into your 80-column menu path.
15. Copy six .QUE files and the two .DAT files into your data path
that you specified in number 2 above.
16. Add the Trivia game to your SYSDATA file with the SYSEDIT.TOS program.
How the game works
------------------
As in the Trivial Pursuit board game, there are six categories available
in the game. These are usually:
1. Geography
2. Entertainment
3. History
4. Arts and Literature
5. Science and Nature
6. Sports and Leisure
(You may change the categories as specified earlier)
Each question in the above categories has a 'point value' associated with
it. This point value ranges from 1-9 points, depending upon the difficulty
of the question.
For each question answered correctly, the user's TOTAL SCORE will be
incremented by the point value of that question. For each wrong answer,
one point (1) will be decremented from the user's total score (regardless of
the point value of the question).
Before each 'round' of the game, two categories will be picked at random.
The user will be shown the two categories, along with the point value
of the question that will be asked in each category. It is then up to the
user to choose from which category the question will be asked.
Words of caution
----------------
This trivia game is written so that the question files will be able to grow
to huge proportions, without any slow-down in execution speed. This is
accomplished through heavy uses of indexing into the question files. For
this reason, it is important that you NEVER (never, never, never!) change the
physical order of the question files.
So, when you are 'validating' questions, be extremely careful to do nothing
except change the 'N' to 'Y' in the 'valid' area. Adding just one extra
character to the file in the wrong place will screw the indexes all up.
But, as usual, I am over-emphasizing this point slightly. If you ever do
want to change the order of a question file (or, if you ever do it by
accident), there is an easy way to fix it. Simply delete the TRSTART.DAT
file. If this file is not found when playing the game, the script will
simply start over with question #1 of each category, and will create a new and
valid TRSTART.DAT file.
I hope you and your users enjoy this one. I think it'll be extremely
popular once we get some large question files built. Check our BBS in the
next couple of weeks -- we hope to have some large question files built for
you to download.
Enjoy!
Keith
&
Kolonel Kink