• 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!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Is there a simple way to display Egg Groups in the Summary?

I just want the names of the Egg Groups the particular Pokemon belongs to to appear on one of the Summary Pages. It seems like it should be a fairy simple thing to do, but I can't seem to figure it out. By working off other examples from within the script, this is what I came up with so far:

Code:
    dexdata=pbOpenDexData
    pbDexDataOffset(dexdata,@pokemon,31)
    compat10=dexdata.fgetb
    compat11=dexdata.fgetb
    eggGroupArray=[
        nil,_INTL("Monster"),_INTL("Water1"),_INTL("Bug"),_INTL("Flying"),
        _INTL("Ground"),_INTL("Fairy"),_INTL("Plant"),_INTL("Humanshape"),
        _INTL("Water3"),_INTL("Mineral"),_INTL("Indeterminate"),
        _INTL("Water2"),_INTL("Ditto"),_INTL("Dragon"),_INTL("No Eggs")
    ]
    eggGroups = compat10==compat11 ? eggGroupArray[compat10] : 
        _INTL("{1}, {2}",eggGroupArray[compat10],eggGroupArray[compat11])
    textpos=[
       [_INTL("Group: {1}",eggGroups),200,354,2,base,shadow],
    ]
   dexdata.close

But I keep getting errors, and I'm not really sure what I'm supposed to be doing with it. I assume I'm supposed to have a def somewhere before this, but I don't know where to begin with that.
 
Back
Top