- 1,224
- Posts
- 11
- Years
- Omnipresence
- Seen Aug 8, 2023
I'm possibly wrong, but I don't believe I've edited anything in my base v14, and when you define an individual trainer with specific moves, it does not give them that first move.
I'm possibly wrong, but I don't believe I've edited anything in my base v14, and when you define an individual trainer with specific moves, it does not give them that first move.
Problems with Bulk Up, Coil, Work Up and Growth. Source: https://www.pokecommunity.com/threads/338880
This may or may not be related, but I'm seeming to have problems with Charge Beam. It was a Meowstic vs. Meowstic battle and mine knew Charge Beam, the other knew Reflect, Light Screen, Psyshock and Fake Out. I was faster and used Charge Beam and for some reason the opponent kept skipping the turn (as in I would use charge beam, and then it would just go right back to picking my next move before my opponent even went). This happened on most the turns, but the other Meowstic did manage to actually get a turn a few times before I KOed it.
I'm thinking it could have to do with stat boosts. I am not sure if it was skipping on the same turn I was getting the boost from Charge Beam or not (since I wasn't paying attention), but I am pretty sure it was because of the boosts, since all the moves that FL posted also boost an attacking stat, or maybe this could have to do with the fact that multiple messages are displayed? Not sure.
def myNewDef(index,self=false,opponent=true)
end
Exception: NoMethodError
Message: undefined method `hypermode' for nil:NilClass
PokemonShadowPokemon:501:in `pbUseItemOnPokemon'
PokeBattle_Battle:2602:in `pbAttackPhase'
PokeBattle_Battle:2592:in `each'
PokeBattle_Battle:2592:in `pbAttackPhase'
PokeBattle_Battle:2357:in `pbStartBattleCore'
PokeBattle_Battle:2356:in `logonerr'
PokeBattle_Battle:2356:in `pbStartBattleCore'
PokeBattle_Battle:2342:in `loop'
PokeBattle_Battle:2365:in `pbStartBattleCore'
PokeBattle_Battle:2175:in `pbStartBattle'
PokemonTrainers:428:in `pbTrainerBattle'
PokemonTrainers:427:in `pbSceneStandby'
PokemonTrainers:429:in `pbTrainerBattle'
PokemonTrainers:426:in `pbBattleAnimation'
PokemonTrainers:426:in `pbTrainerBattle'
PokemonDebug:786:in `pbDebugMenu'
PokemonDebug:297:in `loop'
PokemonDebug:824:in `pbDebugMenu'
PokemonPauseMenu:244:in `pbStartPokemonMenu'
PokemonPauseMenu:243:in `pbFadeOutIn'
PokemonPauseMenu:243:in `pbStartPokemonMenu'
PokemonPauseMenu:144:in `loop'
PokemonPauseMenu:264:in `pbStartPokemonMenu'
Scene_Map:191:in `call_menu'
Scene_Map:162:in `update'
Exception: NoMethodError
Message: undefined method `canMirrorMove?' for #<PBMoveData:0x992d918>
PokeBattle_MoveEffects:4075:in `pbEffect'
PokeBattle_Battler:2178:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:2141:in `each'
PokeBattle_Battler:2141:in `pbProcessMoveAgainstTarget'
PokeBattle_Battler:2514:in `pbUseMove'
PokeBattle_Battler:2488:in `loop'
PokeBattle_Battler:2517:in `pbUseMove'
PokeBattle_Battler:2649:in `pbProcessTurn'
PokeBattle_Battler:2648:in `logonerr'
PokeBattle_Battler:2648:in `pbProcessTurn'
PokeBattle_Battle:2544:in `pbAttackPhase'
PokeBattle_Battle:2543:in `each'
PokeBattle_Battle:2543:in `pbAttackPhase'
PokeBattle_Battle:2281:in `pbStartBattleCore'
PokeBattle_Battle:2280:in `logonerr'
PokeBattle_Battle:2280:in `pbStartBattleCore'
PokeBattle_Battle:2266:in `loop'
PokeBattle_Battle:2289:in `pbStartBattleCore'
PokeBattle_Battle:2099:in `pbStartBattle'
PokemonField:1019:in `pbWildBattle'
PokemonField:1018:in `pbSceneStandby'
PokemonField:1020:in `pbWildBattle'
PokemonField:1017:in `pbBattleAnimation'
PokemonField:1017:in `pbWildBattle'
PokemonField:1473:in `pbBattleOnStepTaken'
$scene.transfer_player
$scene.transfer_player if $scene.is_a?(Scene_Map)
score+=50 if opponent.pbOwnSide.effects[PBEffects::StealthRock]>0
score+=50 if opponent.pbOwnSide.effects[PBEffects::StealthRock]==true
if opponent.lastMoveUsed<=0 ||
!PBMoveData.new(opponent.lastMoveUsed).canMirrorMove?
if opponent.lastMoveUsed<=0 ||
!PokeBattle_Move.pbFromPBMove(@battle,PBMove.new(opponent.lastMoveUsed)).canMirrorMove?
if target.hasWorkingAbility(:MUMMY) && !user.isFainted?
if !isConst?(user.ability,PBAbilities,:MULTITYPE) &&
!isConst?(user.ability,PBAbilities,:WONDERGUARD) &&
!isConst?(user.ability,PBAbilities,:MUMMY)
user.ability=getConst(PBAbilities,:MUMMY) || 0
@battle.pbDisplay(_INTL("{1} was mummified by {2}!",
user.pbThis,target.pbThis(true)))
end
end
if isConst?(target.ability,PBAbilities,:MUMMY) && !target.effects[PBEffects::GastroAcid] && !user.isFainted?
if !isConst?(user.ability,PBAbilities,:MULTITYPE) &&
!isConst?(user.ability,PBAbilities,:WONDERGUARD) &&
!isConst?(user.ability,PBAbilities,:MUMMY)
user.ability=getConst(PBAbilities,:MUMMY) || 0
@battle.pbDisplay(_INTL("{1} was mummified by {2}!",
user.pbThis,target.pbThis(true)))
end
end
# Pressure
if self.hasWorkingAbility(:PRESSURE) && onactive
@battle.pbDisplay(_INTL("{1} is exerting its Pressure!",pbThis))
end
when 0x26
score+=40 if attacker.turncount==0 # Dragon Dance tends to be popular
if attacker.pbTooHigh?(PBStats::ATTACK) &&
attacker.pbTooHigh?(PBStats::SPEED)
score-=90
else
score-=attacker.stages[PBStats::ATTACK]*10
score-=attacker.stages[PBStats::SPEED]*10
if skill>=PBTrainerAI.mediumSkill
hasphysicalattack=false
for thismove in attacker.moves
if thismove.id!=0 && thismove.basedamage>0 &&
thismove.pbIsPhysical?(thismove.type)
hasphysicalattack=true
end
end
if hasphysicalattack
score+=20
elsif skill>=PBTrainerAI.highSkill
score-=90
end
end
if skill>=PBTrainerAI.highSkill
aspeed=pbRoughStat(attacker,PBStats::SPEED,skill)
ospeed=pbRoughStat(opponent,PBStats::SPEED,skill)
if aspeed<ospeed && aspeed*2>ospeed
score+=20
end
end
end
when 0xC1 # Beat Up
party=pbParty(attacker.index)
mult=0
for i in 0...party.length
[COLOR="Red"]multi[/COLOR]+=1 if party[i] && !party[i].egg? &&
party[i].hp>0 && party[i].status==0
end
basedamage*=mult
when 0xC1 # Beat Up
party=pbParty(attacker.index)
mult=0
for i in 0...party.length
[COLOR="red"]mult[/COLOR]+=1 if party[i] && !party[i].egg? &&
party[i].hp>0 && party[i].status==0
end
basedamage*=mult
def pbRoughAccuracy(move,attacker,opponent,skill)
# Get base accuracy
[COLOR="RoyalBlue"]accuracy[/COLOR]=move.accuracy
if skill>=PBTrainerAI.mediumSkill
if pbWeather==PBWeather::SUNNYDAY &&
(move.function==0x08 || move.function==0x15) # Thunder, Hurricane
[COLOR="RoyalBlue"]accuracy[/COLOR]=50
end
end
# Accuracy stages
accstage=attacker.stages[PBStats::ACCURACY]
accstage=0 if opponent.hasWorkingAbility(:UNAWARE)
[COLOR="Purple"]accuracy[/COLOR]=(accstage>=0) ? (accstage+3)*100.0/3 : 300.0/(3-accstage)
evastage=opponent.stages[PBStats::EVASION]
evastage-=2 if @field.effects[PBEffects::Gravity]>0
evastage=-6 if evastage<-6
evastage=0 if opponent.effects[PBEffects::Foresight] ||
opponent.effects[PBEffects::MiracleEye] ||
move.function==0xA9 || # Chip Away
attacker.hasWorkingAbility(:UNAWARE)
evasion=(evastage>=0) ? (evastage+3)*100.0/3 : 300.0/(3-evastage)
[COLOR="Red"]accuracy/=evasion[/COLOR]
# Accuracy modifiers
accuracy=pbRoughAccuracy(move,attacker,opponent,skill)
basedamage*=accuracy/100
***Round 1***
[The wild Diggersby: Odor Sleuth=100, Flail=100, Dig=100, Bounce=100]
[Using two-turn attack]
***Round 2***
[reusing commands for the wild Diggersby]
[Continuing move]
[Lauren lost 17 HP, now has 116 HP]
***Round 3***
[The wild Diggersby: Odor Sleuth=100, Flail=100, Dig=100, Bounce=100] (Diggersby does not move)
***Round 4***
[The wild Diggersby: Odor Sleuth=100, Flail=100, Dig=100, Bounce=100] (Diggersby does not move)
***Round 5***
[The wild Diggersby: Odor Sleuth=100, Flail=100, Dig=100, Bounce=100]
[Lauren lost 5 HP, now has 111 HP]
***Round 6***
[The wild Diggersby: Odor Sleuth=100, Flail=100, Dig=100, Bounce=100]
[The wild Diggersby lost 141 HP, now has 0 HP]
[The wild Diggersby fainted]
***Round 1***
[The wild Rattata: Tail Whip=100, Quick Attack=100, Focus Energy=100, Bite=100]
[Pikachu lost 9 HP, now has 37 HP]
***Round 2***
[The wild Rattata: Tail Whip=100, Quick Attack=100, Focus Energy=100, Bite=100]
***Round 3***
[The wild Rattata: Tail Whip=100, Quick Attack=100, Focus Energy=100, Bite=100] (Rattata does not move)
***Round 4***
[The wild Rattata: Tail Whip=100, Quick Attack=100, Focus Energy=100, Bite=100]
[The wild Rattata lost 30 HP, now has 0 HP]
[The wild Rattata fainted]
I'm sure you should have gotten an error message. I don't know why you wouldn't have.
I'm sure you should have gotten an error message. I don't know why you wouldn't have.