View difference between Paste ID: vRUF8Es1 and xuFgr4nF
SHOW: | | - or go back to the newest paste.
1-
print "Cyclic Assembler Schematic Swapper v1.0"
1+
print "Cyclic Assembler Schematic Cycler v1.1"
2
print "by revereddesecration"
3-
function tprint(t, indent)
3+
4-
  if not indent then indent = 0 end
4+
--[[
5-
  if type(t) == "table" then
5+
To use: place a schematic in the schematic slot and all remaining schematics in the inventory starting from the first inventory slot and continuing to the right. Set the time variable below to choose how long the cycle should be
6-
    for k,v in pairs(t) do
6+
]]
7-
      if type(v)=="table" then
7+
8-
          print(string.rep(" ",indent),k," | ",v)
8+
time = 60 -- seconds per cycle
9-
        tprint(v, indent+1)
9+
10-
      else
10+
11-
        print(string.rep(" ",indent),k," | ",v)
11+
12-
      end
12+
13-
    end
13+
14-
  else
14+
15-
    print(type(t), t)
15+
16
    schematics = schematics + 1
17
  end
18
end
19
print(schematics, " schematics, ", math.ceil(time/schematics), " seconds per")
20
21-
methods = ass.listMethods()
21+
22-
--tprint(methods)
22+
23
    sleep(math.ceil(time/schematics))
24
    ass.swapStacks(1,i)
25
  end
26
end