• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Hyper Beam Recharge

6
Posts
11
Years
    • Seen Oct 30, 2014
    I'm trying to make it so that Hyper Beam will act in the glitchy way it does in RBY.
    So that if an opponent faints after Hyper Beam is used, no recharge is required.
    Can anybody give me some pointers on where to begin?
     

    Maruno

    Lead Dev of Pokémon Essentials
    5,286
    Posts
    16
    Years
    • Seen yesterday
    You can begin and end in class PokeBattle_Move_0C2. The attacker's effects[PBEffects::HyperBeam] is set to 2 if the attack does damage. So long as this value is greater than 0, the Pokémon with it is recharging and can't move (it's reduced by 1 at the end of each turn). You want instead to set the value if the attack does damage and the opponent survived the attack.

    Think about it.
     
    Back
    Top