• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
11
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?
     

    FL

    Pokémon Island Creator
    2,449
    Posts
    13
    Years
    • Seen Apr 30, 2024
    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'.
     

    Prof Oakley

    JourneyofPossibilities Creator
    75
    Posts
    11
    Years
  • They are showing up but now they are all in one row:

    Spoiler:
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,285
    Posts
    16
    Years
  • 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:

    Prof Oakley

    JourneyofPossibilities Creator
    75
    Posts
    11
    Years
  • 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