Resource icon

Custom Abilities by me

Pokémon Essentials Version
v17.2 ✅
Here are the custom abilities I made. I am new with the language so I was not able to make new things. These abilities are similar to the existing ones.



Phantom Aura
Powers up each Pokémon's Ghost-type moves.
It's with the gen 6 moves like fairy aura. If you don't have gen 6 abilities then don't use this.
Steps
First in PBS abilities add this:
xxx,PHANTOMAURA,Phantom Aura,"Powers up each Pokémon's Ghost-type moves."
Change xxx with numbers
Now find in PokeBattle_Battler
Code:
# Aura Break message
And paste this above it
Code:
    # Phantom Aura message
    if self.hasWorkingAbility(:PHANTOMAURA) && onactive
      @battle.pbDisplay(_INTL("{1} is radiating a phantom aura!",pbThis))
    end
Then find in PokeBattle_Move
Code:
    if (@battle.pbCheckGlobalAbility(:DARKAURA) && isConst?(type,PBTypes,:DARK)) ||
       (@battle.pbCheckGlobalAbility(:FAIRYAURA) && isConst?(type,PBTypes,:FAIRY))||      
      if @battle.pbCheckGlobalAbility(:AURABREAK)
        damagemult=(damagemult*2/3).round
      else
        damagemult=(damagemult*4/3).round
      end
    end
and replace it with
Code:
    if (@battle.pbCheckGlobalAbility(:DARKAURA) && isConst?(type,PBTypes,:DARK)) ||
       (@battle.pbCheckGlobalAbility(:FAIRYAURA) && isConst?(type,PBTypes,:FAIRY))||
       (@battle.pbCheckGlobalAbility(:PHANTOMAURA) && isConst?(type,PBTypes,:GHOST))
      if @battle.pbCheckGlobalAbility(:AURABREAK)
        damagemult=(damagemult*2/3).round
      else
        damagemult=(damagemult*4/3).round
      end
    end

Icicile
Reduces damage from supereffective attacks.
It's like solid rock but for ice types
First add this in PBS abilities
xxx,ICICILE,Icicile,"Reduces damage from supereffective attacks."
Now find in PokeBattle_Move
Code:
   if opponent.pbPartner.hasWorkingAbility(:FRIENDGUARD)
and paste this above it.
Code:
      if (opponent.hasWorkingAbility(:ICICILE) ||
         opponent.hasWorkingAbility(:FILTER)) &&
         opponent.damagestate.typemod>8
        finaldamagemult=(finaldamagemult*0.75).round
      end
Now find in PokeBattle_AI
Code:
if (opponent.hasWorkingAbility(:SOLIDROCK)
Change the whole line with
Code:
      if (opponent.hasWorkingAbility(:SOLIDROCK) || opponent.hasWorkingAbility(:FILTER) || opponent.hasWorkingAbility(:ICICILE)) &&
And you are done

Stagger
Enables Dark-type moves to hit Fairy-type Pokémon.
Add this in PBS abilities
xxx,STAGGER,Stagger,"Enables Dark-type moves to hit Fairy-type Pokémon."
Now find in PokeBattle_Move
Code:
    # Miracle Eye
And paste above it
Code:
    # Stagger
    if attacker.hasWorkingAbility(:STAGGER) || opponent.effects[PBEffects::Foresight]
      mod1=2 if isConst?(otype1,PBTypes,:FAIRY) && PBTypes.isIneffective?(atype,otype1)
      mod2=2 if isConst?(otype2,PBTypes,:FAIRY) && PBTypes.isIneffective?(atype,otype2)
      mod3=2 if isConst?(otype3,PBTypes,:FAIRY) && PBTypes.isIneffective?(atype,otype3)
    end
Now in PokeBattle_AI. Post this above #Miracle Eye
Code:
    # Stagger
    if (attacker.hasWorkingAbility(:STAGGER) rescue false) || opponent.effects[PBEffects::Foresight]
      mod1=2 if isConst?(otype1,PBTypes,:FAIRY) && PBTypes.isIneffective?(atype,otype1)
      mod2=2 if isConst?(otype2,PBTypes,:FAIRY) && PBTypes.isIneffective?(atype,otype2)
      mod3=2 if isConst?(otype3,PBTypes,:FAIRY) && PBTypes.isIneffective?(atype,otype3)
    end
And you are done. :smile:

I am new with the language but I hope that this will help someone.
Credit Pokemonspecialist if you are using them.
Credits
Pokemonspecialist
Author
pokemonspecialist/Aryaman
First release
Last update
Rating
0.00 star(s) 0 ratings
Top