Tms_tzzn
Fire Type Pokemon Appreciator.
- 20
- Posts
- 3
- Years
- He/Him
- Lacunosa Town, Unova
- Seen Sep 19, 2023
[FIXED]
Hello, it's me, again.
This time, I was trying to implement the mechanic of 5th gen, that plays a specific theme that is called "Last Pokemon Music", or something like that.
The thing here is, that I was able to put it on a single trainer (a gym leader), but I tried to put it to a normal trainer, but it does not take effect. ¿Could you guys help me, please?
This is the script that I put into PokeBattle_Battle:
def pbSendOut(index,pokemon)
pbSetSeen(pokemon)
@peer.pbOnEnteringBattle(self,pokemon)
if pbIsOpposing?(index)
@scene.pbTrainerSendOut(index,pokemon)
else
@scene.pbSendOut(index,pokemon)
end
@scene.pbResetMoveIndex(index)
if $game_switches[99] and pbPokemonCount(@party2)==1
@scene.pbShowOpponent(0)
pbBGMPlay("GymLastPKMN",100,100)
pbDisplayPaused(_INTL("I'm not done yet, I'm still able to fight!"))
@scene.pbHideOpponent
end
end
As I said before, this script works perfect for my one and only Gym Leader, but then.
def pbSendOut(index,pokemon)
pbSetSeen(pokemon)
@peer.pbOnEnteringBattle(self,pokemon)
if pbIsOpposing?(index)
@scene.pbTrainerSendOut(index,pokemon)
else
@scene.pbSendOut(index,pokemon)
end
@scene.pbResetMoveIndex(index)
if $game_switches[99] and pbPokemonCount(@party2)==1
@scene.pbShowOpponent(0)
pbBGMPlay("GymLastPKMN",100,100)
pbDisplayPaused(_INTL("I'm not done yet, I'm still able to fight!"))
@scene.pbHideOpponent
end
if $game_switches[98] and pbPokemonCount(@party2)==1
@scene.pbShowOpponent(0)
pbBGMPlay("GymLastPKMN",100,100)
pbDisplayPaused(_INTL("My fishing rod's gonna break..."))
@scene.pbHideOpponent
end
end
This one doesn't work, nothing shows up when the trainer has its last pokemon.
If I try to put an Elsif instead of if in the line " if $game_switches[98] and pbPokemonCount(@party2)==1 " the game doesn't even start.
So, ¿how do I fix this?
Thanks in advance!
Hello, it's me, again.
This time, I was trying to implement the mechanic of 5th gen, that plays a specific theme that is called "Last Pokemon Music", or something like that.
The thing here is, that I was able to put it on a single trainer (a gym leader), but I tried to put it to a normal trainer, but it does not take effect. ¿Could you guys help me, please?
This is the script that I put into PokeBattle_Battle:
def pbSendOut(index,pokemon)
pbSetSeen(pokemon)
@peer.pbOnEnteringBattle(self,pokemon)
if pbIsOpposing?(index)
@scene.pbTrainerSendOut(index,pokemon)
else
@scene.pbSendOut(index,pokemon)
end
@scene.pbResetMoveIndex(index)
if $game_switches[99] and pbPokemonCount(@party2)==1
@scene.pbShowOpponent(0)
pbBGMPlay("GymLastPKMN",100,100)
pbDisplayPaused(_INTL("I'm not done yet, I'm still able to fight!"))
@scene.pbHideOpponent
end
end
As I said before, this script works perfect for my one and only Gym Leader, but then.
def pbSendOut(index,pokemon)
pbSetSeen(pokemon)
@peer.pbOnEnteringBattle(self,pokemon)
if pbIsOpposing?(index)
@scene.pbTrainerSendOut(index,pokemon)
else
@scene.pbSendOut(index,pokemon)
end
@scene.pbResetMoveIndex(index)
if $game_switches[99] and pbPokemonCount(@party2)==1
@scene.pbShowOpponent(0)
pbBGMPlay("GymLastPKMN",100,100)
pbDisplayPaused(_INTL("I'm not done yet, I'm still able to fight!"))
@scene.pbHideOpponent
end
if $game_switches[98] and pbPokemonCount(@party2)==1
@scene.pbShowOpponent(0)
pbBGMPlay("GymLastPKMN",100,100)
pbDisplayPaused(_INTL("My fishing rod's gonna break..."))
@scene.pbHideOpponent
end
end
This one doesn't work, nothing shows up when the trainer has its last pokemon.
If I try to put an Elsif instead of if in the line " if $game_switches[98] and pbPokemonCount(@party2)==1 " the game doesn't even start.
So, ¿how do I fix this?
Thanks in advance!
Last edited: