Posted 06 August 2013 - 02:43 AM
Ok, so I started playing around with CC today in Tekkit Classic, I understand some of it, but not much (keep this in mind if you want to reply :P/>)
Running CraftOS 1.3.
I've made a redpower frame bridge that extends over a moat, I have a computer on one side, and I want to execute the program with a button from the other side.
I have connected a red alloy wire to the left side of the computer and I have taken it underneath the moat and over to the other side and connected it to a stone button (yes it gets the signal from the button to the computer).
I have my program "Extend" which is built up like this:
Yes, I know there is probably a better way to do this, but I'm a noob, and this works xD
So! Onto my question, is there any way to write a easy script to make the computer run this program when a stone button is pressed?
Thanks in advance,
Kegulf :)/>
Running CraftOS 1.3.
I've made a redpower frame bridge that extends over a moat, I have a computer on one side, and I want to execute the program with a button from the other side.
I have connected a red alloy wire to the left side of the computer and I have taken it underneath the moat and over to the other side and connected it to a stone button (yes it gets the signal from the button to the computer).
I have my program "Extend" which is built up like this:
Spoiler
-- Text and apperances
term.clear()
term.setCursorPos(1, 1)
print("Extending the Bridge!")
sleep "1.5"
term.clear()
term.setCursorPos(1, 1)
--Extending bridge 6 blocks using White as the extender wire
redstone.setBundledOutput("back", 1)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 1)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 1)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 1)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 1)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 1)
sleep "0.6"
redstone.setBundledOutput("back", 0)
-- Some more text
print("The Bridge has been Extended!")
-- 6 seconds to get over
sleep "6"
term.clear()
term.setCursorPos(1, 1)
-- Pulling the bridge back
redstone.setBundledOutput("back", 2)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 2)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 2)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 2)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 2)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
redstone.setBundledOutput("back", 2)
sleep "0.6"
redstone.setBundledOutput("back", 0)
sleep "0.6"
Yes, I know there is probably a better way to do this, but I'm a noob, and this works xD
So! Onto my question, is there any way to write a easy script to make the computer run this program when a stone button is pressed?
Thanks in advance,
Kegulf :)/>