- 1,537
- Posts
- 11
- Years
- Seen today
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:
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.
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.