This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Karaktar's profile picture

redstone loops clock output

Started by Karaktar, 22 August 2017 - 11:56 PM
Karaktar #1
Posted 23 August 2017 - 01:56 AM
hi need help cant figure this crap out i use to understand these damn things but not anymore apparently all im trying to do is write 2 programs one that out puts a pulse on one side so many times and one that outputs a pulse on a diff side so many times simple right except i suck or they suck or well something sucks and it aint cool
Karaktar #2
Posted 23 August 2017 - 04:45 AM
so this is what i have been trying

for i = 1,10 do
redstone.setoutput("left" "true")
sleep(1)
redstone.setoutput("left" "false")
sleep(1)
end
Bomb Bloke #3
Posted 23 August 2017 - 08:59 AM
Seems you're missing a comma after your "left"s.
The Crazy Phoenix #4
Posted 23 August 2017 - 04:32 PM
It should be ("left", true) and ("left", false). Missing commas and true/false is a boolean, not a string.
Edited on 23 August 2017 - 02:32 PM
Dog #5
Posted 23 August 2017 - 04:38 PM
Also, redstone.setoutput is not a valid redstone command - redstone.setOutput is. You need to capitalize the 'o's in output.
Karaktar #6
Posted 24 August 2017 - 12:49 AM
great thanks guys got it working now would it be hard to have the program remember what number its on after a reboot since the damn things reboot after every move
Bomb Bloke #7
Posted 24 August 2017 - 12:59 AM
What do you mean by "move"? Are you trying to make an elevator out of Redstone In Motion or somesuch?
The Crazy Phoenix #8
Posted 24 August 2017 - 12:34 PM
Either use some form of world sensor or store the current index in a file.