- 224
- Posts
- 9
- Years
- Seen Feb 20, 2025
I saw on this page that some animations were foreseen when capturing a Pokemon. Out of curiosity, I made a custom animation that I named "Common:Ballburst0", and whenever I try to catch a Pokemon, I get this error:
The piece of code concerned is the following:
It seems that this part was specifically designed to include a Common burst animation later on, but my game crashes when an animation named "Common:Ballburst0" exists. Am I missing something? This is in v15.1.
Spoiler:
Message: undefined method `battle' for #<PokeBattle_Scene:0x7c04d80>
EliteBattle_Scene:746:in `pokeballThrow'
PokeBattle_Scene:3093:in `pbThrow'
PokeBattle_Battle:175:in `pbThrowPokeBall'
PItem_ItemEffects:3018
PItem_ItemEffects:3017:in `call'
Event:150:in `trigger'
PItem_Items:231:in `triggerUseInBattle'
PokeBattle_Battle:1386:in `pbRegisterItem'
PokeBattle_Battle:2431:in `pbCommandPhase_old'
PokeBattle_Battle:2388:in `loop'
EliteBattle_Scene:746:in `pokeballThrow'
PokeBattle_Scene:3093:in `pbThrow'
PokeBattle_Battle:175:in `pbThrowPokeBall'
PItem_ItemEffects:3018
PItem_ItemEffects:3017:in `call'
Event:150:in `trigger'
PItem_Items:231:in `triggerUseInBattle'
PokeBattle_Battle:1386:in `pbRegisterItem'
PokeBattle_Battle:2431:in `pbCommandPhase_old'
PokeBattle_Battle:2388:in `loop'
The piece of code concerned is the following:
Code:
# Burst animation here
if burst >=0 && scene.battle.battlescene
scene.pbCommonAnimation("BallBurst#{burst}",battler,nil)
end
It seems that this part was specifically designed to include a Common burst animation later on, but my game crashes when an animation named "Common:Ballburst0" exists. Am I missing something? This is in v15.1.
Last edited: