• 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.

Gen 7 Ability Thread

25
Posts
8
Years
    • Seen May 30, 2018
    Hi, I added the Battle Bond ability script successfully so that my game Greninja transforms. However, when I switch to another Pokemon in my party, Greninja transforms back to base form. Is this normal? I thought it would stay transformed until the battle ended.
     
    180
    Posts
    6
    Years
    • Seen Apr 15, 2024
    Hi! I have the battle bond script, but i get this error:
    ---------------------------
    Pokemon Essentials Esp v16.2
    ---------------------------
    Script 'PokeBattle_Battler' line 1656: SyntaxError occurred.
    ---------------------------
    Aceptar
    ---------------------------
    And the line is this:
    @battle.pbDisplay(_INTL("¡{1} le ha robado un {3} a {2} usando {4}!",user.pbThis,
    is the magician ability.
     
    3
    Posts
    9
    Years
    • Seen Jun 22, 2019
    Alright, well it's been a couple years since this thread has had any ability scripts posted here, so I thought I'd add one.

    This is the script for disguise, with the original concept coming from James Davy on a different thread here, but the script didn't work in the aspect that Mimikyu didn't transform after it was hit.

    First, you need to add the ability to the PBEffects script:
    Code:
        Disguise           = 112
    Make the 112 the lowest number you can without repeating another effect #.

    Next, in PokeBattle_Move, add this script under "opponent.damagestate.substitute=false"
    Code:
          if opponent.effects[PBEffects::Disguise]
            @battle.pbDisplay(_INTL("{1}'s disguise served it as a decoy!",opponent.name))
            opponent.effects[PBEffects::Disguise]=false
            @battle.pbDisplay(_INTL("{1}'s disguise was busted!",opponent.name))
            damage=0
          end

    Now, on to PokeBattle_Battler. Here, under "@effects[PBEffects::Illusion] = nil", add:
    Code:
        @effects[PBEffects::Disguise] = false
        # Disguise causes the ability-suppressing effect to fade
        # if it was passed on through Baton Pass
        if isConst?(self.ability,PBAbilities,:DISGUISE)
          @effects[PBEffects::GastroAcid] = false
        end

    Almost done, now is the script that tells Mimikyu to transform after taking damage. Under "transformed=false", add:
    Code:
    # Mimikyu
        if isConst?(self.species,PBSpecies,:MIMIKYU)
          if self.hasWorkingAbility(:DISGUISE)
            if self.form!=1 && @effects[PBEffects::Disguise]==false
              self.form=1; transformed=true
            end
          end
        end

    A few lines down, in "def pbResetForm", add Mimikyu to the list of Pokemon.


    Finally, below "def pbAbilitiesOnSwitchIn(onactive)" and "return if fainted?", put:
    Code:
          if self.hasWorkingAbility(:DISGUISE) && onactive
            @effects[PBEffects::Disguise]=true
          end

    This is working for me, but if anybody has any problems with it, let me know!
     
    Back
    Top