bitmapFileName=sprintf("Graphics/Battlers/%03d%s%s.png",species,
pokemon.isShiny? ? "s" : "",
back ? "b" : "")
if isConst?(species,PBSpecies,:SPINDA) && !back
bitmap=Bitmap.new(bitmapFileName)
pbSpindaSpots(pokemon,bitmap)
return bitmap
elsif isConst?(species,PBSpecies,:UNOWN)
d=pokemon.personalID&3
d|=((pokemon.personalID>>8)&3)<<2
d|=((pokemon.personalID>>16)&3)<<4
d|=((pokemon.personalID>>24)&3)<<6
d%=28 # index of letter : ABCDEFGHIJKLMNOPQRSTUVWXYZ!?
begin
# Load special bitmap if found
# Example: 201b_02 for the letter C
return BitmapCache.load_bitmap(
sprintf("Graphics/Battlers/%03d%s%s_%02d.png",species,
pokemon.isShiny? ? "s" : "",
back ? "b" : "", d)
)
# Giratina form changing script by DragoChamp
elsif isConst?(species,PBSpecies,:GIRATINA)
d=if $game_switches[96]==true
begin
# Load Origin Form bitmap if found
# Rename the Origin Form images to 487origin (normal), 487sorigin (shiny), 487borigin (back), 487sborigin (shiny back)
return BitmapCache.load_bitmap(
sprintf("Graphics/Battlers/%03d%s%sorigin.png",species,
pokemon.isShiny? ? "s" : "",
back ? "b" : "", d)
)
rescue
# Load plain bitmap as usual (see below)
end
end
return BitmapCache.load_bitmap(bitmapFileName)
end