- 58
- Posts
- 7
- Years
- Seen Jan 30, 2021
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.
You can use show printable version from Thread tools to copy the script to avoid errors.
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
And paste this [S-HIGHLIGHT] above[/S-HIGHLIGHT] it
Then find in PokeBattle_Move
and replace it with
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
and paste this [S-HIGHLIGHT]above[/S-HIGHLIGHT] it.
Now find in [S-HIGHLIGHT]PokeBattle_AI[/S-HIGHLIGHT]
Change the whole line with
And you are done
Stagger
Enables Dragon-type moves to hit Fairy-type Pokémon.
Add this in PBS abilities
xxx,STAGGER,Stagger,"Enables Dragon-type moves to hit Fairy-type Pokémon."
Now find in PokeBattle_Move
And paste [S-HIGHLIGHT]above[/S-HIGHLIGHT] it
Now in PokeBattle_AI. Post this above #Miracle Eye
And you are done.
I am new with the language but I hope that this will help someone. Also if anyone who has good knowledge in ruby want to add something then feel free to do so but please post your script here.
Credit Pokemonspecialist if you are using them.
You can use show printable version from Thread tools to copy the script to avoid errors.
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
Spoiler:
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
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
Spoiler:
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 [S-HIGHLIGHT]above[/S-HIGHLIGHT] it.
Code:
if (opponent.hasWorkingAbility(:ICICILE) ||
opponent.hasWorkingAbility(:FILTER)) &&
opponent.damagestate.typemod>8
finaldamagemult=(finaldamagemult*0.75).round
end
Now find in [S-HIGHLIGHT]PokeBattle_AI[/S-HIGHLIGHT]
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 Dragon-type moves to hit Fairy-type Pokémon.
Spoiler:
Add this in PBS abilities
xxx,STAGGER,Stagger,"Enables Dragon-type moves to hit Fairy-type Pokémon."
Now find in PokeBattle_Move
Code:
# Miracle Eye
And paste [S-HIGHLIGHT]above[/S-HIGHLIGHT] 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.
I am new with the language but I hope that this will help someone. Also if anyone who has good knowledge in ruby want to add something then feel free to do so but please post your script here.
Credit Pokemonspecialist if you are using them.
Last edited: