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

[lua] program

Started by darknuju, 16 December 2012 - 02:55 PM
darknuju #1
Posted 16 December 2012 - 03:55 PM
hello everyone i am a very new programmer i play on a server with other people and i am trying to make a programwith many simplifying programs in it. one of the first programs i plan to make a simple door locking program, heres how it works

place the computer next to the door
type in program name
type in door password
type in side the door is on
type in password to get back to a regular computer
then lock is set

if anyone can explain how to do this and such iw ould really appriceate it i will probably have more questions for more programs but for now this is it thank you for reading

-dark
theoriginalbit #2
Posted 16 December 2012 - 04:02 PM
read through the tutorials found here: http://www.computercraft.info/forums2/index.php?/topic/144-useful-tutorials-resources/

and if you are still having issues just ask :)/>
darknuju #3
Posted 16 December 2012 - 05:51 PM
thank you but i have read all these things and they dont tell me what i need (or they dont make it simple enough for me to understand) i would really want to know how to do this i already told somone i would make a door lock program that was simple like this
theoriginalbit #4
Posted 16 December 2012 - 05:59 PM
well to get user input use read()

for setting redstone output read the API

sorry if I seem blunt but there are plenty of examples you can read for a door lock.