PBExperience
113def PBExperience.pbGetMaxExperience(growth)
if growth>=6 || growth<0
return ArgumentError.new("The growth rate is invalid.")
end
return pbGetExpInternal(MAXLEVEL,growth)
end
def PBExperience.pbGetStartExperience(level,growth)
if growth>=6 || growth<0
return ArgumentError.new("The growth rate is invalid.")
end
if level<0
return ArgumentError.new("The level is invalid.")
end
level=MAXLEVEL if level>MAXLEVEL
return pbGetExpInternal(level,growth)
end
def PBExperience.pbAddExperience(currexp,expgain,growth)
if growth>=6 || growth<0
return ArgumentError.new("The growth rate is invalid.")
end
exp=currexp+expgain
maxexp=pbGetExpInternal(MAXLEVEL,growth)
exp=maxexp if exp>maxexp
return exp
end
def PBExperience.pbGetLevelFromExperience(exp,growth)
if growth>=6 || growth<0
return ArgumentError.new("The growth rate is invalid.")
end
EventScene
693 addLabel(52*2,24,Graphics.width*3/4,_INTL("Moves the main character. Also used to choose various data headings.")),
addLabel(52*2,(24+4

*2,Graphics.width*3/4,_INTL("Used to confirm a choice, check things, and talk to people.")),
addLabel(52*2,(24+48+32)*2,Graphics.width*3/4,_INTL("Used to exit, cancel a choice or mode, and open the menu.")),
addLabel(52*2,24,360,_INTL("Use this key to use a registered item.")),
addLabel(52*2,(24+64)*2,Graphics.width*3/4,_INTL("As you advance in the game, you can use this key to run while moving."))
PokeBattle_Battler
387 raise _INTL("HP less than 0") if self.hp<0
raise _INTL("HP greater than total HP") if self.hp>@totalhp
478 PBDebug.log("!!!***Can't faint with HP greater than 0")
[correo eliminado](_INTL("Items can't be used now."))
[correo eliminado](_INTL("{1} transformed!",pbThis))
[correo eliminado](_INTL("{1}'s Limber cured its paralysis problem!",pbThis))
562 @battle.pbDisplay(_INTL("{1}'s Oblivious cured its love problem!",pbThis))
[correo eliminado](_INTL("{1}'s Vital Spirit cured its sleep problem!",pbThis))
[correo eliminado](_INTL("{1}'s Insomnia cured its sleep problem!",pbThis))
[correo eliminado](_INTL("{1}'s Immunity cured its poison problem!",pbThis))
578 @battle.pbDisplay(_INTL("{1}'s Own Tempo cured its confusion problem!",pbThis))
582 @battle.pbDisplay(_INTL("{1}'s Magma Armor cured its ice problem!",pbThis))
586 @battle.pbDisplay(_INTL("{1}'s Water Veil cured its burn problem!",pbThis))
599 @battle.pbCommonAnimation("Confusion",self,nil)
@battle.pbDisplay(_INTL("{1} became confused!",pbThis))
[correo eliminado](_INTL("{1}'s {2} restored health!",pbThis,itemname))
638 @battle.pbDisplay(_INTL("{1}'s {2} cured its paralysis problem!",pbThis,itemname))
[correo eliminado](_INTL("{1}'s {2} cured its sleep problem!",pbThis,itemname))
[correo eliminado](_INTL("{1}'s {2} cured its poison problem!",pbThis,itemname)
[correo eliminado](_INTL("{1}'s {2} cured its burn problem!",pbThis,itemname))
[correo eliminado](_INTL("{1}'s {2} cured its ice problem!",pbThis,itemname))
676 @battle.pbDisplay(_INTL("{1}'s {2} restored {3}'s PP!",pbThis,itemname,movename))
[correo eliminado](_INTL("{1}'s {2} cured its confusion problem!",pbThis,itemname))
695 @battle.pbDisplay(_INTL("{1}'s {2} cured its paralysis problem!",pbThis,itemname))
when PBStatuses::SLEEP
@battle.pbDisplay(_INTL("{1}'s {2} cured its sleep problem!",pbThis,itemname))
when PBStatuses::POISON
@battle.pbDisplay(_INTL("{1}'s {2} cured its poison problem!",pbThis,itemname))
when PBStatuses::BURN
@battle.pbDisplay(_INTL("{1}'s {2} cured its burn problem!",pbThis,itemname))
when PBStatuses::FROZEN
@battle.pbDisplay(_INTL("{1}'s {2} cured its frozen problem!",pbThis,itemname))
713_INTL("{1}'s {2} restored health!",pbThis,itemname),
_INTL("For {1}, the {2} was too spicy!",pbThis,itemname))
pbConfusionBerry(PBItems::WIKIBERRY,3,
_INTL("{1}'s {2} restored health!",pbThis,itemname),
_INTL("For {1}, the {2} was too dry!",pbThis,itemname))
pbConfusionBerry(PBItems::MAGOBERRY,2,
_INTL("{1}'s {2} restored health!",pbThis,itemname),
_INTL("For {1}, the {2} was too sweet!",pbThis,itemname))
pbConfusionBerry(PBItems::AGUAVBERRY,4,
_INTL("{1}'s {2} restored health!",pbThis,itemname),
_INTL("For {1}, the {2} was too bitter!",pbThis,itemname))
pbConfusionBerry(PBItems::IAPAPABERRY,1,
_INTL("{1}'s {2} restored health!",pbThis,itemname),
_INTL("For {1}, the {2} was too sour!",pbThis,itemname))
pbStatIncreasingBerry(PBItems::LIECHIBERRY,PBStats::ATTACK,
_INTL("Using its {1}, the Attack of {2} rose!",itemname,pbThis))
pbStatIncreasingBerry(PBItems::GANLONBERRY,PBStats:

EFENSE,
_INTL("Using its {1}, the Defense of {2} rose!",itemname,pbThis))
pbStatIncreasingBerry(PBItems::SALACBERRY,PBStats::SPEED,
_INTL("Using its {1}, the Speed of {2} rose!",itemname,pbThis))
pbStatIncreasingBerry(PBItems::PETAYABERRY,PBStats::SPATK,
_INTL("Using its {1}, the Special Attack of {2} rose!",itemname,pbThis))
pbStatIncreasingBerry(PBItems::APICOTBERRY,PBStats::SPDEF,
_INTL("Using its {1}, the Special Defense of {2} rose!",itemname,pbThis))
end
if hpcure && self.item==PBItems::LANSATBERRY && self.hp<=(self.totalhp/4).floor && !@effects[PBEffects::FocusEnergy]
@battle.pbDisplay(_INTL("{1} used its {2} to get pumped!",pbThis,itemname))
747 _INTL("Using {1}, the Attack of {2} sharply rose!",itemname,pbThis),
_INTL("Using {1}, the Defense of {2} sharply rose!",itemname,pbThis),
_INTL("Using {1}, the Speed of {2} sharply rose!",itemname,pbThis),
_INTL("Using {1}, the Special Attack of {2} sharply rose!",itemname,pbThis),
_INTL("Using {1}, the Special Defense of {2} sharply rose!",itemname,pbThis)
775 @battle.pbDisplay(_INTL("{1}'s {2} restored its status!",pbThis,itemname))
[correo eliminado](_INTL("{1}'s {2} cured its love problem!",pbThis,itemname))
[correo eliminado](_INTL("{1}'s {2} restored its HP a little!",pbThis,itemname))
[correo eliminado](_INTL("{1} Snatched {2}'s move!",i.pbThis,user.pbThis))
[correo eliminado](_INTL("{1} Snatched {2}'s move!",i.pbThis,user.pbThis))
[correo eliminado](_INTL("{1}'s Soundproof blocks {2}!",target.pbThis,thismove.name))
[correo eliminado](_INTL("{1}'s LightningRod took the move!",target.pbThis))
elsif changeeffect==2
# Target refers to the move's old user
@battle.pbDisplay(_INTL("{1}'s {2} was bounced back by Magic Coat!",target.pbThis,thismove.name))
1022 @battle.pbDisplay(_INTL("{1} ignored orders while asleep!",pbThis))
[correo eliminado](_INTL("{1} used a different move instead!",pbThis))
[correo eliminado](_INTL("{1} took a nap!",pbThis))
1053 @battle.pbDisplay(_INTL("It hurt itself from its confusion!"))
1057 @battle.pbDisplay(_INTL("{1} ignored orders!",pbThis)) if message==0
@battle.pbDisplay(_INTL("{1} turned away!",pbThis)) if message==1
@battle.pbDisplay(_INTL("{1} is loafing around!",pbThis)) if message==2
@battle.pbDisplay(_INTL("{1} pretended not to notice!",pbThis)) if message==3
1073PBDebug.log("[Using two-turn attack]")
[correo eliminado](_INTL("{1} wasn't affected!",target.pbThis))
1084 @battle.pbDisplay(_INTL("But it failed!"))
1091 @battle.pbDisplay(_INTL("But it failed to spit up a thing!"))
1095 @battle.pbDisplay(_INTL("{1} protected itself!",target.pbThis))
1104 @battle.pbDisplay(_INTL("But it failed!"))
1114
@battle.pbDisplay(_INTL("{1} makes Ground moves miss with Levitate!",target.pbThis));
return false
end
if target.ability==PBAbilities::WONDERGUARD && typemod<=4
@battle.pbDisplay(_INTL("{1} avoided damage with Wonder Guard!",target.pbThis));
1122 @battle.pbDisplay(_INTL("It doesn't affect\r\n{1}...",target.pbThis));
1149 @battle.pbDisplay(_INTL("{1}\r\navoided the attack!",target.pbThis))
elsif thismove.function==0x54 # LEECH SEED
@battle.pbDisplay(_INTL("{1}\r\nevaded the attack!",target.pbThis))
else
@battle.pbDisplay(_INTL("{1}'s\r\nattack missed!",user.pbThis))
[correo eliminado](_INTL("{1}'s attack!",thisname));
[correo eliminado](_INTL("But it failed!"));
1202 @battle.pbDisplay(_INTL("{1} kept going and crashed!",user.pbThis))
[correo eliminado](_INTL("{1}'s Rage is building!",target.pbThis))
1270 @battle.pbDisplay(_INTL("{1} was defrosted!",target.pbThis))
[correo eliminado](_INTL("{1}'s {2} lost all PP due to the Grudge!",user.pbThis,thismove.name))
[correo eliminado](_INTL("{1} took {2} with it!",target.pbThis,user.pbThis))
1298 @battle.pbDisplay(_INTL("{1}'s Shell Bell restored its HP a little!",user.pbThis))
1318 @battle.pbDisplay(_INTL("A critical hit!"))
[correo eliminado](_INTL("{1}'s Rage is building!",target.pbThis))
[correo eliminado](_INTL("{1}'s Shell Bell restored its HP a little!",user.pbThis))
1343 @battle.pbDisplay(_INTL("{1} endured the hit!",target.pbThis))
[correo eliminado](_INTL("{1} hung on using its Focus Band!",target.pbThis))
[correo eliminado](_INTL("It's not very effective..."))
[correo eliminado](_INTL("It's super effective!"))
[correo eliminado](_INTL("Hit {1} time(s)!",realnumhits))
1512 @battle.pbDisplay(_INTL("{1} woke up in the uproar!",pbThis))
1578 @battle.pbDisplay(_INTL("{1} woke up!",pbThis))
self.status=0
else
@battle.pbDisplay(_INTL("{1} is fast asleep.",pbThis))
@battle.pbCommonAnimation("Sleep",self,nil)
1591 @battle.pbDisplay(_INTL("{1} was defrosted!",pbThis))
self.status=0
elsif thismove.function!=0x7D # FLAME WHEEL
@battle.pbDisplay(_INTL("{1} is frozen solid!",pbThis))
@battle.pbCommonAnimation("Frozen",self,nil)
return false
end
end
if choice[1]==-2 # Battle Palace
@battle.pbDisplay(_INTL("{1} appears incapable of using its power!",pbThis))
return false
end
if @effects[PBEffects::HyperBeam]>0
@battle.pbDisplay(_INTL("{1} must recharge!",pbThis))
[correo eliminado](_INTL("{1} is loafing around!",pbThis))
[correo eliminado](_INTL("{1} flinched!",pbThis))
[correo eliminado](_INTL("{1}'s {2} is disabled!",pbThis,thismove.name))
return false
end
if @effects[PBEffects::Taunt] > 0 && thismove.basedamage == 0
@battle.pbDisplayPaused(_INTL("{1} can't use {2} after the Taunt!",pbThis,thismove.name))
[correo eliminado](_INTL("{1} can't use the sealed {2}!",pbThis,thismove.name))
PBDebug.log("[#{pbOpposing1.pbThis} has: #{pbOpposing1.moves[0].id}, #{pbOpposing1.moves[1].id},#{pbOpposing1.moves[2].id} #{pbOpposing1.moves[3].id}]")
[correo eliminado](_INTL("{1} can't use the sealed {2}!",pbThis,thismove.name))
PBDebug.log("[#{pbOpposing2.pbThis} has: #{pbOpposing2.moves[0].id}, #{pbOpposing2.moves[1].id},#{pbOpposing2.moves[2].id} #{pbOpposing2.moves[3].id}]")
[correo eliminado](_INTL("{1} snapped out of confusion!",pbThis))
[correo eliminado](_INTL("{1} is confused!",pbThis))
@battle.pbCommonAnimation("Confusion",self,nil)
if @battle.pbRandom(2) == 0
@battle.pbDisplay(_INTL("It hurt itself from its confusion!"))
1661 @battle.pbDisplay(_INTL("{1} is paralyzed! It can't move!",pbThis))
@battle.pbCommonAnimation("Paralysis",self,nil)
1668battle.pbDisplay(_INTL("{1} is in love with {2}!",pbThis,other.pbThis))
[correo eliminado](_INTL("{1} is immobilized by love!",pbThis))
1675 @battle.pbDisplay(_INTL("{1} was defrosted by {2}!",pbThis,thismove.name))
1721 @battle.pbDisplay(_INTL("{1} used\r\n{2}!",pbThis,thismove.name))
@battle.pbDisplay(_INTL("But there was no PP left for the move!"))