Forums - Open Redstone Engineers

Full Version: LUA
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

Malcolmforde

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.