And it seems to occur another bug,when I caught any pokemon,the error is" in 'pbUnmaxMove' undefined method 'moves' ".
(I solve it by copy the old "def CancelChoice"and named it"def CancelChoiceCaught" and replace it in Battle_StartAndEnd.It's stupid but works well.)
if pbDynamaxInstalled? [B][I]&& pbRegisteredDynamax?(idxBattler)[/I][/B]
pbUnregisterDynamax(idxBattler)
@battlers[idxBattler].pbUnMaxMove
end
Hello, I wanted to try this, and got an error, maybe I've forgot something tho
Spoiler:![]()
EDIT: the error occur when using a move and pokemon from trainers/or myself will spam his attacks
Thanks for solving it!
By the way,in the new Trainer dynamax method,if a trainer have no ace,he/she wont dynamax any pokemon.
However,if I set muti ace,the trainer will dynamax the first sent ace,which seems not a good choice.
Could you please keep the old method that "dynamax last sent one" or random dynamax when no ace is set?
Thanks anyway.
The error doesn't seem to be pointing to any Dynamax code. And it seems like you're running another battle-related script (SOS Battles). So most likely its not my script, but some kind of clash between another script that clashes with mine. Try making sure the Dynamax script is below ALL other scripts that affect battle. And any of the "Additional Installations" in my instructions should be made in your third party scripts too, if they affect areas of the base Essentials script that Dynamax needs.
Removed the SOSBattle error still appear, I've added all the "additional installations" but what do you mean by "third party scripts"
I mean scripts that you added in. Dynamax scripts are designed for the base Essentials v18.1 scripts. So I can't account for any outside scripts you added in. Some scripts may change elements of the default Essentials script which Dynamax also needs to change in some way, and because of that it can cause incompatibility errors.
I have no idea what areas of the base script SOS Battles change, but I'm willing to bet it changes something Dynamax uses. Or perhaps something else you have installed. All I can suggest is installing Dynamax in a fresh copy of v18.1 with no other scripts installed, and testing if you get the same error.
Yes,Ace method is excellent.
However, if I make all the Pokemon in their party their Ace besides the first one,the second sent out pokemon must use dynamax.
I dont actually know how AI decide the order of pokemon,but I would like to suggest a method that really "random".
For example,if there are more than one Ace in the party,than when you send one of them out,It just "have chance" to dynamax rather than"must".
Also,just like Trainers in Sword&Sheild,they dynamax their last pokemon,It's also a good method,I think.
Maybe I cant express well,sorry.
Okay, I will try this ^^
EDIT: Found the problem sad cause I wanted to use this. I removed the lavender ghost (https://www.pokecommunity.com/threads/441236) from my script and it worked
Thanks for answering.
In short, I think when a trainer has five Aces, I suggest that he should dynamax a random one, but now he dynamax the second one he sends out.
In this method,I know he will dynamax his second sent out pokemon,and it will reduce some challenge and fun.
Did I think about it in a wrong way?
Method 3: Pokemon internal name. Input the internal name of a species in place of "pkmn", and the raid will attempt to spawn that species.
Example:
pbMaxRaid(2,5,:GENGAR)
This will attempt to create a 2v1 battle 5-star Gengar raid. Gengar may or may not spawn in its Gigantamax form.
I've tried this but all I get is Ditto spawning. Even when I try to use the encounter table, several times the script generates a Ditto Raid.
What may I be doing wrongly about the first case? And, also ,can I set the raid pool to each den manually?
Now a similar bug comes up when I choose to dynamax and then press F to shift,and then cancel it.(And it can be solved in similar way,too. )
Also,when my pokemon level up by rarecandy,,the Max HP increases but the HP is still the old number.(I guess it's because the wrong position of @totalhp = stats[PBStats::HP] in clacstats)
Great script but
Well everything is working fine except that i can not access my in game kanto pokedex only and also the region selection feature is not woring max raid database have i done something wrong ?
And yes it is fresh essentials not even a single extra script