• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Badges on Trainer Card

Prof Oakley

JourneyofPossibilities Creator
  • 75
    Posts
    12
    Years
    I've been searching and searching for how to have more than 8 badges shown on the trainer card but I can't find anything that doesn't include adding another region. I have one region in my game, but there are 40 "badges" so anything after the 8th badge doesn't show up on the trainer card since it's still the first region. How can I change the scripts to make it so all 40 badges show up on the trainer card while still having one region?
     
    Untested, in Trainer Card script change
    Code:
        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:
        for region in 0...5 # Five rows
          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
        end
    You needs to change the '310' to a lower number like '182'.
     
    They are showing up but now they are all in one row:

    Spoiler:
     
    Code:
    [COLOR=Red]y=198[/COLOR]
    [COLOR=Red]imagePositions=[][/COLOR]
    for region in 0...5 # Five rows
      [COLOR=Red]x=72[/COLOR]
      for i in 0...8
        if $Trainer.badges[i+region*8]
          imagePositions.push( ["Graphics/Pictures/badges",x,[COLOR=Red]y[/COLOR],i*32,region*32,32,32])
        end
        x+=48
      end
      [COLOR=Red]y+=32[/COLOR]
    end
    Change/add the red parts.
     
    Last edited:
    The badges aren't showing up at all now.

    EDIT: Nevermind I must've missed something the first few times I tried. It's working now. Thanks :)
     
    Last edited:
    Back
    Top