Advertisement
DigiDuncan

FLOH

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