- 2
- Posts
- 3
- Years
- Seen Jul 3, 2020
Hi everyone!
I was looking for a way to change the battle BGM in battle, as in Pokémon B/W/2 gym battles. That said, I ran into this thread (I cannot post links because this is my first post, but the title is:"How to change battle BGM in battle...") and I found the script I was searching for. I tried it and it eventually worked, but there's a problem: the opponent's Pokémon's battler sprite turns to the opposite side as soon as the BGM changes! Moreover, it looks as if the Pokéball were tossed from my side towards the opponent's side. Can someone help? Here's the section in question (around line 1296 of the PokeBattle_Battle script):
def pbSendOut(index,pokemon)
pbSetSeen(pokemon)
@peer.pbOnEnteringBattle(self,pokemon)
if pbIsOpposing?(index)
@scene.pbTrainerSendOut(index,pokemon)
if $game_switches[62] and pbPokemonCount(@party2)==1
pbBGMPlay("Victory is Right Before Your Eyes!",100,100)
end
@scene.pbSendOut(index,pokemon)
end
@scene.pbResetMoveIndex(index)
end
Thanks to who'll answer.
I was looking for a way to change the battle BGM in battle, as in Pokémon B/W/2 gym battles. That said, I ran into this thread (I cannot post links because this is my first post, but the title is:"How to change battle BGM in battle...") and I found the script I was searching for. I tried it and it eventually worked, but there's a problem: the opponent's Pokémon's battler sprite turns to the opposite side as soon as the BGM changes! Moreover, it looks as if the Pokéball were tossed from my side towards the opponent's side. Can someone help? Here's the section in question (around line 1296 of the PokeBattle_Battle script):
Spoiler:
def pbSendOut(index,pokemon)
pbSetSeen(pokemon)
@peer.pbOnEnteringBattle(self,pokemon)
if pbIsOpposing?(index)
@scene.pbTrainerSendOut(index,pokemon)
if $game_switches[62] and pbPokemonCount(@party2)==1
pbBGMPlay("Victory is Right Before Your Eyes!",100,100)
end
@scene.pbSendOut(index,pokemon)
end
@scene.pbResetMoveIndex(index)
end
Thanks to who'll answer.