home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format 50 / af050sub.adf / ESCAPE_FROM_COMMODORE!! < prev    next >
Text File  |  1993-05-07  |  9KB  |  221 lines

  1. ; "Escape from Commodore!"
  2. ;  Version 1.0
  3. ;
  4. ; Advtenture game written for Commodore's installer utilitiy.
  5. ; Concept and programming by Greg Simon (5/6/93)
  6. ; This code is freely distrubutable, as long as you keep my name on 
  7. ; it, and don't modify it.
  8. ;
  9. ; It may serve useful to use as an example for writing Installer 
  10. ; scripts for actually INSTALLING something...not playing games.
  11. ;
  12. ; Installer is really a great utility, and let me take this moment
  13. ; to complement C= and all the work that went into making it--
  14. ; especially it's entry into the public--so that users (other
  15. ; than developers only) can use it!  Way to go C=!
  16. ;
  17. ;********************************************************************
  18. ;  HEY!  WIN THE GAME FIRST, THEN READ THE SOURCE...OTHER WISE YOU
  19. ;  MIGHT CHEAT..IT'S -VERY- TEMPTING, I KNOW...
  20. ;********************************************************************
  21. ;
  22. ; Write to the author (me) Greg Simon (flames, suggestions, comments)
  23. ;
  24. ; gs@teetot.acusd.edu
  25. ;
  26. ; Greg Simon
  27. ; 2 KingsWoods Drive.
  28. ; New Hope, PA 18938
  29. ;
  30. ;
  31. ;********************************************************************
  32.  
  33. (set hasdos4 0)
  34. (set hasblaze 0)
  35. (complete 0 )
  36.  
  37.  
  38.  
  39. (procedure HALLWAY
  40.  
  41.    (message "\n\nHALLWAY\n\nYou are in the main hallway of Commodore Business Machines.  There are many doors to enter here.  Employees shuffle by murmering things about Marketing...\n\nThere are numerous doors here; leading to the many facets of the CBM building.  Down the hall you see the Graphics Dept, and the OS Dept.")
  42.    (set answer
  43.       (askchoice
  44.          (prompt "What door do you want to enter?")
  45.          (choices "Commodore-Cafe(tm)" "Networking Dept." "Graphics Dept."
  46.                   "OS Dept."           "Software Vault"   "R&D lab"
  47.                   "Lobby")      
  48.          (help helpstring)
  49.       )
  50.    )
  51.    (if (= answer 0) (CAFE))
  52.    (if (= answer 1) (NETWORKING))
  53.    (if (= answer 2) (GFX))
  54.    (if (= answer 3) (OS))
  55.    (if (= answer 4) (VAULT))
  56.    (if (= answer 5) (RDLAB))
  57.    (if (= answer 6) (LOBBY))
  58.  
  59. )
  60.  
  61. (procedure OS
  62.    (message "\n\nOS Design LAB\n\nYou enter the OS design lab, and see Mike Sinz working on some assembly code.  He motions to you to come over.")
  63.    (message "He says, \"You think we should release resource tracking in 4.0?  or maybe wait until version 5?\"")
  64.    (set answer
  65.       (askchoice
  66.          (prompt "Say someting:")
  67.          (choices "\"Let's release it in 4.0.\"" "\"Nahhh, we don't need resource tracking.\"")
  68.          (help helpstring)
  69.       )
  70.    )
  71.    (message "\n\nMike says, \"thanks for your opinion, but I was just kidding..\" (laughs)")
  72.    (HALLWAY)
  73. )
  74.  
  75. (procedure RDLAB
  76.    (message "\n\n\nYou enter the \"way-cool high end Amigas\" lab.  Dave Haynie and George Robbins are here working on the AAA chipset!")
  77.    (message ("\n\n\nDave says, \"Uhhhh, hi %s; and what are you doing here...this is a restricted area!\""name))
  78.    (message "\n\n\n\nYou wave goodbye (Dave and George wave back) and leave the LAB.   As you leave though, you *swear* you saw a box on the bench with an "Amiga 5000" label on it, nah...")
  79.    (HALLWAY)
  80. )
  81.  
  82. (procedure CAFE
  83.    (message "\n\nCommodoreCafe(tm)\n\nYou stride into the Commodore-Cafe(tm).  There are numerous employees here stuffing their faces, and murmering about marketing.\n\nOne guy in the corner motions over to you.")
  84.    (set answer
  85.       (askchoice
  86.          (prompt "What do you want to do?")
  87.          (choices "Buy a cookie shaped like the Amiga Logo." "Go talk to the guy waving at you" "Leave the Cafe")
  88.          (help helpstring)
  89.       )
  90.    )
  91.    (if (= answer 0) 
  92.       (
  93.          (message "\n\n\nYou purchase an Amiga Cookie from the counter, and devour it.  hmmm...you wonder if A500's taste this way too...") 
  94.          (HALLWAY) ))
  95.    (if (= answer 1) (
  96.       
  97.       (message "\n\n\n\n\nHey! It's Harv Laser...famous Amiga personality.")
  98.       (message ("\n\n\nHarv says- \"Hey there %s, haven't seen you on Portal(tm) or IRC lately...I can give you a hint to help you escape from Commodore though.\" " name ))
  99.       (message "\n\n\n\n\nHarv takes a sip out of his Amiga Mug and says, \"blazemonger\" then vansishes ..:::poof")
  100.       (complete 30 )
  101.       (HALLWAY))
  102.    )
  103.    (if (= answer 2) (HALLWAY))
  104.  
  105. )
  106.  
  107. (procedure VAULT
  108.    (if (= hasdos4 0)
  109.       (
  110.          (message "\n\nSoftware Vault\n\nYou are in the Commodore Software Vault.  On the shelf is the source code to AmigaDOS 1.0--3.0.\n\nMarc Barrett is chained up in the corner looking like he's allergic to the Kickstart source code.")
  111.             (message "\n\n\n\nThere is a box labeled 'Kickstart 4.0a' sitting on the ground.")
  112.          (set answer
  113.             (askchoice
  114.                (prompt "What do you want to do?")
  115.                (choices "Leave the vault" "Take the 4.0 kickStart source")
  116.                (help helpstring)
  117.             )
  118.          )
  119.          (if (= answer 0) (HALLWAY))
  120.          (if (= answer 1) ( (set hasdos4 1) (complete 40 ) (VAULT)   ))
  121.       )
  122.    )
  123.  
  124.    (if (= hasdos4 1)
  125.    (
  126.       (message "\n\nSoftware Vault\n\nYou are in the Commodore Software Vault.  On the shelf is the source code to AmigaDOS 1.0--3.0.  Marc Barrett is chained up in the corner looking like he's allergic to the Kickstart source code.")
  127.       (HALLWAY)
  128.    ))
  129.  
  130. )
  131.  
  132. (procedure NETWORKING
  133.    (message "\n\nNetWorking\n\nYou enter the Commodore Networking Department.  Ken Dyke is there, with his terminal logged into IRC.  There seems to be a heated debate going on in IRC...better leave")
  134.    (HALLWAY)
  135. )
  136.  
  137. (procedure GFX
  138.    (message "\n\nGraphics Department\n\nAs you push the door to graphics open, Chris Green comes up to you.")
  139.    (message ("\n\n\nChris says, \"Hey %s, I was just about to call you, I need the 4.0 source code form the vault.\"" name))
  140.    (set answer
  141.       (askchoice
  142.          (prompt "It's your move")
  143.          (choices "Give him the source code" "Leave the room" )
  144.          (help helpstring)
  145.       )
  146.    )
  147.    (if (= answer 0)(
  148.       (if (= hasdos4 0)
  149.          (
  150.             (message "\n\nYou dont have DOS 4...!  Chris gives you the dumb look that you obviously deserve, as you turn and leave the room.")
  151.             (HALLWAY)
  152.          )
  153.       )
  154.       (if (= hasdos4 1)
  155.          (
  156.             (message "\n\nYou hand the box of Kickstart 4.0 source to Chris.  He says 'thanks, ..oh!  Dan Barrett was here earlier, and dropped this off for you.\n\nHe hands you a box which says: 'FRAGILE, BLAZEMONGER inside.'  You leave the room.")
  157.             (set hasblaze 1)
  158.             (set hasdos4 0)
  159.             (complete 70 )
  160.             (HALLWAY)
  161.          )
  162.       )
  163.    ))
  164.    (if (= answer 1) ( (message "\n\nYou point to a corner of the room, everyone turns to look, and you run out of the room.") (HALLWAY)  ))
  165. )
  166.  
  167. (procedure LOBBY
  168.    (message "\n\nLOBBY\n\nYou enter the Commodore Lobby, where Fred Fish is passing out the latest disks.  He is also letting certain employees leave the Commodore Offices, for reasons you don't know.")
  169.    (set answer
  170.       (askchoice
  171.          (prompt "What shall you so now?")
  172.          (choices "Try to slip out the door" "Breakdance" "Give Fred something to submit to the Aquarium" )
  173.          (help helpstring)
  174.       )
  175.    )
  176.    (if (= answer 0)( 
  177.       (message "\n\n\nYou try and sneak out the door, but Mr. Fish grabs you, and prevents you from leaving.  He says ''you oughta submit something to the library!''")
  178.       (HALLWAY)
  179.    ))
  180.    (if (= answer 1) ( (message "\n\nYou begin to do the 'electric boogaloo' in the lobby.  Harv Laser comes out and starts clapping to the beat.  Everyone has stopped what they were doing, and are now watching you dance.  You feel good about yourself.") (HALLWAY)))
  181.    (if (= answer 2) (
  182.       (if (AND (= hasblaze 0) (= hasdos4 1))
  183.          (
  184.          (message "\n\nSurely you aren't thinking of submitting the source to kickstart...you pirate!")
  185.          (HALLWAY)         
  186.          )
  187.       )
  188.       (if (= hasblaze 1)
  189.          (
  190.          (message "\n\n\nIn one motion, you hand him the BLAZEMONGER box...\n\n'all right!' he proclaims. 'This will complete the collection!  Finally we have the mighty BLAZEMONGER!'")
  191.          (WIN)
  192.          )
  193.       )
  194.    ))
  195. )
  196.  
  197. (procedure WIN
  198.    (complete 100)
  199.    (message "\n\n\nFred opens the door, and you walk out into sunny West Chester (yeah, right)")
  200.    (message "\n\nCongratulations, you have completed the adventure.  Greg Simon (the author of the game) wishes to mention that all mention of real persons within this game were truely out of respect, and no one should feel instulted about being mentioned in this game.")
  201.    (message "\nIf you have any flames, suggestions, ideas...write to me!  I'd love to hear from you!\n\ngs@teetot.acusd.edu\nGreg Simon\n2 Kingswoods Drive\nNew Hope PA 18938")
  202.    (exit) 
  203.  
  204. )
  205.  
  206. (set name
  207.    (askstring
  208.       (prompt "\n\nPlease enter your name adventurer!")
  209.       (help @askstring-help)
  210.    )
  211. )
  212.  
  213. (message ("\n\nWelcome to the worlds first Interactive game using Commodore's Installer Language!\n\n %s, you will be presented with choices to make, with the ultamite goal of finding a way OUT of the Commodore Business Machines Complex.\n\nGood Luck!" name ))
  214. (set helpstring
  215.    ("\n\nYou seriously don't want help.\n\nThis is a GAME, and it's not even that difficult...\n\noh well, keep on trying."))
  216.  
  217. (HALLWAY)
  218.  
  219. (abort
  220.    "\n\n\nGiving up so soon?\n\nC'mon...it's not *THAT* difficult"
  221. )