Ah, I see.
No, as you've found, "
.type1" only works on specific Pokémon. However, you could take the code found inside the def
type1 in
PokeBattle_Pokemon and "adapt" it rather easily to the following:
Code:
dexdata=pbOpenDexData
pbDexDataOffset(dexdata,[COLOR=Red]species[/COLOR],8)
[COLOR=Red]type1[/COLOR]=dexdata.fgetb
dexdata.close
Pretty much nothing was changed here, actually. "
species" is either the National Dex number of the species you want, or "
PBSpecies::BULBASAUR", depending on what you find easier to use (I would suggest the latter). The thing you'll use afterwards is "
type1" (remember that it's the number, not the name of the type).
For the secondary type, use "
9" instead of "
8".
Just pop those four lines of code in your event or wherever it is you want to use them. Something similar can be done with all the other species-related info (e.g. abilities, moveset, body colour, etc.).