Advertisement
plirof2

Dragons Lair Chatgpt BASIC v001

Nov 4th, 2024 (edited)
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. I'll send you a detailed walkthrough for the **Amiga version of Dragon's Lair**. I want to make an text adventure in Sinclair BASIC using the following walktrough. If the player enter the wront text then dispaly a messae :You Die!!" and start the game over again.
  2.  
  3. Here's the complete game in Sinclair BASIC, ensuring that the player must input each move correctly to proceed. If they enter the wrong move at any point, they'll see "You Die!!" and the game will restart:
  4.  
  5. 10 PRINT "Welcome to Dragon's Lair Adventure!"
  6. 20 GOSUB 1000  ' Start the game
  7. 30 STOP
  8.  
  9. 100 REM GAME LOOP
  10. 101 CLS
  11. 102 PRINT "1. Gate"
  12. 103 PRINT "You begin at the castle gate, facing a large, ominous door. A guard approaches."
  13. 104 PRINT "Enter your moves one at a time:"
  14. 105 PRINT "Move 1: Right"
  15. 106 INPUT A$
  16. 107 IF A$<>"Right" THEN GOTO 9980
  17. 108 PRINT "Move 2: Up"
  18. 109 INPUT A$
  19. 110 IF A$<>"Up" THEN GOTO 9980
  20. 111 GOTO 200
  21.  
  22. 200 REM DRINK ME STAGE
  23. 201 CLS
  24. 202 PRINT "2. Drink Me"
  25. 203 PRINT "Inside, a strange potion awaits on a table. A shadow looms, threatening you."
  26. 204 PRINT "Enter your moves one at a time:"
  27. 205 PRINT "Move 1: Down"
  28. 206 INPUT A$
  29. 207 IF A$<>"Down" THEN GOTO 9980
  30. 208 PRINT "Move 2: Jump"
  31. 209 INPUT A$
  32. 210 IF A$<>"Jump" THEN GOTO 9980
  33. 211 GOTO 300
  34.  
  35. 300 REM GATE (REVERSED)
  36. 301 CLS
  37. 302 PRINT "3. Gate (Reversed)"
  38. 303 PRINT "You return to the gate, but this time it's a mirrored version."
  39. 304 PRINT "Enter your moves one at a time:"
  40. 305 PRINT "Move 1: Left"
  41. 306 INPUT A$
  42. 307 IF A$<>"Left" THEN GOTO 9980
  43. 308 PRINT "Move 2: Up"
  44. 309 INPUT A$
  45. 310 IF A$<>"Up" THEN GOTO 9980
  46. 311 GOTO 400
  47.  
  48. 400 REM BATS STAGE
  49. 401 CLS
  50. 402 PRINT "4. Bats"
  51. 403 PRINT "The next area is dark and filled with fluttering bats."
  52. 404 PRINT "Enter your moves one at a time:"
  53. 405 PRINT "Move 1: Right"
  54. 406 INPUT A$
  55. 407 IF A$<>"Right" THEN GOTO 9980
  56. 408 PRINT "Move 2: Jump"
  57. 409 INPUT A$
  58. 410 IF A$<>"Jump" THEN GOTO 9980
  59. 411 GOTO 500
  60.  
  61. 500 REM TENTACLE STAGE
  62. 501 CLS
  63. 502 PRINT "5. Tentacle"
  64. 503 PRINT "You find yourself in a room with a large, menacing tentacle."
  65. 504 PRINT "Enter your moves one at a time:"
  66. 505 PRINT "Move 1: Up"
  67. 506 INPUT A$
  68. 507 IF A$<>"Up" THEN GOTO 9980
  69. 508 PRINT "Move 2: Right"
  70. 509 INPUT A$
  71. 510 IF A$<>"Right" THEN GOTO 9980
  72. 511 GOTO 600
  73.  
  74. 600 REM BATS (REVERSED)
  75. 601 CLS
  76. 602 PRINT "6. Bats (Reversed)"
  77. 603 PRINT "Back in the bat-filled area, but the arrangement has changed."
  78. 604 PRINT "Enter your moves one at a time:"
  79. 605 PRINT "Move 1: Left"
  80. 606 INPUT A$
  81. 607 IF A$<>"Left" THEN GOTO 9980
  82. 608 PRINT "Move 2: Jump"
  83. 609 INPUT A$
  84. 610 IF A$<>"Jump" THEN GOTO 9980
  85. 611 GOTO 700
  86.  
  87. 700 REM TENTACLE (REVERSED)
  88. 701 CLS
  89. 702 PRINT "7. Tentacle (Reversed)"
  90. 703 PRINT "The tentacle returns, but its movements are now different."
  91. 704 PRINT "Enter your moves one at a time:"
  92. 705 PRINT "Move 1: Right"
  93. 706 INPUT A$
  94. 707 IF A$<>"Right" THEN GOTO 9980
  95. 708 PRINT "Move 2: Up"
  96. 709 INPUT A$
  97. 710 IF A$<>"Up" THEN GOTO 9980
  98. 711 GOTO 800
  99.  
  100. 800 REM WHIRL STAGE
  101. 801 CLS
  102. 802 PRINT "8. Whirl"
  103. 803 PRINT "You encounter a swirling vortex, pulling you towards its center."
  104. 804 PRINT "Enter your moves one at a time:"
  105. 805 PRINT "Move 1: Down"
  106. 806 INPUT A$
  107. 807 IF A$<>"Down" THEN GOTO 9980
  108. 808 PRINT "Move 2: Jump"
  109. 809 INPUT A$
  110. 810 IF A$<>"Jump" THEN GOTO 9980
  111. 811 GOTO 900
  112.  
  113. 900 REM RAPIDS STAGE
  114. 901 CLS
  115. 902 PRINT "9. Rapids"
  116. 903 PRINT "A rushing river blocks your path, with logs floating downstream."
  117. 904 PRINT "Enter your moves one at a time:"
  118. 905 PRINT "Move 1: Right"
  119. 906 INPUT A$
  120. 907 IF A$<>"Right" THEN GOTO 9980
  121. 908 PRINT "Move 2: Up"
  122. 909 INPUT A$
  123. 910 IF A$<>"Up" THEN GOTO 9980
  124. 911 GOTO 1000
  125.  
  126. 1000 REM CAULDRON STAGE
  127. 1001 CLS
  128. 1002 PRINT "10. Cauldron"
  129. 1003 PRINT "A bubbling cauldron filled with a mysterious potion sits in the center."
  130. 1004 PRINT "Enter your moves one at a time:"
  131. 1005 PRINT "Move 1: Left"
  132. 1006 INPUT A$
  133. 1007 IF A$<>"Left" THEN GOTO 9980
  134. 1008 PRINT "Move 2: Jump"
  135. 1009 INPUT A$
  136. 1010 IF A$<>"Jump" THEN GOTO 9980
  137. 1011 GOTO 1100
  138.  
  139. 1100 REM KNIGHT STAGE
  140. 1101 CLS
  141. 1102 PRINT "11. Knight"
  142. 1103 PRINT "A knight stands ready for battle, challenging you to a duel."
  143. 1104 PRINT "Enter your moves one at a time:"
  144. 1105 PRINT "Move 1: Right"
  145. 1106 INPUT A$
  146. 1107 IF A$<>"Right" THEN GOTO 9980
  147. 1108 PRINT "Move 2: Up"
  148. 1109 INPUT A$
  149. 1110 IF A$<>"Up" THEN GOTO 9980
  150. 1111 GOTO 1200
  151.  
  152. 1200 REM BOULDER STAGE
  153. 1201 CLS
  154. 1202 PRINT "12. Boulder"
  155. 1203 PRINT "A massive boulder rolls down towards you, threatening to crush you."
  156. 1204 PRINT "Enter your moves one at a time:"
  157. 1205 PRINT "Move 1: Down"
  158. 1206 INPUT A$
  159. 1207 IF A$<>"Down" THEN GOTO 9980
  160. 1208 PRINT "Move 2: Jump"
  161. 1209 INPUT A$
  162. 1210 IF A$<>"Jump" THEN GOTO 9980
  163. 1211 GOTO 1300
  164.  
  165. 1300 REM KNIGHT (REVERSED)
  166. 1301 CLS
  167. 1302 PRINT "13. Knight (Reversed)"
  168. 1303 PRINT "You face the knight again, but the dynamics of the fight are altered."
  169. 1304 PRINT "Enter your moves one at a time:"
  170. 1305 PRINT "Move 1: Left"
  171. 1306 INPUT A$
  172. 1307 IF A$<>"Left" THEN GOTO 9980
  173. 1308 PRINT "Move 2: Up"
  174. 1309 INPUT A$
  175. 1310 IF A$<>"Up" THEN GOTO 9980
  176. 1311 GOTO 1400
  177.  
  178. 1400 REM BOULDER (REVERSED)
  179. 1401 CLS
  180. 1402 PRINT "14. Boulder (Reversed)"
  181. 1403 PRINT "The boulder returns, but you must navigate through different obstacles."
  182. 1404 PRINT "Enter your moves one at a time:"
  183. 1405 PRINT "Move 1: Right"
  184. 1406 INPUT A$
  185. 1407 IF A$<>"Right" THEN GOTO 9980
  186. 1408 PRINT "Move 2: Jump"
  187. 1409 INPUT A$
  188. 1410 IF A$<>"Jump" THEN GOTO 9980
  189. 1411 GOTO 1500
  190.  
  191. 1500 REM 15.BEDROOM STAGE
  192. 1501 CLS
  193. 1502 PRINT "15. Bedroom"
  194. 1503 PRINT "You enter a dark bedroom,"
  195. 1504 PRINT "Enter your moves one at a time:"
  196. 1505 PRINT "Move 1: "
  197. 1506 INPUT A$
  198. 1507 IF A$<>"Up" THEN GOTO 9980
  199. 1508 PRINT "Move 2: "
  200. 1509 INPUT A$
  201. 1510 IF A$<>"Right" THEN GOTO 9980
  202. 1511 GOTO 1600
  203.  
  204. 1600 REM 16.Bedroom (Reversed Version of 15)
  205. 1601 CLS
  206. 1602 PRINT "16. Bedroom Reversed"
  207. 1603 PRINT "You enter a dark bedroom,"
  208. 1604 PRINT "Enter your moves one at a time:"
  209. 1605 PRINT "Move 1: "
  210. 1606 INPUT A$
  211. 1607 IF A$<>"Right" THEN GOTO 9980
  212. 1608 PRINT "Move 2: "
  213. 1609 INPUT A$
  214. 1610 IF A$<>"Jump" THEN GOTO 9980
  215. 1611 GOTO 1700
  216.  
  217. 1700 REM  17. Dragon's Lair
  218. 1701 CLS
  219. 1702 PRINT "17. Dragon's Lair"
  220. 1703 PRINT "You enter a dark bedroom,"
  221. 1704 PRINT "Enter your moves one at a time:"
  222. 1705 PRINT "Move 1: "
  223. 1706 INPUT A$
  224. 1707 IF A$<>"Left" THEN GOTO 9980
  225. 1705 PRINT "Move 2: "
  226. 1706 INPUT A$
  227. 1707 IF A$<>"Up" THEN GOTO 9980
  228. 1705 PRINT "Move 3: "
  229. 1706 INPUT A$
  230. 1707 IF A$<>"Right" THEN GOTO 9980
  231. 1708 PRINT "Move 4: "
  232. 1709 INPUT A$
  233. 1710 IF A$<>"Jump" THEN GOTO 9980
  234. 1711 GOTO 8000
  235.  
  236.  
  237.  
  238. 8000 PRINT "You Win!!!"
  239. 8100 STOP
  240.  
  241. 9998 PRINT "You Die!!"
  242. 9999 GOTO 1000
  243.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement