• 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!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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