Advertisement
DigiDuncan

Coding Help

Nov 27th, 2011
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. color 13:PRINT "Your" ;: color 10:PRINT "iron door " ;: color 13:PRINT "wont open!!"
  2. SLEEP 1000
  3. color 13:PRINT "Do you...?"
  4. PRINT" A: Craft a " ;: color 11:PRINT "button?"
  5. color 13:PRINT" B: /give honeydew 46 1?"
  6. color 13:PRINT "Select A or B."
  7.  
  8. do
  9. dim as string key = ucase(inkey())
  10. color 13:print "The " ;: color 10:PRINT "button " ;: color 13:print "works!"
  11. goto door_open
  12. sleep 100, 1
  13.  
  14. loop
  15. elseif key = "B" then
  16. color 13:print "The " ;: color 10:PRINT "TNT" ;: color 13:print "explodes! The door is now 'open'."
  17. goto door_open
  18. end if
  19. sleep 100, 1
  20.  
  21. loop
  22. sleep 1000
  23. door_open: color 13:PRINT "You escaped your " ;: color 10:PRINT "home" ;: color 13:PRINT "!"
  24. SLEEP 3000
  25. cls
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement