Board Thread:Questions and Answers/@comment-41.164.37.131-20140614150549

I am battling to understand lua properly and would like to ask anyone for your help in writing a relatively simple program. I'm building an elevator using frames and frame motors, and a computer to control its movements. There is external wiring for the following:

1: groups of ten have seperate colours

2: units within the tens have seperate colours

3: the up or down functions have different colours.

All I need it to do is ask the user which floor they would like to go to, compare it to the current floor, and output the 3 appropriate colours. The lift will be stopped automatically by a piston in the appropriate place, and a pressureplate by the door will handle resetting the computer's outputs to all false. I then also need the pressureplate's signal to transfer the desired floor variable to become the current floor variable.

That's it, that's all I need, or any advice on how to do it myself would be perfect... 