Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- local args = {...}
- local param = args[1]
- if param == nil then
- param = 29
- end
- --local param = 0
- print("param: ", param)
- local trolls = {
- [2] = "tonumber(1)"
- [3] = "tonumber(2)"
- [4] = "tonumber(3)"
- [5] = "tonumber(4)"
- [6] = "tonumber(5)"
- [7] = "tonumber(6)"
- [8] = "tonumber(7)"
- [9] = "tonumber(8)"
- [10] = "tonumber(9)"
- }
- function displayText (key)
- term.clear()
- term.setCursorPos(1,1)
- --print("They see me trolling, they hatin!")
- print(Timer set to: ".. trolls[key])
- end
- displayText(param)
- repeat
- event, key = os.pullEvent("key")
- displayText(key)
- until key == 14
Advertisement
Add Comment
Please, Sign In to add comment