- 3
- Posts
- 5
- Years
- Seen Jan 13, 2022
NOTE: I figured out a working solution for this! See it in the comments section below!
I've seen it recommended in several different places that if you want to change the battle music for any encounter of a specific species, you can put this:
Inside the encounter modifiers section. This made it so that every time you encountered this specific wild pokemon, the battle music that plays would be unique to this single pokemon.
However it seems that this no longer works in v19.1, due to the changes made to the PBS systems. I'm still not well versed on all of the changes made to the system, so I could really use some help here. How do I do this same thing, with the same outcome, but in essentials version 19.1?
I've seen it recommended in several different places that if you want to change the battle music for any encounter of a specific species, you can put this:
Code:
Events.onWildPokemonCreate += proc { |_sender, e|
pokemon = e[0]
if isConst?(pokemon.species,PBSpecies,:POKEMON)
$PokemonGlobal.nextBattleBGM="SONG.ogg"
end
}
However it seems that this no longer works in v19.1, due to the changes made to the PBS systems. I'm still not well versed on all of the changes made to the system, so I could really use some help here. How do I do this same thing, with the same outcome, but in essentials version 19.1?
Last edited: