@item_max = $game_party.actors.size
@item_max = [$game_party.actors.size,3].min
for i in 0...$game_party.actors.size x = 64
for i in 0...$game_party.actors.size return if i >= 3 x = 64