- 53
- Posts
- 9
- Years
- Himalayas
- Seen Nov 25, 2016
In this thread, let's try and make some of the code for the Gen 7 abilities.
I've created two very simple ones, the first one is Water Compaction. Just put this right under the code for Storm Drain/Lightning Rod in PokeBattle_Move.
The second is Fluffy. Put this under Marvel Scale in PokeBattle_Move:
And then put this under Dry Skin:
Not sure this is the right forum for this, so please move it if it isn't, mods.
I've created two very simple ones, the first one is Water Compaction. Just put this right under the code for Storm Drain/Lightning Rod in PokeBattle_Move.
if (opponent.hasWorkingAbility(:WATERCOMPACTION) && isConst?(type,PBTypes,:WATER))
if opponent.pbCanIncreaseStatStage?(PBStats::DEFENSE)
opponent.pbIncreaseStatBasic(PBStats::DEFENSE,1)
@battle.pbCommonAnimation("StatUp",opponent,nil)
@battle.pbDisplay(_INTL("{1}'s {2} raised its Defense!",
opponent.pbThis,PBAbilities.getName(opponent.ability)))
else
@battle.pbDisplay(_INTL("{1}'s {2} made {3} ineffective!",
opponent.pbThis,PBAbilities.getName(opponent.ability),self.name))
end
return 0
end
The second is Fluffy. Put this under Marvel Scale in PokeBattle_Move:
if isConst?(opponent.ability,PBAbilities,:FLUFFY) && category=0
basedmg=(basedmg/2).floor
end
And then put this under Dry Skin:
if opponent.hasWorkingAbility(:FLUFFY) && isConst?(type,PBTypes,:FIRE)
damagemult=(damagemult*2).round
end
Not sure this is the right forum for this, so please move it if it isn't, mods.
Last edited: