Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = 0
- function c(c)
- if c == "blue" then return colors.blue end
- if c == "white" then return colors.white end
- if c == "magenta" then return colors.magenta end
- if c == "lightBlue" then return colors.lightBlue end
- if c == "orange" then return colors.orange end
- if c == "yellow" then return colors.yellow end
- if c == "gray" then return colors.gray end
- if c == "lightGray" then return colors.lightGray end
- if c == "cyan" then return colors.cyan end
- if c == "purple" then return colors.purple end
- if c == "brown" then return colors.brown end
- if c == "green" then return colors.green end
- if c == "red" then return colors.red end
- if c == "black" then return colors.black end
- end
- --f = colors.combine(f, c(#farbe#) ~ hinzufügen
- --f = colors.subtract(f, c(#farbe#) ~ entfernen
- --mehr oder weniger unwichtiges
- --nur zum überprüfen in den console
- function quest()
- write("Welche Farbe? :")
- col = read()
- write("add / remove? :")
- dir = read()
- if dir == "add" then
- f = colors.combine(f, c(col))
- elseif dir == "remove" then
- f = colors.subtract(f, c(col))
- end
- main()
- end
- function main()
- print(f)
- write("Fertig?: ")
- ans = read()
- if ans == "ja" or ans == "JA" or ans == "Ja" or ans == "jA" then
- print("zurück zur frage")
- quest()
- elseif ans == "reboot" then
- os.reboot()
- end
- main()
- end
- quest()
- --du machst den einfach jedes mal nur rs.setBundledOutput("back", f)
- --vorher aber combine bzw. subtract machen!!
Add Comment
Please, Sign In to add comment