Advertisement
DigiDuncan

TLOH

Nov 27th, 2011
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.59 KB | None | 0 0
  1. 'The Lengend of Honeydew
  2. 'by DigiDuncan
  3.  
  4. dim shared as integer TitleLine
  5.  
  6. declare sub Intro()
  7. declare function UpdateTitleWhileWaiting(Amount as integer,RestorePos as integer=1) as integer
  8.  
  9. Intro()
  10.  
  11. function UpdateTitleWhileWaiting(Amount as integer,RestorePos as integer=1) as integer
  12. dim as integer OldLine = csrlin() 'saving the line position
  13. dim as integer OldCol = pos() 'saving the column position
  14. dim as double TMR = timer 'get current time (in seconds)
  15. function = 0
  16.  
  17. while (timer-TMR) < (Amount/1000)
  18. locate TitleLine,1,0: color rnd*16
  19. print "The legend of Honeydew"
  20. dim as string Key = inkey$()
  21. if ucase(Key) = "S" then function=-1:exit while
  22. if Key <> "" then exit while
  23. sleep 100,1
  24. wend
  25.  
  26. if RestorePos then
  27. locate OldLine,OldCol
  28. end if
  29.  
  30. end function
  31.  
  32. sub Intro()
  33. #macro WaitOrExit(TimeAmount)
  34. sleep TimeAmount: if ucase(inkey()) = "S" then exit sub
  35. #endmacro
  36.  
  37. PRINT "The Lengend of Honeydew"
  38. PRINT " By DigiDuncan"
  39. PRINT " With help from Mysoft"
  40. WaitorExit(2000)
  41.  
  42. PRINT "A game by DigiGames, Inc.!"
  43. WaitOrExit(1000)
  44.  
  45. PRINT "PRESS S TO SKIP"
  46. WaitOrExit(1000)
  47.  
  48. TitleLine = csrlin()
  49.  
  50. UpdateTitleWhileWaiting(2000,0)
  51. color 7:PRINT "A long time ago..."
  52. if UpdateTitleWhileWaiting(2000) = -1 then exit sub
  53. color 7:PRINT "In the world of Kazmohdan..."
  54. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  55. color 7:PRINT "A baby dwarf was born..."
  56. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  57. color 7:PRINT "And this dwarf was named..."
  58. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  59. color 7:PRINT "Honeydew."
  60. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  61. color 7:PRINT "And one day..."
  62. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  63. color 7:PRINT "Something terrible happened."
  64. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  65. color 7:PRINT "A terrible invasion of green rectangular devils overtook Kazmodhan."
  66. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  67. color 7:PRINT "Honeydew's world was in peril."
  68. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  69. color 7:PRINT "Then, a space man came to Kazmohdan."
  70. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  71. color 7:PRINT "And his name was...."
  72. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  73. color 7:PRINT "Xephos."
  74. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  75. color 7:PRINT "Together, Honeydew and Xephos saved Minecraftia, and became heroes!"
  76. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  77. color 7:PRINT "And from that day on, they were the best of friends...."
  78. if UpdateTitleWhileWaiting(1000) = -1 then exit sub
  79.  
  80. end sub
  81. SLEEP 3000
  82. cls
  83. SLEEP 1000
  84. color 7:PRINT "The Legend of Honeydew"
  85. SLEEP 2000
  86. color 7:PRINT "PRESS C TO COUNTINUE"
  87. do
  88. sleep 10,1
  89. loop until ucase(inkey)="C"
  90. color 10:PRINT "Game start!"
  91. SLEEP 5000
  92. color 14:PRINT "You awake on the Yogiverse server with your friend" ;: color 11:PRINT " Xephos " ;: color 14:PRINT "at your side."
  93. SLEEP 2000
  94. color 13:PRINT "A wild " ;: color 10:PRINT "Creeper " ;: color 13:PRINT "approches!"
  95. SLEEP 1000
  96. color 13:PRINT "Do you...?"
  97. PRINT" A: hit with " ;: color 11:PRINT "diamond sword?"
  98. color 13:PRINT" B: Push out door, then close door?"
  99. color 13:PRINT "Select A or B."
  100.  
  101. do
  102. dim as string key = ucase(inkey())
  103. color 13:print "The " ;: color 10:PRINT "Creeper " ;: color 13:print "sizzles."
  104. color 13:print "Do you...?"
  105. PRINT" A: hit again?"
  106. PRINT" B: leave it there?"
  107. color 13:PRINT "Select A or B."
  108. do
  109. dim as string key = ucase(inkey())
  110. if key = "A" then
  111. color 13:print "The " ;: color 10:PRINT "Creeper " ;: color 13:print "dies! Collect " ;: color 6:PRINT"1 " ;: color 2:PRINT"gunpowder."
  112. goto creeper_win
  113. elseif key = "B" then
  114. color 13:print "The " ;: color 10:PRINT "Creeper " ;: color 13:print "explodes! Luckily, your house is bedrock."
  115. goto creeper_win
  116. exit do
  117. end if
  118. sleep 100, 1
  119.  
  120. loop
  121. if key = "B" then
  122. color 13:print "The " ;: color 10:PRINT "Creeper " ;: color 13:print "stares at you through the iron door, then promtly explodes. Luckily, your house is bedrock."
  123. goto creeper_win
  124. endif
  125. sleep 100, 1
  126.  
  127. loop
  128. sleep 1000
  129. creeper_win: color 13:PRINT "You defeated the " ;: color 10:PRINT "Creeper" ;: color 13:PRINT "!"
  130. SLEEP 3000
  131. cls
  132. color 10:PRINT "--CUT SCENE BEGIN--"
  133. color 11:PRINT "Xephos:"
  134. sleep 2000
  135. color 7:print " Good job, Honeydew!"
  136. sleep 2000
  137. print " I got word from " ;: color 11:PRINT "Knight_Peculier" ;: color 7:print " that a new adventure awaits us to the east, beyond the mountains!"
  138. SLEEP 2000
  139. color 11:PRINT " Professor Grizwald " ;: color 7:PRINT "wants us to participate in his latest expedition!"
  140. SLEEP 2000
  141. PRINT " Into the largest seam of redstone in all of Minecraftia!"
  142. SLEEP 2000
  143. color 11:PRINT "Honeydew:"
  144. SLEEP 2000
  145. color 7:print " I already have too much of the bloody stuff. Why would I need more?"
  146. SLEEP 2000
  147. color 11:print "Xephos:"
  148. SLEEP 2000
  149. color 7:print " Not for us, for " ;: color 11:PRINT "Captain_Sparklez" ;: color 7:print "'s latest project: *THE ZORK*!"
  150. SLEEP 2000
  151. color 11:print "Honeydew:"
  152. SLEEP 2000
  153. color 7:print " Give me coffee and a jaffa, and lets do this!!"
  154. SLEEP 2000
  155. color 10:PRINT "--CUT SCENE END--"
  156. SLEEP 1000
  157. color 6:PRINT "Press C to Continue"
  158. do
  159. sleep 10,1
  160. loop until ucase(inkey)="C"
  161. cls
  162. SLEEP 2000
  163. color 13:PRINT "Do you...?"
  164. PRINT" A: Eat your " ;: color 11:PRINT "jaffa?"
  165. color 13:PRINT "Select A"
  166.  
  167. do
  168. sleep 10,1
  169. loop until ucase(inkey)="A"
  170. color 13:PRINT "Your " ;: color 10:PRINT "energy " ;: color 13:PRINT "is now full!"
  171. SLEEP 3000
  172. cls
  173. SLEEP 2000
  174. color 13:PRINT "Your" ;: color 10:PRINT "iron door " ;: color 13:PRINT "wont open!!"
  175. SLEEP 1000
  176. color 13:PRINT "Do you...?"
  177. PRINT" A: Craft a " ;: color 11:PRINT "button?"
  178. color 13:PRINT" B: /give honeydew 46 1?"
  179. color 13:PRINT "Select A or B."
  180. dim key as string
  181. do
  182. key = ucase(inkey())
  183. color 13:print "The " ;: color 10:PRINT "button " ;: color 13:print "works!"
  184. goto door_open
  185. sleep 100, 1
  186.  
  187. loop
  188. if key = "B" then
  189. color 13:print "The " ;: color 10:PRINT "TNT" ;: color 13:print "explodes! The door is now 'open'."
  190. goto door_open
  191. end if
  192.  
  193. sleep 1000
  194. door_open: color 13:PRINT "You escaped your " ;: color 10:PRINT "home" ;: color 13:PRINT "!"
  195. SLEEP 3000
  196. cls
  197.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement