- 6
- Posts
- 1
- Years
- Seen Dec 23, 2024
Hello everyone!
I never usually ask for help on this thread, but this problem has just been a wall form me. I was trying to make a flinching move for Ariados so that it can be a bit more powerful Pokémon, but I wanted to change the text it displays once the flinch occurs, so that instead of "{1} flinched and couldn't move!" it displays something different. I thought I could do it if I check the type of the move, which is BUG, with
"if move.type == :BUG", but that doesn't seem to be working. I feel like there is a really simple solution to this problem, but I just can't seem to find it.
The flinching message is located in Battler_UseMove_SuccessChecks under def pbTryUseMove(choice,move,specialUsage,skipAccuracyCheck), in case that could also help out. I added the full code too in case it could help.
Help would be appreciated and thank you in advance!
I never usually ask for help on this thread, but this problem has just been a wall form me. I was trying to make a flinching move for Ariados so that it can be a bit more powerful Pokémon, but I wanted to change the text it displays once the flinch occurs, so that instead of "{1} flinched and couldn't move!" it displays something different. I thought I could do it if I check the type of the move, which is BUG, with
"if move.type == :BUG", but that doesn't seem to be working. I feel like there is a really simple solution to this problem, but I just can't seem to find it.
The flinching message is located in Battler_UseMove_SuccessChecks under def pbTryUseMove(choice,move,specialUsage,skipAccuracyCheck), in case that could also help out. I added the full code too in case it could help.
Help would be appreciated and thank you in advance!
Code:
if @effects[PBEffects::Flinch]
if move.type == :BUG
@battle.pbDisplay(_INTL("{1} bla bla bla bla!",pbThis))
else
@battle.pbDisplay(_INTL("{1} flinched and couldn't move!",pbThis))
end
if abilityActive?
BattleHandlers.triggerAbilityOnFlinch(self.ability,self,@battle)
end
@lastMoveFailed = true
return false
end