• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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.

[Scripting Question] Move PPs

  • 20
    Posts
    6
    Years
    • Seen May 1, 2020
    Does anyone know how to show the PPs of all the moves at the same time (all of the PPs appear on the screen) instead of only showing the PPs of the selected move.
     
    can you be a little more specific? It's hard to tell what you want from your question
     
    ok, ill try my best to explain it.
    By default when you are choosing a move to attack it shows the PPs of the move you are selecting.
    I want the PPs of the 4 moves to appear on the screen, not only the PPs from the move you're selecting.
    Hope that was clearer.
     
    Just my two cents here: why you need the pp be grouped like that? Unless is something like every move using the same amount of pp: tackle and growl together having 75 shared PP, there's no reason to group them together like this.

    I don't see a reason to do it if it is just to make the player see the total PP he have left. The other 3 moves the player use are either 1 or 2 "clicks" from the first, it's not a huge amount of the time that the player wastes. I don't see myself having to check my PP that often when I play through a regular game either.
     
    [PokeCommunity.com] Move PPs

    I ment this, you can see the PP of every attack without selecting them one by one.
     
    Oh you mean this. Your best bet is to see how EBS works then (mind you, is not supported by the developer anymore).
     
    In 'PokeBattle_Scene', inside 'class FightMenuButtons < BitmapSprite', search to 'def refresh(index,moves,megaButton,zButton,ultraButton)'.

    Then, where appears:
    Code:
          if moves[i].totalpp>0
            ppfraction=(4.0*moves[i].pp/moves[i].totalpp).ceil
            textpos.push([_INTL("PP: {1}/{2}",moves[i].pp,moves[i].totalpp),
               300,60+UPPERGAP,2,ppcolors[(4-ppfraction)*2],ppcolors[(4-ppfraction)*2+1]])
          end
    you will put this:
    Code:
          x2=[0,120,240,320][i] # change the positions
          y2=[13,48,48,13][i] # change the positions
    above this:
    Code:
          y+=UPPERGAP
          self.bitmap.blt(x,y,@buttonbitmap.bitmap,Rect.new(192,moves[i].type*46,192,46))

    Finally, you will replace that code:
    Code:
          if moves[i].totalpp>0
            ppfraction=(4.0*moves[i].pp/moves[i].totalpp).ceil
            textpos.push([_INTL("PP: {1}/{2}",moves[i].pp,moves[i].totalpp),
               300,60+UPPERGAP,2,ppcolors[(4-ppfraction)*2],ppcolors[(4-ppfraction)*2+1]])
          end

    To:
    Code:
          if moves[i].totalpp>0
            ppfraction=(4.0*moves[i].pp/moves[i].totalpp).ceil
            textpos.push([_INTL("PP: {1}/{2}",moves[i].pp,moves[i].totalpp),
               [COLOR="Red"]x2,y2[/COLOR],2,ppcolors[(4-ppfraction)*2],ppcolors[(4-ppfraction)*2+1]])
          end

    Now, you must to edit its positions.
    x= left side and right side
    y = upside and downside

    x>0 goes to the right side; x<0 goes to the left
    y>0 goes to the downside; y<0 goes to the upside
     
    Last edited:
    thx a lot! it worked, is there a way to make it so the PPs of every move are always visible? and not only when you select them.
     
    Back
    Top