• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Curious on if it's possible

HeroesFightingFear

"The Champion of Alon"
  • 99
    Posts
    5
    Years
    I wanna know if it's possible to make an ability that allows moves that take one turn to charge, like Solar Beam and Skull Bash, to be used instantly without the use of a Power Herb, like an ability I've seen in one ROM Hack.


    Ability Name
    Instantaneous - Can use charging moves in one turn.

    Notable coding attempt
    Code:
    [color=green]if attacker.hasWorkingAbility(:INSTANTANEOUS) && @effects[PBEffects::TwoTurnAttack]==0
      @immediate=true
      @battle.pbDisplay(_INTL("In an instant, {1} attacked!",attacker.pbThis))
    end
    [/color]
     
    Last edited:
    Update, the code works, just modify it to be similar to codes like Sheer Force and thus include the pbTwoTurnAttack(attacker) code.
    Edit: Nvm.
     
    Last edited:
    Screenshot of the correct function (added on to the Power Herb effects with two-turn move effects)
    [PokeCommunity.com] Curious on if it's possible
     
    Back
    Top