rescue
# Load plain bitmap as usual (see below)
end
# Shaymin form change script by Destined (edit of DragoChamps Giratina script)
elsif isConst?(species,PBSpecies,:SHAYMIN)
d=if $game_switches[97]==true
begin
# Load Sky Form bitmap if found
# Rename the Sky Form images to 487sky (normal), 487ssky (shiny), 487bsky (back), 487sbsky (shiny back)
return BitmapCache.load_bitmap(
sprintf("Graphics/Battlers/%03d%s%ssky.png",species,
pokemon.isShiny? ? "s" : "",
back ? "b" : "", d)
)
rescue
# Load plain bitmap as usual (see below)
end
end
return BitmapCache.load_bitmap(bitmapFileName)
end
def pbStringToAudioFile(str)
if str[/^(.*)\:\s*(\d+)\s*\:\s*(\d+)\s*$/]
file=$1
volume=$2.to_i
pitch=$3.to_i
return RPG::AudioFile.new(file,volume,pitch)
elsif str[/^(.*)\:\s*(\d+)\s*$/]
file=$1
volume=$2.to_i
return RPG::AudioFile.new(file,volume,100)
else
return RPG::AudioFile.new(str,100,100)
end
end