Guest User

looptest

a guest
Jan 5th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1. print("enter blocks")  -- how long the loop goes
  2. blocks = read()
  3. print("enter torches") -- how often you want to place torches
  4. torches = read()
  5. dummy = torches
  6.  
  7. for i=1, blocks do
  8.    print (i," ",torches)
  9.    if i == torches then
  10.      print("can someone tell me why this doesn't print?")
  11.      torches = dummy + torches
  12.    end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment