home *** CD-ROM | disk | FTP | other *** search
/ AMOS PD CD / amospdcd.iso / sourcecode / general / adventure.amos / adventure.amosSourceCode next >
Encoding:
AMOS Source Code  |  2000-10-30  |  30.6 KB  |  899 lines

  1. '
  2. '##################################################################
  3. '###   YB&TM - TQFTPB - THE COMPUTER GAME!!!  AMIGA VERSION!!!  ###
  4. '###         WRITTEN  BY  PETERSAM,   THE  AMOS  MAN!!!         ###
  5. '##################################################################
  6. '
  7. '                            INTRO:- 
  8. '
  9. Led Off 
  10. If Chip Free+Fast Free<500000 Then Goto LOWMEM
  11. SETUP:
  12. Global ANSWER$,LOWMEM,LOCATION,SPEECH,MOVENO,LINE,YB,TM,OPEN,OPENTM,HELPNO
  13. YB=1 : TM=1
  14. Load "YB&TM:YBTMmusic.ABK"
  15. Screen Open 0,320,256,4096,Lowres
  16. Flash Off : Curs Off : Hide On 
  17. Unpack 4 To 0
  18. Wait 100
  19. For OFFSET=64 To 350 Step 16
  20.    Screen Display 0,130,OFFSET,320,256 : Wait Vbl 
  21. Next 
  22. Wait 50
  23. Screen Open 0,320,256,16,Lowres
  24. Unpack 2 To 0 : Get Sprite Palette 
  25. Music 1
  26. Do : OPENSHUT
  27.    If OPEN=False and YB>1 Then Dec YB
  28.    If OPEN=True and YB<3 Then Inc YB
  29.    If YB=3 Then OPEN=False
  30.    If OPENTM=False and TM>1 Then Dec TM
  31.    If OPENTM=True and TM<3 Then Inc TM
  32.    If TM=3 Then Add WORRLY,1,1 To 10
  33.    If TM=3 and WORRLY=10 Then OPENTM=False
  34.    Bob 1,60,140,YB : Wait Vbl 
  35.    Bob 2,200,135,TM : Wait Vbl 
  36.    If Mouse Key Then Goto FINISH
  37. Loop 
  38. '
  39. LOWMEM:
  40. Close Workbench 
  41. For QWERTY=6 To 16
  42.    Erase QWERTY
  43. Next 
  44. Erase 4
  45. Load "YBTMMUSIC.abk"
  46. Screen Open 0,320,256,16,Lowres
  47. Unpack 2 To 0
  48. Hide 
  49. Bob 1,60,140,1 : Bob 2,200,135,2
  50. Music 1 : Repeat : Until Mouse Key
  51. FINISH:
  52. Fade 10
  53. For VOL=63 To 0 Step -1
  54. Volume VOL : Wait 3 : Next 
  55. Music Off : Volume 63
  56. Wait 100
  57. Show 
  58. '
  59. '                 SET UP:- 
  60. '
  61. HIGHMEMSETUP:
  62. If Chip Free+Fast Free<512000 Then LOWMEM=True
  63. If LOWMEM Then Goto LOWMEMSETUP
  64. Set Talk ,1,85,200
  65. SPEECH=True
  66. Screen Open 0,640,70,2,Hires
  67. Screen Display 0,,240,,
  68. CHANGECURS
  69. Screen Open 1,320,256,16,Lowres
  70. Curs Off : Flash Off 
  71. LINE=4
  72. SETUPALL:
  73. Screen Open 2,320,32,2,Lowres
  74. Unpack 5 To 2
  75. Reserve Zone 12
  76. Set Zone 1,0,0 To 56,16
  77. Set Zone 2,56,0 To 104,16
  78. Set Zone 3,104,0 To 160,16
  79. Set Zone 4,160,0 To 216,16
  80. Set Zone 5,216,0 To 264,16
  81. Set Zone 6,264,0 To 320,16
  82. Set Zone 7,0,16 To 56,32
  83. Set Zone 8,56,16 To 104,32
  84. Set Zone 9,104,16 To 160,32
  85. Set Zone 10,160,16 To 216,32
  86. Set Zone 11,216,16 To 264,32
  87. Set Zone 12,264,16 To 320,32
  88. Screen 0 : Screen To Front 0
  89. Goto LOCATION1
  90. LOWMEMSETUP:
  91. Screen Open 0,640,200,2,Hires : Wait Vbl 
  92. Screen Display 0,,85,,
  93. LINE=20
  94. CHANGECURS
  95. Goto SETUPALL
  96. '
  97. '                 PROCEDURES:- 
  98. '
  99. Procedure OPENSHUT
  100.    If Vumeter(0)>0 Then OPEN=True : YB=1
  101.    If Vumeter(2)>0 Then OPENTM=True : TM=1 : WORRLY=1
  102. End Proc
  103. Procedure COMMAND
  104.    Change Mouse 2
  105.    WIPE
  106.    Screen 0 : Print "what now?"
  107.    Screen To Front 2 : Screen 2
  108.    Repeat : Until Mouse Key : Repeat : Until Mouse Key=0
  109.    If Mouse Zone=1 Then ANSWER$="NORTH"
  110.    If Mouse Zone=2 Then ANSWER$="SOUTH"
  111.    If Mouse Zone=3 Then ANSWER$="EAST"
  112.    If Mouse Zone=4 Then ANSWER$="WEST"
  113.    If Mouse Zone=5 Then ANSWER$="HELP"
  114.    If Mouse Zone=6 Then ANSWER$="WAIT"
  115.    If Mouse Zone=7 Then ANSWER$="PRESS"
  116.    If Mouse Zone=8 Then ANSWER$="READ"
  117.    If Mouse Zone=9 Then ANSWER$="SAY"
  118.    If Mouse Zone=10 Then ANSWER$="TAKE"
  119.    If Mouse Zone=11 Then ANSWER$="EXAMINE"
  120.    If Mouse Zone=12 Then ANSWER$="TALK"
  121.    Change Mouse 3
  122. End Proc
  123. Procedure HELP
  124.    Inc HELPNO
  125.    If HELPNO>10
  126.       WRITE["I am getting fed up of you asking for help!!"] : Pop Proc
  127.    End If 
  128.    If LOCATION=1
  129.       WRITE["Why not explore the surroundings?"]
  130.    End If 
  131.    If LOCATION=2
  132.       WRITE["The Beck seems a nice place to visit!"]
  133.    End If 
  134.    If LOCATION=3
  135.       WRITE["Dont trespass on Saint theresas, will you?"]
  136.    End If 
  137.    If LOCATION=4
  138.       WRITE["You are on the right track. . . "]
  139.    End If 
  140.    If LOCATION=5
  141.       WRITE["Perhaps the shiny metal thing needs examination."]
  142.    End If 
  143.    If LOCATION=6
  144.       WRITE["This plaque looks interesting."]
  145.    End If 
  146.    If LOCATION=7
  147.       WRITE["Hello, mister warburton, your legs are so fluffy."]
  148.    End If 
  149.    If LOCATION=8
  150.       WRITE["Dont be afraid to go inside the portaloo."]
  151.    End If 
  152.    If LOCATION=9
  153.       WRITE["That door to the North looks interesting!"]
  154.    End If 
  155.    If LOCATION=10
  156.       WRITE["This is a suttle hint that you CANT GO IN MY HOUSE!!!"]
  157.    End If 
  158.    If LOCATION=11
  159.       WRITE["What the chuff are you doing here?"]
  160.    End If 
  161.    If LOCATION=12
  162.       WRITE["They went thattaway!! (SOUTH)"]
  163.    End If 
  164.    If LOCATION=13
  165.       WRITE["Chase a bug around a tree Ill get his blood he knows I will"]
  166.    End If 
  167.    If LOCATION=14
  168.       WRITE["QUICK! AFTER THEM!!!"]
  169.    End If 
  170.    If LOCATION=15
  171.       WRITE["BURP!!!!!! ANNNNNDROOOZZZZZZZZZZZAAAANNIIIIIIIIII. . . . . "]
  172.    End If 
  173.    If LOCATION=16
  174.       WRITE["They didnt go this way."]
  175.    End If 
  176.    If LOCATION=17
  177.       WRITE["You never listen to the help I give!! I might as well TALK TO WALL"]
  178.    End If 
  179.    If LOCATION=18
  180.       WRITE["The guards took Baa Mee south"]
  181.    End If 
  182.    If LOCATION=19
  183.       WRITE["That door east loooks nice!! HINT HINT"]
  184.    End If 
  185.    If LOCATION>=20
  186.       WRITE["I am not going to give you any more help!! Hee hee hee hee hee"]
  187.    End If 
  188. End Proc
  189. Procedure UNIVERSAL
  190.    Inc MOVENO
  191.    If Upper$(ANSWER$)="SAY" and SPEECH=False and LOWMEM=False Then SPEECH=True : WIPE
  192.    If Upper$(ANSWER$)="SAY" and SPEECH=True Then SPEECH=False : WIPE
  193.    If Upper$(ANSWER$)="HELP" Then HELP : WIPE
  194.    If Upper$(ANSWER$)="WAIT" Then WRITE["Waiting...   (Yawn!!)"] : WIPE
  195.    If Upper$(ANSWER$)="N" Then ANSWER$="North" : WIPE
  196.    If Upper$(ANSWER$)="S" Then ANSWER$="South" : WIPE
  197.    If Upper$(ANSWER$)="E" Then ANSWER$="East" : WIPE
  198.    If Upper$(ANSWER$)="W" Then ANSWER$="West" : WIPE
  199. End Proc
  200. Procedure WRITE[WORRLY$]
  201.    Screen 0 : Screen To Front 0
  202.    If Y Curs>LINE and SPEECH=False
  203.       Centre "-- SLAP A MOUSE EYEBALL TO CONTINUE --"
  204.       Repeat : Until Mouse Key : Repeat : Until Mouse Key=0 : Cls 
  205.    End If 
  206.    Centre WORRLY$ : Print 
  207.    If SPEECH Then Say WORRLY$+"."+Space$(100)
  208. End Proc
  209. Procedure WIPE
  210.    ANSWER$=""
  211. End Proc
  212. Procedure CHANGECURS
  213.    L1=%11
  214.    L2=%111
  215.    L3=%1111
  216.    L4=%111111
  217.    L5=%111111
  218.    L6=%1111
  219.    L7=%111
  220.    L8=%11
  221.    Set Curs L1,L2,L3,L4,L5,L6,L7,L8
  222. End Proc
  223. Procedure PICCY[PIC]
  224.    If LOWMEM=False
  225.       Screen 1 : Cls 0
  226.       Unpack PIC To 1
  227.       Screen To Back 1
  228.    End If 
  229. End Proc
  230. '
  231. '                         LOCATION DESCRIPTIONS:-
  232. '
  233. LOCATION1:
  234. LOCATION=1
  235. PICCY[12]
  236. WRITE["Your two friends, Andrew, who everyone calls Barmy,"]
  237. WRITE["and Jonjo Roberts, who is often called Splerge, have come round"]
  238. WRITE["to your house, to play on your fab AMIGA. After blowing up"]
  239. WRITE["mindless green blobs, Barmy suggested going on a quest for a"]
  240. WRITE["banana with a slightly pink shade. You worry about him sometimes."]
  241. WRITE["So you, Barmy and Splerge are standing outside your"]
  242. WRITE["house trying to decide which way to go. To the West is Saint"]
  243. WRITE["Teresa's primary, to the East is the beck, a long wet river."]
  244. Repeat 
  245.    COMMAND : UNIVERSAL
  246.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION4
  247.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION2
  248.    If Upper$(ANSWER$)="NORTH"
  249.       WRITE["Unfortunately, the only thing directly North is a large tree"]
  250.       WRITE["and walking straight into it would be quite painful."]
  251.    End If 
  252.    If Upper$(ANSWER$)="SOUTH" Then Goto LOCATION10
  253. Until LOCATION<>1
  254. '
  255. LOCATION2:
  256. LOCATION=2
  257. PICCY[15]
  258. WRITE["You and the others are walking along Barwick Road. To the"]
  259. WRITE["West is Saint Teresas school, to the East is your house."]
  260. Repeat 
  261.    COMMAND : UNIVERSAL
  262.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION1
  263.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION3
  264.    If Upper$(ANSWER$)="NORTH"
  265.       WRITE["To the North is a very boring cul-de-sac."]
  266.       WRITE["You want to go that way, but Splerge"]
  267.       WRITE["and Barmy dont, so you stay where you are."]
  268.    End If 
  269.    If Upper$(ANSWER$)="SOUTH"
  270.       WRITE["The only thing South is the Denill streets. You want to go visit"]
  271.       WRITE["Margaret, who lives there, but BarmyBrain doesnt."]
  272.    End If 
  273. Until LOCATION<>2
  274. '
  275. LOCATION3:
  276. LOCATION=3
  277. PICCY[15]
  278. WRITE["You are nearly at Saint Teresas. (It is West) Barwick Road"]
  279. WRITE["leads off to the East, and, eventually, your house."]
  280. Repeat 
  281.    COMMAND : UNIVERSAL
  282.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION2
  283.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION11
  284.    If Upper$(ANSWER$)="NORTH"
  285.       WRITE["To the North is a very boring cul-de-sac."]
  286.       WRITE["You want to go that way, but Splerge"]
  287.       WRITE["and Barmy dont, so you stay where you are."]
  288.    End If 
  289.    If Upper$(ANSWER$)="SOUTH"
  290.       WRITE["The only things South are the Denill streets. You want to go "]
  291.       WRITE["visit Margaret, who lives there, but BarmyBrain doesnt."]
  292.    End If 
  293. Until LOCATION<>3
  294. '
  295. LOCATION4:
  296. LOCATION=4
  297. PICCY[15]
  298. WRITE["You start the trek up the hill that leads to Barwick-in-Elmet."]
  299. WRITE["To the west is your house. East, the road continues."]
  300. Repeat 
  301.    COMMAND : UNIVERSAL
  302.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION5
  303.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION1
  304.    If Upper$(ANSWER$)="SOUTH"
  305.       WRITE["There isnt much of interest south. Jonjo has picked a"]
  306.       WRITE["daisy and is chanting away to himself: 'Caroline loves me,"]
  307.       WRITE["she loves me not. WWWooooorrrrrrrrrrrr' and other strange"]
  308.       WRITE["noises."]
  309.    End If 
  310.    If Upper$(ANSWER$)="NORTH"
  311.       WRITE["You attempt to walk North, except that you notice that you"]
  312.       WRITE["reached the Beck rather suddenly. Too late. With a splash"]
  313.       WRITE["you fall in the water. Splerge and Barmy haul you out, and,"]
  314.       WRITE["after five minutes, you have drip dried."]
  315.    End If 
  316. Until LOCATION<>4
  317. '
  318. LOCATION5:
  319. LOCATION=5
  320. PICCY[15]
  321. WRITE["You reach the top of the hill. To the east, the road continues,"]
  322. WRITE["where as West, eventually, is your house. Barmy notices something"]
  323. WRITE["shiny towards the North."]
  324. Repeat 
  325.    COMMAND : UNIVERSAL
  326.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION7
  327.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION4
  328.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION6
  329.    If Upper$(ANSWER$)="SOUTH"
  330.       WRITE["You would gladdly go south, if it wasnt for the fact that you"]
  331.       WRITE["cant go in that direction!!!"]
  332.    End If 
  333. Until LOCATION<>5
  334. '
  335. LOCATION6:
  336. LOCATION=6
  337. PICCY[7]
  338. WRITE["On closer inspection you see that the shiny metal thing is"]
  339. WRITE["actually a portaloo. Or is it??? There is a plaque on it."]
  340. Repeat 
  341.    COMMAND : UNIVERSAL
  342.    If Upper$(ANSWER$)="NORTH"
  343.       WRITE["You walk straight into the portaloo, and hurt your nose."]
  344.    End If 
  345.    If Upper$(ANSWER$)="SOUTH" Then Goto LOCATION5
  346.    If Upper$(ANSWER$)="EAST"
  347.       WRITE["You go for a brief swim in the beck. When you get out, you"]
  348.       WRITE["are in front of the portaloo again."]
  349.    End If 
  350.    If Upper$(ANSWER$)="WEST"
  351.       WRITE["You do your level best to walk to the west, but there is a steep"]
  352.       WRITE["drop stopping you. Jonjo asks to help you by giving you a shove"]
  353.       WRITE["but you decline."]
  354.    End If 
  355.    If Upper$(ANSWER$)="READ"
  356.       WRITE["You read the plaque. Here is what it says:"]
  357.       Wait 100 : Cls 
  358.       Centre " ________________________________ " : Print 
  359.       Centre "|           TIME MACHINE         |" : Print 
  360.       Centre "| Press the button to toggle the |" : Print 
  361.       Centre "| door open and closed. Slap mah |" : Print 
  362.       Centre "| thighs with a soggy fish, too! |" : Print 
  363.       Centre "|________________________________|" : Print 
  364.    End If 
  365.    If Upper$(ANSWER$)="PRESS" Then Goto LOCATION8
  366. Until LOCATION<>6
  367. '
  368. LOCATION7:
  369. LOCATION=7
  370. PICCY[15]
  371. WRITE["You walk on a bit, but are knackered after the steep hill climb."]
  372. WRITE["Barmy sits in the middle of the road singing: 'I am a lumberjack"]
  373. WRITE["and I am okay,' for no apparant reason. Its all downhill to the "]
  374. WRITE["West. "]
  375. Repeat 
  376.    COMMAND : UNIVERSAL
  377.    If Upper$(ANSWER$)="NORTH"
  378.       WRITE["You are so tired, that you only manage a few inches North."]
  379.    End If 
  380.    If Upper$(ANSWER$)="SOUTH"
  381.       WRITE["You are so tired, that you only manage a few inches South."]
  382.    End If 
  383.    If Upper$(ANSWER$)="EAST"
  384.       WRITE["You are so tired, that you only manage a few inches East."]
  385.    End If 
  386.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION5
  387. Until LOCATION<>7
  388. '
  389. LOCATION8:
  390. LOCATION=8
  391. PICCY[7]
  392. WRITE["With a grating squark, the door in the portaloo opens."]
  393. WRITE["Inside it seems incredibly roomy compared to the outside."]
  394. WRITE["Barmy has not noticed, as he is engrossed in saying "]
  395. WRITE["'good morning' to a grass hopper."]
  396. Repeat 
  397.    COMMAND : UNIVERSAL
  398.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION9
  399.    If Upper$(ANSWER$)="SOUTH" Then Goto LOCATION5
  400.    If Upper$(ANSWER$)="EAST"
  401.       WRITE["You go for a brief swim in the beck. When you get out, you"]
  402.       WRITE["are in front of the portaloo again."]
  403.    End If 
  404.    If Upper$(ANSWER$)="WEST"
  405.       WRITE["You do your level best to walk to the West, but there is a steep"]
  406.       WRITE["drop stopping you. Jonjo asks to help you by giving you a shove"]
  407.       WRITE["but you decline."]
  408.    End If 
  409.    If Upper$(ANSWER$)="READ"
  410.       WRITE["You read the plaque. Here is what it says:"]
  411.       Centre " ________________________________ " : Print 
  412.       Centre "|           TIME MACHINE         |" : Print 
  413.       Centre "| Press the button to toggle the |" : Print 
  414.       Centre "| door open and closed. Slap mah |" : Print 
  415.       Centre "| thighs with a soggy fish, too! |" : Print 
  416.       Centre "|________________________________|" : Print 
  417.    End If 
  418. Until LOCATION<>8
  419. '
  420. LOCATION9:
  421. LOCATION=9
  422. PICCY[13]
  423. WRITE["The inside of the portaloo contains many gadgets, knobs (oo-er)"]
  424. WRITE["and flashing lights. To the south, a door is marked"]
  425. WRITE["'1991', to the East is a door marked '991', and the door due North"]
  426. WRITE["says '91' on it."]
  427. Repeat 
  428.    COMMAND : UNIVERSAL
  429.    If Upper$(ANSWER$)="NORTH"
  430.       WRITE["You walk through the door marked 91. You feel a strange sensation,"]
  431.       WRITE["And when you come to you find yourself standing in front of a large"]
  432.       WRITE["dinosaur. It is then you realize that '91' meant 91 million years BC!!"]
  433.       WRITE["Before you can say 'oo eck a large dinosaur' you run back into"]
  434.       WRITE["the portaloo."]
  435.    End If 
  436.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION14
  437.    If Upper$(ANSWER$)="WEST"
  438.       WRITE["You walk into a wall, and bruise your head."]
  439.    End If 
  440.    If Upper$(ANSWER$)="SOUTH" Then Goto LOCATION6
  441. Until LOCATION<>9
  442. '
  443. LOCATION10:
  444. LOCATION=10
  445. PICCY[12]
  446. WRITE["You are standing in your drive way. To the South is your house,"]
  447. WRITE["To the North is barwick Road."]
  448. Repeat 
  449.    COMMAND : UNIVERSAL
  450.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION1
  451.    If Upper$(ANSWER$)="SOUTH"
  452.       WRITE["You would go inside your house, if it was not for the fact"]
  453.       WRITE["that you have just locked yourself out."]
  454.    End If 
  455.    If Upper$(ANSWER$)="EAST"
  456.       WRITE["You walk straight into a brick wall and break your nose."]
  457.    End If 
  458.    If Upper$(ANSWER$)="WEST"
  459.       WRITE["Walking to the west is a silly idea, as there is only a"]
  460.       WRITE["garage in that direction."]
  461.    End If 
  462. Until LOCATION<>10
  463. '
  464. LOCATION11:
  465. LOCATION=11
  466. PICCY[15]
  467. WRITE["You are standing to the North of Saint Teresas Primary."]
  468. WRITE["To the East is a long road that eventually leads to your house."]
  469. Repeat 
  470.    COMMAND : UNIVERSAL
  471.    If Upper$(ANSWER$)="WEST"
  472.       WRITE["Theres nowt of any interest in that direction."]
  473.    End If 
  474.    If Upper$(ANSWER$)="SOUTH"
  475.       WRITE["You enter the gates of Saint Teresas Primary school."]
  476.       WRITE["The only problem is that Mrs. Fleming,"]
  477.       WRITE["the head mistress, spots you and kicks you out."]
  478.    End If 
  479.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION3
  480.    If Upper$(ANSWER$)="NORTH"
  481.       WRITE["You walk North into the main road, and narrowly avoid getting"]
  482.       WRITE["run over by a Lada.   (!!!!!)"]
  483.    End If 
  484. Until LOCATION<>11
  485. '
  486. LOCATION12:
  487. LOCATION=12
  488. PICCY[6]
  489. WRITE["You and Twit Man are back in the courtyard. There is a drawbridge"]
  490. WRITE["North, and exits East and South."]
  491. Repeat 
  492.    COMMAND : UNIVERSAL
  493.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION15
  494.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION16
  495.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION9
  496.    If Upper$(ANSWER$)="SOUTH" Then Goto LOCATION18
  497. Until LOCATION<>12
  498. '
  499. LOCATION13:
  500. LOCATION=13
  501. WRITE["Two guards unlock the door to the North and run in."]
  502. WRITE["They see twitmans face and promptly commit suicide."]
  503. WRITE["Twitman says, 'I am a hero.' You think you"]
  504. WRITE["see something shiny in one of their medieval pockets."]
  505. Repeat 
  506.    COMMAND : UNIVERSAL
  507.    If Upper$(ANSWER$)="EXAMINE"
  508.       WRITE["You search in one of the guards pockets. You see a brass key"]
  509.       WRITE["That you think might unlock the door to the North."]
  510.       WRITE["You try it, and, lo and behold, the door unlocks."]
  511.       WRITE["You walk through into another similar room. You lock the"]
  512.       WRITE["door behind you and swallow the key."]
  513.       WRITE["This unfortunately means that there is no way out."]
  514.       Goto LOCATION23
  515.    End If 
  516.    If Upper$(ANSWER$)="NORTH"
  517.       WRITE["The door is locked!!"]
  518.    End If 
  519.    If Upper$(ANSWER$)="SOUTH"
  520.       WRITE["There is only a brick wall in that direction."]
  521.    End If 
  522.    If Upper$(ANSWER$)="EAST"
  523.       WRITE["There is only a brick wall in that direction."]
  524.    End If 
  525.    If Upper$(ANSWER$)="WEST"
  526.       WRITE["There is only a brick wall in that direction."]
  527.    End If 
  528. Until LOCATION<>13
  529. '
  530. LOCATION14:
  531. LOCATION=14
  532. PICCY[6]
  533. WRITE["You are in the courtyard of a medieval castle. Barmy"]
  534. WRITE["shouts to you. 'Over here!! Look!' But before you know it,"]
  535. WRITE["two knights in shining armour have gagged him up."]
  536. WRITE["They try to do the same to you and JonJo, but they see JonJos face"]
  537. WRITE["and run away to the South, dragging Barmy behind them. Splerge"]
  538. WRITE["shouts: 'After them!!' and then proceeds to"]
  539. WRITE["sit on the floor and make cow noises."]
  540. WRITE["He obviously hasnt had a right lot of practise at following people."]
  541. WRITE["You pull a yoghurt carton out of your pocket. You eat it"]
  542. WRITE["(well, its contents), and JonJo eats a twix bar. You are magically"]
  543. WRITE["transmogrified into Yoghurt Boy, and Splerge is mutilated beyond"]
  544. WRITE["recognition to form Twit Man!! Yes, it should be Twix Man, but"]
  545. WRITE["he is so stupid you call him Twit man instead."]
  546. WRITE["There is a drawbridge in front of you, and corridors lead East and South."]
  547. Repeat 
  548.    COMMAND : UNIVERSAL
  549.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION15
  550.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION16
  551.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION9
  552.    If Upper$(ANSWER$)="SOUTH" Then Goto LOCATION18
  553. Until LOCATION<>14
  554. '
  555. LOCATION15:
  556. WRITE["You walk straight out, onto a long wooden drawbridge."]
  557. WRITE["Or, at least, you would have done if there had been a drawbridge"]
  558. WRITE["there. As it is, you fall into the moat with a gigantic splash."]
  559. WRITE["Splerge asks if you want a help out. Sarcastically, you say"]
  560. WRITE["'No, I enjoy sinking.' Ten minutes later, as you reach the"]
  561. WRITE["bottom of the moat, you realize that theres a time and place"]
  562. WRITE["for sarcasm. And that wasnt it."]
  563. Wait 75 : End 
  564. '
  565. LOCATION16:
  566. LOCATION=16
  567. PICCY[8]
  568. WRITE["You are in a long corridor. There is a room to the East,"]
  569. WRITE["And to the West there is the courtyard."]
  570. Repeat 
  571.    COMMAND : UNIVERSAL
  572.    If Upper$(ANSWER$)="NORTH"
  573.       WRITE["You can't go North!!!"]
  574.    End If 
  575.    If Upper$(ANSWER$)="SOUTH"
  576.       WRITE["You try to go South, but can't. AWWWWW!!"]
  577.    End If 
  578.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION12
  579.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION17
  580. Until LOCATION<>16
  581. '
  582. LOCATION17:
  583. LOCATION=17
  584. PICCY[10]
  585. WRITE["You find yourselves in a room with no entrance or exit."]
  586. WRITE["Quite how you managed to get in in the first place baffles you."]
  587. WRITE["There doesnt seem to be any way out, but they do say"]
  588. WRITE["walls have ear's . . ."]
  589. Repeat 
  590.    COMMAND : UNIVERSAL
  591.    If Upper$(ANSWER$)="NORTH"
  592.       WRITE["There isnt any exits, so you cant go North."]
  593.    End If 
  594.    If Upper$(ANSWER$)="SOUTH"
  595.       WRITE["There isnt any exits, so you cant go South."]
  596.    End If 
  597.    If Upper$(ANSWER$)="EAST"
  598.       WRITE["There isnt any exits, so you cant go East."]
  599.    End If 
  600.    If Upper$(ANSWER$)="WEST"
  601.       WRITE["There isnt any exits, so you cant go West."]
  602.    End If 
  603.    If Upper$(ANSWER$)="TALK"
  604.       WRITE["You proceed to explain to the wall the virtues of letting you out."]
  605.       WRITE["Twitman says 'No-one will speak to you if you let us die in here.'"]
  606.       WRITE["You add: 'If you let us go, we can tell everyone how nice you are.'"]
  607.       WRITE["The wall sees the error of its ways and provides you with an"]
  608.       WRITE["opening towards the West."]
  609.       WRITE["You and twitman run out of the room before anyone can say"]
  610.       WRITE["'Quick lets run out of this room.'"]
  611.    Goto LOCATION16 : End If 
  612. Until LOCATION<>17
  613. '
  614. LOCATION18:
  615. LOCATION=18
  616. PICCY[8]
  617. WRITE["You are in a corridor. To the South is a door saying"]
  618. WRITE["'YE OLDE GYMNASIUM' on it, whereas North is the courtyard."]
  619. Repeat 
  620.    COMMAND : UNIVERSAL
  621.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION12
  622.    If Upper$(ANSWER$)="SOUTH" Then Goto LOCATION19
  623.    If Upper$(ANSWER$)="EAST"
  624.       WRITE["There is no way to go East!"]
  625.    End If 
  626.    If Upper$(ANSWER$)="WEST"
  627.       WRITE["Theres no way to go in that direction!"]
  628.    End If 
  629. Until LOCATION<>18
  630. '
  631. LOCATION19:
  632. LOCATION=19
  633. PICCY[8]
  634. WRITE["You are in an old gym, covered in cobwebs."]
  635. WRITE["An old man is sitting on a mat. He has a crown on his head."]
  636. WRITE["You ask him if he has seen Barmy. 'I donteth even "]
  637. WRITE["knoweth who he iseth!'"]
  638. Repeat 
  639.    COMMAND : UNIVERSAL
  640.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION18
  641.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION20
  642.    If Upper$(ANSWER$)="SOUTH"
  643.       WRITE["You are about to walk through a door marked 'PRIVATETH', "]
  644.       WRITE["but the king tells you not to. 'That roometh is privateth!!'"]
  645.    End If 
  646.    If Upper$(ANSWER$)="WEST"
  647.       WRITE['You walk West, straight in some gym equipment, and graize your left knee.']
  648.    End If 
  649. Until LOCATION<>19
  650. '
  651. LOCATION20:
  652. LOCATION=20
  653. PICCY[9]
  654. WRITE["You are in a short, dark corridor. There is a light to the East,"]
  655. WRITE["And to the West is the Gym."]
  656. Repeat 
  657.    COMMAND : UNIVERSAL
  658.    If Upper$(ANSWER$)="NORTH"
  659.       WRITE["It's too dark to see if there is anything to the North."]
  660.    End If 
  661.    If Upper$(ANSWER$)="SOUTH"
  662.       WRITE["It's too dark to see if there is anything to the North."]
  663.    End If 
  664.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION21
  665.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION19
  666. Until LOCATION<>20
  667. '
  668. LOCATION21:
  669. LOCATION=21
  670. PICCY[16]
  671. WRITE["You find yourselves in a room with loads of treasure; "]
  672. WRITE["Gold coins, Statues, diamonds and jewelry."]
  673. WRITE["Twitman sees a bronze statue. He suggests that you Take it."]
  674. WRITE["'With all this money I will be able to buy loads of Ataris!'"]
  675. WRITE["He says. You add, 'And I will be able to afford millions of Amigas!'"]
  676. Repeat 
  677.    COMMAND : UNIVERSAL
  678.    If Upper$(ANSWER$)="TAKE"
  679.       WRITE["The statue appears to be a booby trap;"]
  680.       WRITE["When you pick it up a lever is triggered and the floor seems to"]
  681.       WRITE["open up beneath your feet. You and twitman fall into a dungeon "]
  682.       WRITE["cell with apparantly no way out."]
  683.       Goto LOCATION22
  684.    End If 
  685.    If Upper$(ANSWER$)="NORTH"
  686.       WRITE["The only way out seems to be West."]
  687.    End If 
  688.    If Upper$(ANSWER$)="EAST"
  689.       WRITE["All the gold is blocking your path Eastwards."]
  690.    End If 
  691.    If Upper$(ANSWER$)="SOUTH"
  692.       WRITE["There is no way out that way."]
  693.    End If 
  694.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION20
  695. Until LOCATION<>21
  696. '
  697. LOCATION22:
  698. LOCATION=22
  699. PICCY[8]
  700. MOVEIT=MOVENO
  701. WRITE["To your North is a locked door"]
  702. Repeat 
  703.    If MOVENO-MOVEIT>5 Then Goto LOCATION13
  704.    COMMAND : UNIVERSAL
  705.    WRITE["Unfortunately, there is no way to go in any direction."]
  706. Until LOCATION<>22
  707. '
  708. LOCATION23:
  709. LOCATION=23
  710. PICCY[11]
  711. MOVEG=MOVENO
  712. WRITE["You see a banana on the floor. Next to it is a paint can."]
  713. WRITE["The banana is pink, and therefore has just been painted."]
  714. WRITE["The paint is just drying."]
  715. Repeat 
  716.    If MOVENO-MOVEG>5 Then Goto LOCATION24
  717.    COMMAND : UNIVERSAL
  718.    If Upper$(ANSWER$)="TAKE"
  719.       WRITE["Twitman picks up the banana. Unfortunately the paint is still"]
  720.       WRITE["wet, and so he puts it back down again."]
  721.    End If 
  722.    If Upper$(ANSWER$)="NORTH"
  723.       WRITE["You cant go in any direction."]
  724.    End If 
  725.    If Upper$(ANSWER$)="SOUTH"
  726.       WRITE["You cant go in any direction."]
  727.    End If 
  728.    If Upper$(ANSWER$)="EAST"
  729.       WRITE["You cant go in any direction."]
  730.    End If 
  731.    If Upper$(ANSWER$)="WEST"
  732.       WRITE["You cant go in any direction."]
  733.    End If 
  734. Until LOCATION<>23
  735. '
  736. LOCATION24:
  737. LOCATION=24
  738. PICCY[11]
  739. WRITE["Two guards materialize in the room you are in."]
  740. WRITE["'You areth under arresteth for stealingeth the kings potato.'"]
  741. WRITE["'I thought it was a banana!' you say."]
  742. WRITE["'Banana! Ha! What a silly name! The king officially"]
  743. WRITE["named it a potato!' says the first guard."]
  744. WRITE["'Dont you get a tad confused between bananas and potatoes?' "]
  745. WRITE["asks Twitman. You shush him."]
  746. WRITE["'Shush! Bananas and potatoes werent discovered in Britain"]
  747. WRITE["in the tenth century, apart from this one.'"]
  748. WRITE["'So why did he call it a potato?'"]
  749. WRITE["'It was probably a name he thought up of the top of his head.'"]
  750. WRITE["Twitman ponders what the king was doing with a potato on his head."]
  751. WRITE["He suggests that it would have been better to call the banana a crown."]
  752. WRITE["You politely ask the guards to set you free, but instead"]
  753. WRITE["they whack you round the head with a large blunt instrument."]
  754. WRITE["Twit man suddenly thinks of a joke."]
  755. WRITE["'What is the difference between me and an old umbrella?'"]
  756. WRITE["'Dont know.' says one of the guards."]
  757. WRITE["'I am a born wally, and the other is a worn brolly!'"]
  758. PICCY[14]
  759. WRITE["You wake up some time later with a splitting headache."]
  760. WRITE["You appear to be in a prison cell. You see Barmy."]
  761. WRITE["'Having fun, Barm??' you ask. "]
  762. WRITE["'No.' replies Barmybrain. Twit man is staring at two more prisoners"]
  763. WRITE["Being put in the same cell as you."]
  764. WRITE["'Hey!!' he says to one of them. 'Aren't you Haydn fitz Williams"]
  765. WRITE["from New Computer Express?'"]
  766. WRITE["'Write and tell H F W about anything under the sun!!"]
  767. WRITE["'Reach him at: Express Mail, 30 Monmouth. . .'"]
  768. WRITE["Barmys eyes open wide as he sees the other person."]
  769. WRITE["'Belching heck! Arent you that Keith Pom--'"]
  770. WRITE["'Does your PC keep packing up? Is your Amiga less than friendly?"]
  771. WRITE["Would your ST try the patience of a Saint? Write to Keith Pomfrets"]
  772. WRITE["Tech tips and we will soon see you right. Send your sorry stories to"]
  773. WRITE["30 Monmouth Street, Bath. . .'"]
  774. WRITE["'They must have come here through the time machine in 1991!'"]
  775. WRITE["'I use an amiga for this, a PC for that,"]
  776. WRITE["an MSX for this, an Apple Mac for that--'says Keith."]
  777. WRITE["'Macs are fab!' says Haydn Fitz Willy."]
  778. WRITE["'Unfortunately, not for games.' points out Keith."]
  779. WRITE["TwitMan decides to recite a poem he wrote about Haydn."]
  780. WRITE["'Haydn Fitz Williams went up the stairs"]
  781. WRITE["To interview some hackers,"]
  782. WRITE["But they tied him up and hit him hard"]
  783. WRITE["And kicked him in the left kneecap.'"]
  784. WRITE["The guards give him a round of applause. They go up to you."]
  785. WRITE["'You know thateth you found the kingeths potato,"]
  786. WRITE["or banana as you calleth it?' says one of the guards."]
  787. WRITE["'Yup.' You say."]
  788. WRITE["'Welleth, we have losteth it. And if we dont find it by"]
  789. WRITE["sunset. . . well, we willeth be executed.'"]
  790. WRITE["'Yeah.' says the other guard. 'You musteth find it foreth us. "]
  791. WRITE["Or we will killeth you!! Hahahahahahahahahahaha'"]
  792. WRITE["'You know what this means, dont you?' says Barmy."]
  793. WRITE["'Yes.' says Twitman. 'We are on THE QUEST FOR THE PINK BANANA!!"]
  794. WRITE["You are about to say 'about time too'. Youve been playing this"]
  795. WRITE["game for ages and youve only just started on the quest."]
  796. WRITE["But you decide to use tact. After all, this game took the"]
  797. WRITE["script writer and programmer weeks to write."]
  798. WRITE["There is an exit into a maze of dungeon cells to the North."]
  799. Repeat 
  800.    COMMAND : UNIVERSAL
  801.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION26
  802.    If Upper$(ANSWER$)="SOUTH"
  803.       WRITE["You walk south, and trip over Barmy who is sitting on the floor."]
  804.    End If 
  805.    If Upper$(ANSWER$)="EAST"
  806.       WRITE["You walk into the wall."]
  807.    End If 
  808.    If Upper$(ANSWER$)="WEST"
  809.       WRITE["You walk into the wall."]
  810.    End If 
  811. Until LOCATION<>24
  812. '
  813. LOCATION25:
  814. LOCATION=25
  815. PICCY[14]
  816. WRITE["You walk back into the cell. Haydn and Keith are expounding"]
  817. WRITE["the virtues of the Commodore PET. There is a way out to the North."]
  818. Repeat 
  819.    COMMAND : UNIVERSAL
  820.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION26
  821.    If Upper$(ANSWER$)="SOUTH"
  822.       WRITE["You walk south, and trip over Barmy who is sitting on the floor."]
  823.    End If 
  824.    If Upper$(ANSWER$)="EAST"
  825.       WRITE["You walk into the wall."]
  826.    End If 
  827.    If Upper$(ANSWER$)="WEST"
  828.       WRITE["You walk into the wall."]
  829.    End If 
  830. Until LOCATION<>25
  831. '
  832. LOCATION26:
  833. LOCATION=26
  834. PICCY[8]
  835. B=Timer
  836. Repeat 
  837.    A=Timer-B
  838.    TIMELEFT=(100-A/50)
  839.    TIMELEFTY$=Str$(TIMELEFT)
  840.    TIMELINE$="You look at your watch. You have"+TIMELEFTY$+" seconds left."
  841.    WRITE[TIMELINE$]
  842.    If TIMELEFT=<0 Then Goto LOCATION27
  843.    COMMAND : UNIVERSAL
  844.    If Upper$(ANSWER$)="NORTH" and BUNK=0
  845.       Inc BUNK
  846.       WRITE["You are lost in a maze, but are getting closer. . ."]
  847.    End If 
  848.    If Upper$(ANSWER$)="EAST" and BUNK=1
  849.       Inc BUNK
  850.       WRITE["You are lost in a maze, but are getting closer. . ."]
  851.    End If 
  852.    If Upper$(ANSWER$)="WEST" and BUNK=2
  853.       Inc BUNK
  854.       WRITE["You are lost in a maze, but are getting closer. . ."]
  855.    End If 
  856.    If Upper$(ANSWER$)="SOUTH" and BUNK=3
  857.       Inc BUNK
  858.       WRITE["You are lost in a maze, but are getting closer. . ."]
  859.    End If 
  860.    If BUNK=4 Then Goto LOCATION28
  861.    WRITE["This corridor seems much like every other one."]
  862. Until LOCATION<>26
  863. '
  864. LOCATION27:
  865. LOCATION=27
  866. WRITE["The king stands in front of you. 'You have noteth found"]
  867. WRITE["The pink potato! Noweth. . .   YOU DIE!!"]
  868. WRITE["The earth seems to give way and you are falling. . . "]
  869. WRITE["Falling. . .     Falling. . . "]
  870. WRITE["THE   END"]
  871. Wait 75 : End 
  872. '
  873. LOCATION28:
  874. LOCATION=28
  875. PICCY[8]
  876. WRITE["You stumble into a large room. A signpost pointing south says"]
  877. WRITE["'This way for the pink nana!' and a sign on a door to the west says"]
  878. WRITE["'NOT through this door for the pink nana!'"]
  879. Repeat 
  880.    COMMAND : UNIVERSAL
  881.    If Upper$(ANSWER$)="NORTH" Then Goto LOCATION26
  882.    If Upper$(ANSWER$)="WEST" Then Goto LOCATION26
  883.    If Upper$(ANSWER$)="SOUTH" Then Goto LOCATION29
  884.    If Upper$(ANSWER$)="EAST" Then Goto LOCATION26
  885. Until LOCATION<>28
  886. '
  887. LOCATION29:
  888. PICCY[11]
  889. WRITE["In the middle of the room you see the pink banana, and a note"]
  890. WRITE["tied to it says: 'told you it was this way'"]
  891. WRITE["The king enters. 'Ahhhh, you haveth found it. . .'"]
  892. WRITE["'Now,' you say, 'Return us and the others to our time machine.'"]
  893. WRITE["The king shows you the way to your time machine, and you, "]
  894. WRITE["Twitman, Barmy, Keith and Haydn return to 1991."]
  895. WRITE["We hope you enjoyed Yoghurt boy and Twitman, the Quest for the"]
  896. WRITE["pink banana. Dont miss Y B and T M 2 - The revenge!!"]
  897. WRITE["C O N G R A T U L A T I O N S ! !"]
  898. Wait 100
  899. End