Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("QLV Constructor v1")
- print("")
- data = {}
- while true do
- print("Insert the name of the element")
- local name = read()
- print("Insert the color of the element")
- local color = read()
- print("Insert the type of the element (S/D)")
- local type = read()
- print("Insert the default of the element")
- local def = read()
- print("Insert the active of the element")
- local active = read()
- local d = {name=name, def=def, active=active, color=color, type=type}
- table.insert(data, d)
- print("Exit? (y/n)")
- local action = read()
- if action == "y" then
- break
- end
- end
- -- Save to a file
- local h = fs.open("qlvdata", "w")
- h.write(textutils.serialize(data))
- h.close()
- print("DONE!")
Add Comment
Please, Sign In to add comment