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

Rhyser9's Misc. Programs

Started by rhyser9, 30 December 2012 - 07:51 AM
rhyser9 #1
Posted 30 December 2012 - 08:51 AM
Moved to Turtle Programs Subforum:

HotGirlEAN #2
Posted 30 December 2012 - 09:06 AM
Can you also include a screenshots spoiler for each of the programs? If so, awesome :)/>
I like previewing what I'm going to download before I download it. I'm sure others do too. XD
rhyser9 #3
Posted 30 December 2012 - 09:20 AM
Can you also include a screenshots spoiler for each of the programs? If so, awesome :)/>
I like previewing what I'm going to download before I download it. I'm sure others do too. XD
I was just doing it :P/> Sorry, probably should of had it ready WHEN I posted XD
MudkipTheEpic #4
Posted 30 December 2012 - 11:06 AM
Use the tArgs table(I think it's spelt like that). To use it say:

local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
end
Leo Verto #5
Posted 30 December 2012 - 11:21 AM
Use the tArgs table(I think it's spelt like that). To use it say:

local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
end
That won't work, tArgs is a table so you have to use it like this:
if tArgs[1] == "something" then
The number in the brackets is the number of the argument you want to use.
rhyser9 #6
Posted 30 December 2012 - 12:12 PM
Use the tArgs table(I think it's spelt like that). To use it say:

local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
end
That won't work, tArgs is a table so you have to use it like this:
if tArgs[1] == "something" then
The number in the brackets is the number of the argument you want to use.

I meant how do I retrieve the input? Or is that what tArgs is? A table of all the additional arguments that got inputed when the program was run? Actually, that makes sense now… Thanks!
MudkipTheEpic #7
Posted 30 December 2012 - 12:48 PM
Use the tArgs table(I think it's spelt like that). To use it say:

local tArgs = { . . . }
if tArgs == "0" then
– do stuff
else
– do other stuff
end
That won't work, tArgs is a table so you have to use it like this:
if tArgs[1] == "something" then
The number in the brackets is the number of the argument you want to use.

Lol, sorry I was too lazy to double-check. was still coding my new program. XP