• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] Random Base Damage move not working [Solved]

  • 217
    Posts
    15
    Years
    • Seen Nov 29, 2021
    It's supposed to have a base damage of 10, 30, 50, 70, 90, 110, 130, or 150, but when used it doesn't do anything, at all.
    Code:
    class PokeBattle_Move_212 < PokeBattle_Move
      def pbBaseDamage(basedmg,attacker,opponent)
        return basedmg=10+(20*@battle.pbRandom(8))
        return basedmg
      end
    end
    Code:
    586,FIREBALL,Fire Ball,212,1,FIRE,Special,100,30,0,80,0,bef,"The user attacks with orbs of varying intensity."
     
    Last edited:
    Something deeper has to be going on, I swapped it out with the code for Magnitude, and it still doesn't do anything (except say "Magnitude X"). Which shouldn't happen.

    EDIT: Magnitude still does damage as it should.

    EDIT 2: And yet, Magnitude's move effect doesn't work on Fireball.
     
    Last edited:
    Back
    Top