home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 1
/
FFMCD01.bin
/
bbs
/
util
/
quip.lha
/
Quip
/
quip.script
< prev
next >
Wrap
Text File
|
1993-08-14
|
2KB
|
69 lines
(this line never used.. always ignored)
IN_FILE specifies which datafile to use.
#IN_FILE
cookie.dat
FILE_PREFIX specifies which prefix file to use.
#FILE_PREFIX
pre
FILE_SUFFIX specifies which suffix file to use.
#FILE_SUFFIX
pre
RANDOM tells Quip to randomly select the file (if it can).
#RANDOM
Next we have a list. One of these three lines will be chosen
at random.
Note the following:
"quip" creates the number of the quip that was selected.
#RND FORMAT
Today's Quip @{quip}:\n
Machine's Quip #{quip}:\n
Mach's Mach Quip @{quip}:\n
#END
More text ->
#Note that this is printed before the other Quips.
#This will be printed out when the script is run. But this part of the text should never be seen!
#
That's good for now.. let's tell Quip to generate quips with these
parameters.
#MAKE_QUIPS
#
#Note that this is printed after the quips are generated, because Quip
#now handles printed text in the order you write it. Read the script
#to see what it looks like.
#
#Oh yeah, if you ran this by Icon, press RETURN to close the window.
@ <- Noticed this?
Keep in mind.. the more comments you have, the more time it takes
for Quip to read a QuipScript, since it has to go through every line you
type to figure out what to do. The above '@' character is there to quit
the scripting a little faster, so it doesn't try to figure out what's in
the rest of the script. It's also useful in that it allows you to put
scripts within your Quip datafiles <grin>.
Just to prove that it doesn't look past that line, run this script
and see if it prints the following:
#Dust bunnies make better lovers.
Didn't print it, did it?
Be aware, however, that scripts using '@' characters within their
parameters cannot be used in a Quip datafile, since Quip would think the
'@' was pointing out where certain Quips are!