Okay, so this is the code from the post that does the thing, but you'll need to edit a few things.
Line 67, PScreen_TrainerCard. Change
Code:
x=72
region=pbGetCurrentRegion(0) # Get the current region
imagePositions=[]
for i in 0...8
if $Trainer.badges[i+region*8]
imagePositions.push(["Graphics/Pictures/badges",x,310,i*32,region*32,32,32])
end
x+=48
end
to
Code:
x=72 # change to x coordinate of left most badge slot (in pixels)
y=250 # change to y coordinate of top most badge slot (in pixels)
imagePositions=[]
for i in 0...3 #change 3 to total number of rows
for j in 0...9 #badges in a row
if $Trainer.badges[j+i*8]
imagePositions.push(["Graphics/Pictures/badges",x,y,j*32,i*32,32,32])
end
x+=48 # Change to the distance between the top left corners of two badge slots beside each other (in pixels)
end
x=72 #make this equal to the first x=72 if you change that.
y+=40 # Change to the distance between the top left corners of two badge slots on top of each other (in pixels)
end
After you do these changes, you'll need to open your badges image (Graphics/Pictures/badges.png) and make it have 9 badges on each row.
That's it. If you're still stuck, attach the image you use for the trainer cards and I can set up this little segment, explaining as I go along.
EDIT: Oh, if you don't want multiple rows, and just have the specific badges change for each region, use this snippet instead.
Code:
x=72
region=pbGetCurrentRegion(0) # Get the current region
imagePositions=[]
for i in 0...8
if $Trainer.badges[i+region*8]
imagePositions.push(["Graphics/Pictures/badges",x,310,i*32,region*32,32,32])
end
x+=48
end
to
Code:
x=72 # change to x coordinate of left most badge slot (in pixels)
y=250 # change to y coordinate of top most badge slot (in pixels)
imagePositions=[]
i=pbGetCurrentRegion(0) # Get the current region
for j in 0...9 #badges in a row
if $Trainer.badges[j+i*8]
imagePositions.push(["Graphics/Pictures/badges",x,y,j*32,i*32,32,32])
end
x+=48 # Change to the distance between the top left corners of two badge slots beside each other (in pixels)
end