Hey, if I make a trainer have dynamax charizard why the sprites doesn't transform as the gigantamax one?
Well,I think I have got another bug,when I use Water Shuriken to hit max raid pokemon.l get a chance to catch the pokemon for any hit,until you catch it.
def pbProcessRaidEffectsOnHit(move,user,targets,hitNum) # Added to def pbProcessMoveHit
targets.each do |b|
if $game_switches[MAXRAID_SWITCH] &&
b.effects[PBEffects::MaxRaidBoss] &&
b.effects[PBEffects::KnockOutCount]>0
shieldbreak = 1
shieldbreak = 2 if move.maxMove?
if hitNum>0
shieldbreak = 0
end
#-----------------------------------------------------------------------
# Initiates Max Raid capture sequence if brought down to 0 HP.
#-----------------------------------------------------------------------
if b.hp<=0
b.effects[PBEffects::RaidShield] = 0
@battle.scene.pbRefresh
b.pbFaint if b.fainted?
#-----------------------------------------------------------------------
# Max Raid Boss Pokemon loses shields.
#-----------------------------------------------------------------------
elsif b.effects[PBEffects::RaidShield]>0
next if !move.damagingMove?
next if b.damageState.calcDamage==0
next if shieldbreak==0
if $DEBUG && Input.press?(Input::CTRL) # Instantly breaks shield.
shieldbreak = b.effects[PBEffects::RaidShield]
end
b.effects[PBEffects::RaidShield] -= shieldbreak
@battle.scene.pbRefresh
if b.effects[PBEffects::RaidShield]<=0
b.effects[PBEffects::RaidShield] = 0
@battle.pbDisplay(_INTL("The mysterious barrier disappeared!"))
oldhp = b.hp
b.hp -= b.totalhp/8
b.hp =1 if b.hp<=1
@battle.scene.pbHPChanged(b,oldhp)
if b.hp>1
b.pbLowerStatStage(PBStats::DEFENSE,2,false)
b.pbLowerStatStage(PBStats::SPDEF,2,false)
end
end
#-----------------------------------------------------------------------
# Max Raid Boss Pokemon gains shields.
#-----------------------------------------------------------------------
elsif b.effects[PBEffects::RaidShield]<=0
shieldLvl = MAXRAID_SHIELD
shieldLvl += 1 if b.level>25
shieldLvl += 1 if b.level>35
shieldLvl += 1 if b.level>45
shieldLvl += 1 if b.level>55
shieldLvl += 1 if b.level>65
shieldLvl += 1 if b.level>=70 || $game_switches[HARDMODE_RAID]
shieldLvl = 1 if shieldLvl<=0
shieldLvl = 8 if shieldLvl>8
shields1 = b.hp <= b.totalhp/2 # Activates at 1/2 HP
shields2 = b.hp <= b.totalhp-b.totalhp/5 # Activates at 4/5ths HP
if (b.effects[PBEffects::ShieldCounter]==1 && shields1) ||
(b.effects[PBEffects::ShieldCounter]==2 && shields2)
@battle.pbDisplay(_INTL("{1} is getting desperate!\nIts attacks are growing more aggressive!",b.pbThis))
b.effects[PBEffects::RaidShield] = shieldLvl
b.effects[PBEffects::ShieldCounter]-=1
@battle.pbAnimation(getID(PBMoves,:LIGHTSCREEN),b,b)
@battle.scene.pbRefresh
@battle.pbDisplay(_INTL("A mysterious barrier appeared in front of {1}!",b.pbThis(true)))
end
end
end
end
end
#-----------------------------------------------------------------------------
# Ends multi-hit moves early if Raid Pokemon is defeated mid-attack.
#-----------------------------------------------------------------------------
def pbBreakRaidMultiHits(targets,hits)
breakmove = false
if $game_switches[MAXRAID_SWITCH]
targets.each do |t|
breakmove = true if t.hp<=1 && hits>0
end
end
return true if breakmove
end
#=======================================================================
# Dynamax - Ends multi-hit moves early when Raid boss is defeated.
#=======================================================================
break if pbBreakRaidMultiHits(targets,i)
#=======================================================================
pbProcessRaidEffectsOnHit(move,user,targets,hitNum)
I guess just using "892_1_gmax" will be OK.
Yup, exactly like that.
Also for Toxtricity make sure you make a copy of its G-Max sprites for both forms.
Do the same for Female Pikachu and Butterfree.
Alcremie doesnt need a Gmax sprite for each of its forms because that specific case is handled differently in the script itself.
Basically just use the naming system i used with the included icon sprites for your battler sprites.
Okay okay nice thanks ^^
EDIT: also I don't know if it's from your script but trainers and wild pokemon seems like to have lost some HP like instead of being 100% it's like 70%
Due to the "_gmax" that need to be in the name of the files, the g-max forms do not appear in the position editor, is there a way to make them appear?
Hey, got an error while catching a pokemon, I was testing stuff and randomly got attacked by a shiny so tried to catch it (not in debug mode) and this happened:
Spoiler:![]()
EDIT : Tried your fix from page 6 of this thread
but got this error:
Spoiler:![]()
EDIT2: Also for the HP problem it's at every trainers and HP depend of the pokemon sometimes health is like 75% sometimes 95% but never full health
I cannot replicate either of these issues, so I'm not really sure what to suggest. Are you playing in a clean copy of Essentials v18.1?
I tried capturing both a shiny and non-shiny Pokemon, both in and out of debug mode, and don't get any errors. I've also battled several trainers, ones who have Dynamax and those without, and they all have full HP. So I don't have any solutions to these problems if I can't encounter the problems myself. All I can suggest is re-installing everything and starting a new game again, because perhaps something simply isn't registering the way that it should.
if pbDynamaxInstalled? && pbRegisteredDynamax?(idxBattler)
pbUnregisterDynamax(idxBattler)
@battlers[idxBattler].pbUnMaxMove
end
I will check then ^^ Cause I don't know which script could cause this I have :
Spoiler:Following Pokemon (That shouldn't do anything wrong with Dynamax)
Visible Overworld Wild Encounter(I don't know if it's this that cause catching issue)
Better AI
Lavender Ghost
LevelCap
(and other that shouldn't use similar thing since it's not making anything on health/pokemon caught)
It occurs after your name the wild caught pokemon or when you cancel the naming
EDIT: Guess who forgot something? That's me right here
You've made a fix like this and I forgot to add the "&& pbRegisteredDynamax?(idxBattler) I feel dumb x)
Due to the "_gmax" that need to be in the name of the files, the g-max forms do not appear in the position editor, is there a way to make them appear?
Thought so. The capture bug shouldn't occur anymore with that fix.
As for trainer Pokemon's HP I'm 99% sure there's a conflict with one of those scripts you listed thats causing the issue, because there's no reason why it would occur otherwise. Make sure Dynamax is installed below ALL OTHER SCRIPTS that affect battle, so Level Cap and Better AI are probably the culprits, if I had to guess. Keep in mind that by doing this, it means that Dynamax will most likely override elements of those scripts. I can't keep track of everyone's custom scripts, so I have no idea if this will break them or not. This is why I suggest installing Dynamax into a fresh copy of Essentials.
By the way,I wonder how can I set some Special Event Max Raid Battle without add the special pokemon into Max Raid Database or wont be called other way?
banned.push(getID(PBSpecies,:BANNEDSPECIES))