Forums - Open Redstone Engineers
LUA - Printable Version

+- Forums - Open Redstone Engineers (https://forum.openredstone.org)
+-- Forum: Off-Topic (https://forum.openredstone.org/forum-4.html)
+--- Forum: Off-Topic Discussion (https://forum.openredstone.org/forum-5.html)
+---- Forum: Shenanigans (https://forum.openredstone.org/forum-31.html)
+---- Thread: LUA (/thread-403.html)



LUA - Malcolmforde - 06-19-2013

Virtual, I made this joke about Etho in LUA >Big Grin (Whenever he uses computercraft, it starts to rain) Made to make you angry.

Code:
function pagebreak()
   print("-----------------------------------")
end

rain = 0
etho = 1
if etho == 1 then
   print("Bob: Hi Etho!")
   print("Etho: Howdy!")
end
if rain == 0 then
   rain = 1
end
pagebreak()
print("It begins to rain")
pagebreak()
if rain == 1 then
   print("Bob: DAMNIT ETHO! ITS RAINING!")
   print("Etho: Sorry! It seems to always rain when I code! I will stop it now...")
   rain = 0
end
if rain == 0 then
   print("Bob: Thank you.")
end

Oh yeah, I learned LUA just for this.