Posted 15 December 2012 - 12:01 AM
Hi all!
I'm new here, just started experimenting with ComputerCraft for the very first time.
I've managed to make a short ruleboard with rotating text and a small timer based program with redstone output for my bacon machine by looking at many of the helpfull tips and programs on this forum. (i dont know a thing about Lua btw)
So now im making a cinema and i want to start and stop the implented StarWars movie by use of two buttons.
The file below i want to set as startup and then be able to start and stop the movie. When stopping the movie it should return to the initial state so i can start it again at wish.
I don't think i'm on the right track here, so any help would be highly appreciated.
Thanks in advance!
I'm new here, just started experimenting with ComputerCraft for the very first time.
I've managed to make a short ruleboard with rotating text and a small timer based program with redstone output for my bacon machine by looking at many of the helpfull tips and programs on this forum. (i dont know a thing about Lua btw)
So now im making a cinema and i want to start and stop the implented StarWars movie by use of two buttons.
The file below i want to set as startup and then be able to start and stop the movie. When stopping the movie it should return to the initial state so i can start it again at wish.
I don't think i'm on the right track here, so any help would be highly appreciated.
Thanks in advance!
monitor.clear()
monitor.setCursorPos(1,1)
while true do
os.pullEvent('redstone')
if redstone.getBundledInput("bottom",1) then -- waiting for pulse on white
shell.run("monitor,"top","/secret/alongtimeago")
end
if redstone.getBundledInput("bottom",2) then -- waiting for pulse on yellow
os.reboot()
end