Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Rpg Starter Script By LuaEclipser v0.6 Beta.
- --]]
- --local values
- name = "player"
- gold = 100
- health = 100
- local w,h = term.getSize()
- --startup
- function display()
- term.setCursorPos(1,3)
- term.clearLine(3)
- term.setCursorPos(1,3)
- end
- function head() -- The Header
- term.setCursorPos(w/2, 1)
- write("Game")
- term.setCursorPos(1, 2)
- write(string.rep("=", w), 2)
- end
- function drawMain()
- --term.setCursorPos(1,h/2+5)
- --term.write(string.rep("=", w), 2)
- term.setCursorPos(1,h/2-5)
- term.write(string.rep("=", w), 2)
- end
- function ReadComplete()
- term.clear()
- head()
- drawMain()
- display()
- end
- display()
- readComplete()
- write("Whats Your Name Adventurer? > ")
- name = read()
- display()
- readComplete()
- write("press any key to start "..name)
- event, p1, p2, p3 = os.pullEvent()
- display()
- readComplete()
Advertisement
Add Comment
Please, Sign In to add comment