Posted 10 June 2012 - 09:45 AM
hello, i'm having a program like this:
i'm using buildcraft and i'm going to use this program on a computer next to a storage chest.
i want another computer to let this computer use this program, but for that i want to make a variable after the name chestdispencer.
so if i say chestdispencer 43, i want it to dispence 43 items.
and how do i let it return the value true if it gets used in another program?
–[[
this programs dispences (how mutch) out of the chest
it still needs some adjustments
]]–
print( "starting program chestdispencer" )
sleep(1)
local quantity = 10
print("going to dispence ", quantity, " items in a row")
sleep(1)
print( "starting dispencing" )
repeat
redstone.setOutput("right", true)
sleep(5)
redstone.setOutput("right",false)
quantity = quantity-1
print (quantity, " to go")
until quantity ==0
sleep(1)
print("all dispenced")
sleep(1)
print("ending program")
i'm using buildcraft and i'm going to use this program on a computer next to a storage chest.
i want another computer to let this computer use this program, but for that i want to make a variable after the name chestdispencer.
so if i say chestdispencer 43, i want it to dispence 43 items.
and how do i let it return the value true if it gets used in another program?