74 posts
Location
Australia
Posted 22 March 2012 - 06:04 AM
Does anyone have any good programs if you do can you tell me them :)/>/>
I really need some I tried programming but I failed and if there's any tips for me please feel free to tell me :D/>/>
Thanks Hamish1001 :)/>/>
im a NINJA :(/>/>
3 posts
Posted 22 March 2012 - 08:15 AM
I have made a program for Turtles. It's Called House Builder. It's pretty simple. You may like it.
124 posts
Location
Liverpool (no I am not a Scouser Im form Holland)
Posted 22 March 2012 - 08:36 AM
type in
print("hello world!")
well done you just made a program :(/>/>
go on keep trying and you will get there!
378 posts
Location
In the TARDIS
Posted 22 March 2012 - 08:43 PM
You can check out my programs to learn. I have an API something with rednet my API has monitor code in it… and my programs use the most basic events. If you analyse them I think this could help you. and if you want to kow the commands of the apis just type help [API_NAME]
And if you have ANY questions go ahead and ask me
74 posts
Location
Australia
Posted 22 March 2012 - 09:27 PM
type in
print("hello world!")
well done you just made a program :(/>/>
go on keep trying and you will get there!
haha :)/>/> i already know that i use textulis.slowWrite (i think thats it) its so much better :)/>/>
74 posts
Location
Australia
Posted 22 March 2012 - 09:30 PM
i made this
with help from other people (someone fixed it and made it work for me it did not work :)/>/> they added heaps of stuff i dont understand it :(/>/> )
function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end
term.clear()
term.setCursorPos(1,1)
print "Super Lock 2000"
print " "
write ("Password: ")
correctpass = "123"
pass = read("*")
if pass == (correctpass) then
print " "
write("Correct! You may enter!")
redstone.setOutput("left", true)
rs.setOutput("right",true)
rs.setOutput("back",true)
rs.setOutput("bottom",true)
rs.setOutput("top",true)
rs.setOutput("front",true)
sleep(4)
redstone.setOutput("left", false)
rs.setOutput("back",false)
rs.setOutput("top",false)
rs.setOutput("right",false)
rs.setOutput("bottom",false)
rs.setOutput("front",false)
os.reboot()
else
print " "
write("Incorrect! Rebooting!")
sleep(2)
os.reboot()
end
works good :)/>/>
378 posts
Location
In the TARDIS
Posted 23 March 2012 - 11:06 AM
i made this
with help from other people (someone fixed it and made it work for me it did not work :)/>/> they added heaps of stuff i dont understand it :(/>/> )
function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end
term.clear()
term.setCursorPos(1,1)
print "Super Lock 2000"
print " "
write ("Password: ")
correctpass = "123"
pass = read("*")
if pass == (correctpass) then
print " "
write("Correct! You may enter!")
redstone.setOutput("left", true)
rs.setOutput("right",true)
rs.setOutput("back",true)
rs.setOutput("bottom",true)
rs.setOutput("top",true)
rs.setOutput("front",true)
sleep(4)
redstone.setOutput("left", false)
rs.setOutput("back",false)
rs.setOutput("top",false)
rs.setOutput("right",false)
rs.setOutput("bottom",false)
rs.setOutput("front",false)
os.reboot()
else
print " "
write("Incorrect! Rebooting!")
sleep(2)
os.reboot()
end
works good :)/>/>
nice good work
why did you type the os.pullEvent function inot the code?