home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / bbs / util / quip.lha / Quip / quip.script < prev    next >
Text File  |  1993-08-14  |  2KB  |  69 lines

  1. (this line never used.. always ignored)
  2.  
  3.     IN_FILE specifies which datafile to use.
  4.  
  5. #IN_FILE
  6.  cookie.dat
  7.  
  8.     FILE_PREFIX specifies which prefix file to use.
  9.  
  10. #FILE_PREFIX
  11.  pre
  12.  
  13.     FILE_SUFFIX specifies which suffix file to use.
  14.  
  15. #FILE_SUFFIX
  16.  pre
  17.  
  18.     RANDOM tells Quip to randomly select the file (if it can).
  19.  
  20. #RANDOM
  21.  
  22.     Next we have a list.  One of these three lines will be chosen
  23.     at random.
  24.  
  25.     Note the following:
  26.  
  27.     "quip" creates the number of the quip that was selected.
  28.  
  29. #RND FORMAT
  30.  Today's Quip @{quip}:\n
  31.  Machine's Quip #{quip}:\n
  32.  Mach's Mach Quip @{quip}:\n
  33. #END
  34.                                                                 More text ->                                                         
  35. #Note that this is printed before the other Quips.
  36. #This will be printed out when the script is run.                                  But this part of the text should never be seen!
  37. #
  38.     
  39.         That's good for now.. let's tell Quip to generate quips with these
  40.     parameters.
  41.  
  42. #MAKE_QUIPS
  43. #
  44. #Note that this is printed after the quips are generated, because Quip
  45. #now handles printed text in the order you write it.  Read the script
  46. #to see what it looks like.
  47. #
  48. #Oh yeah, if you ran this by Icon, press RETURN to close the window.
  49.  
  50. @ <- Noticed this?
  51.  
  52.     Keep in mind.. the more comments you have, the more time it takes
  53. for Quip to read a QuipScript, since it has to go through every line you
  54. type to figure out what to do.  The above '@' character is there to quit
  55. the scripting a little faster, so it doesn't try to figure out what's in
  56. the rest of the script.  It's also useful in that it allows you to put
  57. scripts within your Quip datafiles <grin>.
  58.  
  59.     Just to prove that it doesn't look past that line, run this script
  60. and see if it prints the following:
  61.  
  62. #Dust bunnies make better lovers.
  63.  
  64.     Didn't print it, did it?
  65.  
  66.     Be aware, however, that scripts using '@' characters within their
  67. parameters cannot be used in a Quip datafile, since Quip would think the
  68. '@' was pointing out where certain Quips are!
  69.