Advertisement
skidzt

Untitled

Jan 20th, 2013
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1.  
  2. write("Please select a direction")
  3. write("1. North")
  4. write("2. South")
  5. write("3. East")
  6. write("4. West")
  7. write("5. Up")
  8. write("6. Down")
  9. input = read()
  10.  
  11. col = 0
  12.  
  13. if input == 1 then
  14. col = colours.orange
  15. else if input == 2 then
  16. col = colours.yellow
  17. else if input == 3 then
  18. col = colours.magenta
  19. else if input == 4 then
  20. col = colours.lightBlue
  21. else if input == 5 then
  22. col = colours.white
  23. else if input == 6 then
  24. col = colours.lime
  25. end
  26.  
  27. write("How far?")
  28. distance = read()
  29.  
  30. for i=1,tonumber(distance) do
  31. rs.setBundledOutput("back", col)
  32. sleep(0.5)
  33. rs.setBundledOutput("back", 0)
  34. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement