1
parse('settile 30 145 2')
i want to change tiles btw 30 145 and 45 200
is there short way to do this ?
i dont want to write all codes like 31 146, 31 147, 30 146 etc...
Scripts
short way to change tiles
short way to change tiles
1

parse('settile 30 145 2')
for x = 30,45 do
	for y = 145,200 do
		parse('settile '..x..' '..y..' 2')
	end
end
ohaz has writtenfor x = 30,45 do
	for y = 145,200 do
		parse('settile '..x..' '..y..' 2')
	end
end
function setTile(x, y, tile)
parse('settile '..x..' '..y..' '..tile)
end
setTile(30, 145, 2)
Zeik,
ohaz's code fills a rectangle as requested, don't know what you mean.
VADemon: Ah, I always get confused with lua's syntax
X-Files: didn't say he wanted a rectangle... he just wrote random coordinates...
Zeik: he wrote
ohaz: Yeah, it made no sense for me when I first read it because I thought he didn't know what "btw" meant so I skipped the word (because a lot of people writes incomprehensible texts here). My mistake.
1
