• 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.

[Scripting Question] [SOLVED] How to show Pokemon's current form on summary screen?

101
Posts
4
Years
  • As the title says. I have a page set up to show EVs and IVs (credit: https://reliccastle.com/resources/319/), and I want to replace where it has the ability to instead display the pokemon's current form name. Is that possible? I don't know what script call to use to display form data of the current pokemon. Here's my relevant coding:
    Code:
    textpos = [
           [_INTL("HP"),248,88,0,base,shadow],
           [sprintf("%d/%d",@pokemon.ev[0],@pokemon.iv[0]),456,88,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Attack"),248,120,0,base,statshadows[0]],
           [sprintf("%d/%d",@pokemon.ev[1],@pokemon.iv[1]),456,120,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Defense"),248,152,0,base,statshadows[1]],
           [sprintf("%d/%d",@pokemon.ev[2],@pokemon.iv[2]),456,152,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Sp. Atk"),248,184,0,base,statshadows[3]],
           [sprintf("%d/%d",@pokemon.ev[3],@pokemon.iv[3]),456,184,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Sp. Def"),248,216,0,base,statshadows[4]],
           [sprintf("%d/%d",@pokemon.ev[4],@pokemon.iv[4]),456,216,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Speed"),248,248,0,base,statshadows[2]],
           [sprintf("%d/%d",@pokemon.ev[5],@pokemon.iv[5]),456,248,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Form"),224,284,0,base,shadow],
        ]
        pbDrawTextPositions(overlay,textpos)
        [COLOR="Red"]formname = pbLoadFormsData(@species)[/COLOR]
        drawTextEx(overlay,224,316,282,2,[COLOR="Red"]formname[/COLOR],Color.new(64,64,64),Color.new(176,176,176))
      end

    In red are the spots I know I am absolutely doing wrong. I'm not super great with RGSS yet, woops. I appreciate all the help, thank you!
     
    Last edited:
    101
    Posts
    4
    Years
  • Yeah, I've tried copying from the Pokedex scripts but sometimes I get errors, other times it just doesn't display anything. The best I've got is what I have in my first post. Again, not super familiar with what I should be grabbing :(
     
    101
    Posts
    4
    Years
  • You'll all be glad to know that after a year and a half, I have figured out how to display forms! This pulls data from the Pokemon PBS file's own FormName=NAME HERE, so it's super simple to customize however you want :) Just add FormName to all your Pokemon in the PBS and write whatever you want in there! For example you could do ---, or Unovan, or even silly things like 'smol birb'

    Code:
    textpos = [
           [_INTL("HP"),248,88,0,base,shadow],
           [sprintf("%d/%d",@pokemon.ev[0],@pokemon.iv[0]),456,88,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Attack"),248,120,0,base,statshadows[0]],
           [sprintf("%d/%d",@pokemon.ev[1],@pokemon.iv[1]),456,120,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Defense"),248,152,0,base,statshadows[1]],
           [sprintf("%d/%d",@pokemon.ev[2],@pokemon.iv[2]),456,152,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Sp. Atk"),248,184,0,base,statshadows[3]],
           [sprintf("%d/%d",@pokemon.ev[3],@pokemon.iv[3]),456,184,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Sp. Def"),248,216,0,base,statshadows[4]],
           [sprintf("%d/%d",@pokemon.ev[4],@pokemon.iv[4]),456,216,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Speed"),248,248,0,base,statshadows[2]],
           [sprintf("%d/%d",@pokemon.ev[5],@pokemon.iv[5]),456,248,1,Color.new(64,64,64),Color.new(176,176,176)],
           [_INTL("Form"),224,284,0,base,shadow],
        ]
        
        # Draw all text
        pbDrawTextPositions(overlay,textpos)
        fSpecies = pbGetFSpeciesFromForm(@pokemon.species,@pokemon.form)
        formname = pbGetMessage(MessageTypes::FormNames,fSpecies)
        drawTextEx(overlay,224,316,282,2,formname,Color.new(64,64,64),Color.new(176,176,176))
    end
     
    Back
    Top