The 'for i' statement is listing all of the indexes in an array, or just a range of numbers (like poccil stated).
We'll take a good look at Window_MenuStatus from my CMS...
class Window_MenuStatus
#...
#-----------------------------------------------------------------------------
# * Refresh Method
#-----------------------------------------------------------------------------
def refresh
self.contents.clear
@item_max = $game_party.actors.size
for i in 0...@item_max
@x = 64
@y = (i * 120)
actor = $game_party.actors[i]
draw_actor_graphic(actor, @x - 40, @y + 80) unless CMS::Faces
draw_actor_face(actor, @x - 65, @y) if CMS::Faces
draw_actor_name(actor, @x + 37, @y - 5)
draw_actor_hp(actor, @x + 40, @y + 22)
draw_actor_sp(actor, @x + 40, @y + 52)
draw_actor_class(actor, @x + 240, @y - 5)
draw_actor_level(actor, @x + 158, @y - 5)
draw_actor_exp(actor, @x + 192, @y + 22)
draw_actor_next(actor, @x + 192, @y + 52)
end
end
end
See what the code is doing? It's measuring the size of how many actors are in your party, then drawing stuff based on that multiplied by the designated coordinate the 'stat' is supposed to go.
So, lets say you're using faces of 120x120 in size, you'd have them placed at a certain spot on the window, it would be at 0 for the first window, 120 for the second, 360 for the 3rd...
This basically does the math for you
draw_actor_face(actor, 0, 120 * i)
That would be the same as...
draw_actor_face(actor, 0, 0)
draw_actor_face(actor, 0, 120)
draw_actor_face(actor, 0, 240)
draw_actor_face(actor, 0, 360)