################################################################################
# Raises the Attack and Special Attack of an ally. (Gear Up)
################################################################################
class PokeBattle_Move_CF12 < PokeBattle_Move
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
if [email protected] || !opponent ||
!opponent.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,false,self) ||
!opponent.pbCanIncreaseStatStage?(PBStats::SPATK,attacker,false,self)
@battle.pbDisplay(_INTL("But it failed!"))
return -1
end
pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
opponent.pbIncreaseStat(PBStats::ATTACK,1,attacker,false,self)
opponent.pbIncreaseStat(PBStats::SPATK,1,attacker,false,self)
return 0
end
end
################################################################################
# Increases the user and its partner's Attack by 1 stage. (Howl)
################################################################################
class PokeBattle_Move_1A9 < PokeBattle_Move
def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true)
return super(attacker,opponent,hitnum,alltargets,showanimation) if pbIsDamaging?
return -1 if !attacker.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,true,self) &&
!attacker.pbPartner.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,true,self)
pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation)
attacker.pbIncreaseStat(PBStats::ATTACK,1,attacker,false,self)
attacker.pbPartner.pbIncreaseStat(PBStats::ATTACK,1,attacker,false,self)
return 0
end
def pbAdditionalEffect(attacker,opponent)
if attacker.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,false,self)
attacker.pbIncreaseStat(PBStats::ATTACK,1,attacker,false,self)
end
if attacker.pbPartner.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,false,self)
attacker.pbIncreaseStat(PBStats::ATTACK,1,attacker,false,self)
end
end
end
Here's a script for the move Gear Up, which has a similar effect:
Code:################################################################################ # Raises the Attack and Special Attack of an ally. (Gear Up) ################################################################################ class PokeBattle_Move_CF12 < PokeBattle_Move def pbEffect(attacker,opponent,hitnum=0,alltargets=nil,showanimation=true) if [email protected] || !opponent || !opponent.pbCanIncreaseStatStage?(PBStats::ATTACK,attacker,false,self) || !opponent.pbCanIncreaseStatStage?(PBStats::SPATK,attacker,false,self) @battle.pbDisplay(_INTL("But it failed!")) return -1 end pbShowAnimation(@id,attacker,opponent,hitnum,alltargets,showanimation) opponent.pbIncreaseStat(PBStats::ATTACK,1,attacker,false,self) opponent.pbIncreaseStat(PBStats::SPATK,1,attacker,false,self) return 0 end end
If you were to edit it a bit, I bet you could make it work for Howl. You would need to change the move class to match Howl's, and maybe take out the [email protected] to make it work in Singles. Let me know if you have any questions or it doesn't work!