FoxWorn3365

mkqlv1

Nov 18th, 2025
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. print("QLV Constructor v1")
  2.  
  3. print("")
  4.  
  5. data = {}
  6.  
  7. while true do
  8.   print("Insert the name of the element")
  9.   local name = read()
  10.   print("Insert the color of the element")
  11.   local color = read()
  12.   print("Insert the type of the element (S/D)")
  13.   local type = read()
  14.   print("Insert the default of the element")
  15.   local def = read()
  16.   print("Insert the active of the element")
  17.   local active = read()
  18.  
  19.   local d = {name=name, def=def, active=active, color=color, type=type}
  20.  
  21.   table.insert(data, d)
  22.  
  23.   print("Exit? (y/n)")
  24.   local action = read()
  25.   if action == "y" then
  26.     break
  27.   end
  28. end
  29.  
  30. -- Save to a file
  31. local h = fs.open("qlvdata", "w")
  32. h.write(textutils.serialize(data))
  33. h.close()
  34.  
  35. print("DONE!")
Add Comment
Please, Sign In to add comment