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

[LUA] [Question] A table

Started by remiX, 03 October 2012 - 10:32 PM
remiX #1
Posted 04 October 2012 - 12:32 AM
Whats the simplest code for a table containing only Yes and No (for both horizontal and vertical) and the code that happens of which one is selected? I honestly cant find anything :(/>/>
Cranium #2
Posted 04 October 2012 - 12:39 AM
That is a very broad description for doing something you want to do. Are you trying to make a minign turtle work, are you making a menu, are you trying to make a game? We need details, and some code. Nobody really likes giving out their time if you don't know what you're looking for.
remiX #3
Posted 04 October 2012 - 12:44 AM
That is a very broad description for doing something you want to do. Are you trying to make a minign turtle work, are you making a menu, are you trying to make a game? We need details, and some code. Nobody really likes giving out their time if you don't know what you're looking for.

Not a hectic code. All its doing is maintainance for a pump. Table is for switching it on and off. I havent started the code yet. Trying to find a code for how to create tables atm.
Cranium #4
Posted 04 October 2012 - 12:52 AM

table = {"Yes", "No"}
Done. I created a table for you. :(/>/>
But I think you are trying to create a system that uses options available in that table, to utilize something to turn the pump on/off? If so, check out this tutorial: http://www.computercraft.info/forums2/index.php?/topic/744-a-quick-guide-through-menu-making/
remiX #5
Posted 04 October 2012 - 12:58 AM

table = {"Yes", "No"}
Done. I created a table for you. :(/>/>
But I think you are trying to create a system that uses options available in that table, to utilize something to turn the pump on/off? If so, check out this tutorial: http://www.computerc...gh-menu-making/

Thanks <3