Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Project : Shorthand Program/Game Engine --
- -- Creator : Just Does Games --
- -- Date : 12/8/18 --
- -- Version : 1.0 --
- -- NEW COMMANDS --
- ------------------
- -- cls() > shell.run("clear")
- -- s(a) > sleep(a)
- -- tc() > term.clear()
- -- p("example") > print("example")
- -- w("example") > write("example")
- -- sp("example") > texturils.slowPrint("example")
- -- sw("example") > textutils.slowWrite("example")
- -- c(a) > term.setTextColor(colours.a)
- -- b(a) > term.setBackgroundColor(colours.a)
- -- cp(a,b) > term.setCursorPos(a,b)
- -- use(a) > shell.run(a)
- if use == nil or s == nil or cls == nil or tc == nil or p == nil or w == nil or sp == nil or sw == nil or c == nil or b == nil or cp == nil then
- using = function(a) shell.run(a) end use = function(a) shell.run(a) end s = function(a) sleep(a) end cls = function() shell.run("clear") end local console = function(a) print("CONSOLE : "..a) sleep(.001) end p = function(a) print(a) end w = function(a) write(a) end
- sw = function(a) textutils.slowWrite(a) end sp = function(a) textutils.slowPrint(a) end
- c = function(a) if term.isColor() == true then if a == 0 then term.setTextColor(colours.white) elseif a == 1 then term.setTextColor(colours.orange) elseif a == 2 then term.setTextColor(colours.magenta) elseif a == 3 then term.setTextColor(colours.lightBlue) elseif a == 4 then term.setTextColor(colours.yellow) elseif a == 5 then term.setTextColor(colours.lime) elseif a == 6 then term.setTextColor(colours.pink) elseif a == 7 then term.setTextColor(colours.grey) elseif a == 8 then term.setTextColor(colours.lightGrey) elseif a == 9 then term.setTextColor(colours.cyan) elseif a == "a" then term.setTextColor(colours.purple) elseif a == "b" then term.setTextColor(colours.blue) elseif a == "c" then term.setTextColor(colours.brown) elseif a == "d" then term.setTextColor(colours.green) elseif a == "e" then term.setTextColor(colours.red) elseif a == "f" then term.setTextColor(colours.black) elseif a == "red" then c("e") elseif a == "orange" then c(1) elseif a == "yellow" then c(4) elseif a == "green" then c("d") elseif a == "blue" then c("b") elseif a == "purple" then c("a") elseif a == "black" then c("f") elseif a == "white" then c(0) end end end tc = function() term.clear() end
- b = function(a) if term.isColor() == true then if a == 0 then term.setBackgroundColor(colours.white) elseif a == 1 then term.setBackgroundColor(colours.orange) elseif a == 2 then term.setBackgroundColor(colours.magenta) elseif a == 3 then term.setBackgroundColor(colours.lightBlue) elseif a == 4 then term.setBackgroundColor(colours.yellow) elseif a == 5 then term.setBackgroundColor(colours.lime) elseif a == 6 then term.setBackgroundColor(colours.pink) elseif a == 7 then term.setBackgroundColor(colours.grey) elseif a == 8 then term.setBackgroundColor(colours.lightGrey) elseif a == 9 then term.setBackgroundColor(colours.cyan) elseif a == "a" then term.setBackgroundColor(colours.purple) elseif a == "b" then term.setBackgroundColor(colours.blue) elseif a == "c" then term.setBackgroundColor(colours.brown) elseif a == "d" then term.setBackgroundColor(colours.green) elseif a == "e" then term.setBackgroundColor(colours.red) elseif a == "f" then term.setBackgroundColor(colours.black) elseif a == "red" then b("e") elseif a == "orange" then b(1) elseif a == "yellow" then b(4) elseif a == "green" then b("d") elseif a == "blue" then b("b") elseif a == "purple" then b("a") elseif a == "black" then b("f") elseif a == "white" then b(0) end end end cp = function(a,b) term.setCursorPos(a,b) end
- --__________________________________________________
- --| \\// \\// |
- --| || || |
- --| \/ Remove this line for no splash effect \/ |
- cls() console("Loading Shorthand...") console("cp loaded...") console("use loaded...") console("p loaded...") console("w loaded...") console("sw loaded...") console("sp loaded...") console("c loaded...") console("tc loaded...") console("b loaded...") console("cp loaded...") console("Loaded 10/10.") sleep(.3) cls() p("Shorthand Loaded!") sleep(.1)
- --| |
- ----------------------------------------------------
- end -- <<< DO NOT DELETE THIS 'End'. THIS WILL BREAK THE SYSTEM! ONLY THE LINE ABOVE FOR NO SPLASH /\
- -- ||
Advertisement
Add Comment
Please, Sign In to add comment