y=198 imagePositions=[] for region in 0...5 # Five rows x=72 for i in 0...8 if $Trainer.badges[i+region*8] imagePositions.push( ["Graphics/Pictures/badges",x,y,i*32,region*32,32,32]) end x+=48 end y+=32 end