So I searched in some threads, and some people said that what make some moves animations appears in the Top-left screen was this line:
Then I chenge to:
But the animations is still appearing in the top left at the screen.
Also, the weather animations line is like this:
I think the problem is the the line:
But I don't know what to put in there, I tried adding (attacker,opponent) but it doesn't seens to work.
I might be wrong assuming that those lines is where the problem is, but any help is welcome.
Code:
pbShowAnimation(@id,attacker,nil,hitnum,alltargets,showanimation)
Then I chenge to:
Code:
pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
But the animations is still appearing in the top left at the screen.
Also, the weather animations line is like this:
Code:
class PokeBattle_Move_101 < PokeBattle_Move
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
if @battle.weather==PBWeather::SANDSTORM
@battle.pbDisplay(_INTL("But it failed!"))
return -1
end
pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
@battle.weather=PBWeather::SANDSTORM
@battle.weatherduration=5
@battle.weatherduration=8 if isConst?(attacker.item,PBItems,:SMOOTHROCK)
@battle.pbCommonAnimation("Sandstorm",nil,nil)
@battle.pbDisplay(_INTL("A sandstorm brewed!"))
return 0
end
end
I think the problem is the the line:
Code:
@battle.pbCommonAnimation("Sandstorm",nil,nil)
But I don't know what to put in there, I tried adding (attacker,opponent) but it doesn't seens to work.
I might be wrong assuming that those lines is where the problem is, but any help is welcome.