#Not Important
All hail the wishmaker
- 910
- Posts
- 5
- Years
- He/Him
- Hoenn
- Seen Jul 22, 2023
Both are possible, you can even have z-moves!
# Recalculates this Pokémon's stats.
def calcStats
nature=self.nature
stats=[]
pvalues??=[100,100,100,100,100]
na5=(nature/5).floor
nm5=(nature%5).floor
if nd5!=nm5
[I]pvalues??[nd5]=110
pvalues??[nm5]=90[/I]
end
level = self.level
bs = self.baseStats
for i in 0..5
base = bs[i]
if i==PBStats::HP
stats[i]=calcHP(base,level,@iv[i],@ev[i])
else
stats[i]=calcStat(base,level,@iv[i],@ev[i],pvalues??[i-1])
end
end
Code:################################################################################ # Dynamax battler. ################################################################################ <snip> def pbDynamax(index) return if! @battlers[index] || !@battlers[index].pokemon return if! (@ battlers [index] .hasDynamax? rescue false) return if (@battlers[index].isDynamax? rescue true) ownername = pbGetOwner(index).fullname ownername = pbGetOwner(index).name if pbBelongsToPlayer?(index) @battlers [index].effects[PBEffects::Dynamax]=3 @battlers [index].effects[PBEffects::DBoost]=true @scene.pbRecall(index) # Checking Gigantamax if @battlers[index].hasGigantamax? [COLOR="Red"]@battlers[index].pokemon.makeGigantamax[/COLOR] @battlers[index].effects[PBEffects::Gigantamax]=3 @battlers[index].form=@battlers[index].pokemon.form @ scene.pbChangePokemon(@battlers[index],@battlers[index].pokemon) end if pbBelongsToPlayer?(index) || @battlers[index].pbPartner && !pbIsOpposing?(index) @scene.pbSendOut index,@battlers[index].pokemon) elsif pbIsOpposing?(index) @scene.pbTrainerSendOut (index,@battlers[index].pokemon) end @battlers[index].pokemon.makeDynamax @battlers[index].pbUpdate(true) maxname=(@battlers[index].pokemon.maxName rescue nil) if! maxname || maxname =="" maxname = _INTL ("{1}",PBSpecies.getName(@battlers[index].pokemon.species)) end #pbDisplay(_INTL("{1} has Mega Evolved into {2}!",@battlers[index].pbThis,meganame)) PBDebug.log("[Dynamax] #{@battlers[index].pbThis} became Max #{maxname}") side = (pbIsOpposing?(index)) ? 1 : 0 owner = pbGetOwnerIndex(index) @dynaMax[side][owner]=-2 pbPlayCrySpecies(@battlers[index]) end
Ok, I copied the scripts the way you said but I am getting this error:
Please help...Code:-------------------------------------- Script Pokebattle_Battler line 3535: SyntaxError occured --------------------------------------
Hi, i use the versión 16.2 and works for me
Hi guys, I get this error, do you know how to fix it?