[/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif]turtle.forward()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif]turtle.up()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif]for i = 1, (tower height) do[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif] turtle.placeDown()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif] turtle.forward()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif] turtle..placeDown() turtle.forward()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif] turtle.placeDown()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif] turtle.turnRight() turtle.forward() turtle.placeDown() turtle.forward() turtle.placeDown() turtle.turnRight() turtle.forward()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif] turtle.placeDown() turtle.forward() turtle.placeDown turtle.turnRight()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif] turtle.forward() turtle.placeDown() turtle.forward() turtle.turnRight() turtle.up()[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif]end[/font][/font] [font=courier new,courier,monospace][font=arial,helvetica,sans-serif][/font]
After this there is some more stuff to make the top of the tower look cooler. But is there anyway that I could replace the (tower height) with a variable and when I execute the program, have to type a number afterwards that will equal the variable? I'm just starting out on programming with Lua and I'm really bad with programming in general.












