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

From what I understand...

Started by Nikolai, 01 December 2012 - 07:27 AM
Nikolai #1
Posted 01 December 2012 - 08:27 AM
If I go to a computer and make the code below a program, then reboot and type
function info()
into it it will run the program?



function info()
while true do
print ("REACTOR SPECIFICATIONS")
print ("Reactor Name: Gigga 9000")
print ("Output: Over 9000 ")
print ("GENRAL INFO")
print ("Only control rods can stop the Gigga 9000")
print ("Overheated reactors activate his")
print ("MEGA DOOMSDAY cannon")
sleep(15)
end
end
bjornir90 #2
Posted 01 December 2012 - 08:34 AM
No but you have a name of file that you used to type the code, use this name to run your program. To create the program, you have used edit nameOfProgram right ? If you didn't do that, you have to rewrite it in a file using edit :)/>
Nikolai #3
Posted 01 December 2012 - 08:50 AM
thanks for the clarification