- 46
- Posts
- 14
- Years
- Age 30
- Seen Jul 2, 2018
Hey guys,
I've been racking my brain for ages and I just can't figure out where I'm going wrong.
In the PField_Battles script, I've been trying to set a specific Pokemon to have a different battle BGM, upon research I found this:
but even following it exactly to the T, writing it out exactly etc just doesn't seem to change anything.
My code is:
So overall I'm not sure if I'm missing something super obvious or it just isn't working for some reason. All the Pokemon and the Music names are properly defined where they should be, so it can't be that. If anyone is able to offer my some help or point me in the right direction it'd be greatly appreciated :D
I've been racking my brain for ages and I just can't figure out where I'm going wrong.
In the PField_Battles script, I've been trying to set a specific Pokemon to have a different battle BGM, upon research I found this:
In PokemonField script section, about at line 1000, in def pbWildBattle, when the script say "$PokemonGlobal.nextBattleBGM=nil", you can make a little variation by replacing it with (RAYQUAZA is a little example):
if(species==PBSpecies::RAYQUAZA) then
$PokemonGlobal.nextBattleBGM=("Audio/BGM/YourTheme")
else
$PokemonGlobal.nextBattleBGM=nil
end
but even following it exactly to the T, writing it out exactly etc just doesn't seem to change anything.
My code is:
Code:
pbSet(variable,1)
if(species==PBSpecies::MEWZARD) then
$PokemonGlobal.nextBattleBGM=("Battle Totem Pokemon")
else
$PokemonGlobal.nextBattleBGM = nil
end
$PokemonGlobal.nextBattleME = nil
$PokemonGlobal.nextBattleBack = nil
return true
end
So overall I'm not sure if I'm missing something super obvious or it just isn't working for some reason. All the Pokemon and the Music names are properly defined where they should be, so it can't be that. If anyone is able to offer my some help or point me in the right direction it'd be greatly appreciated :D