Is it possible to know by lua what are the current tile IDs that i'm not using in the map? because i want to replace them with other ones (With Paint) and don't want to bug the map tiles
Sorry for the bother!
--[[ maptiles = {} for x = 0, map("xsize") do 	maptiles[x] = {} 	for y = 0, map("ysize") do 		maptiles[x][y] = tile(x,y,"originalframe") 	end end ]] tileset_used = {} for i = 0, map("tilecount") do 	tileset_used[i] = false end for i = 0, map("tilecount") do 	for x = 0, map("xsize") do 		for y = 0, map("ysize") do 			-- if maptiles[x][y] == i and (not tileset_used[i]) then 			if i == tile(x,y,"originalframe") and (not tileset_used[i]) then 				tileset_used[i] = true 			end 		end 	end end function output_unused_tiles() -- Call this to print output 	local output = "" 	print("Tile frames unused:") 	for i = 0, map("tilecount") do 		if not tileset_used[i] then 			if output == "" then 				output = output.. "" ..i 			else 				output = output.. " " ..i 			end 		end 	end 	print(output) end