• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Dynamax & Max Raid Battles [Essentials v18.1]

OZander

Pokemon Golden Mountain
  • 24
    Posts
    3
    Years
    • Seen Feb 10, 2022
    Hi
    I get this error after installing the script
    I did everything as it was written ...
    I don't know why this is happening
    Code:
    Script'PScreen_Party' line 1350: SyntaxError occurred
     
  • 15
    Posts
    3
    Years
    • Seen Apr 19, 2021
    maybe you didnt place it right it was written to place above i remeber but anyway can someone teach em how to change raid encounter as it is only ditto any map whatsoever and i dont want pokegear
     
  • 1,409
    Posts
    10
    Years
    • Seen today
    Hi
    I get this error after installing the script
    I did everything as it was written ...
    I don't know why this is happening
    Code:
    Script'PScreen_Party' line 1350: SyntaxError occurred

    There's only three lines of code that needs to be installed in PScreen_Party, so just check that you pasted them in correctly. I don't really get how you'd get a syntax error though. If you still get the error, try removing those lines (all they're used for is resizing/coloring icon graphics, which aren't essential), and see if you still get errors without them.
     
  • 1,409
    Posts
    10
    Years
    • Seen today
    maybe you didnt place it right it was written to place above i remeber but anyway can someone teach em how to change raid encounter as it is only ditto any map whatsoever and i dont want pokegear

    Raid encounters will give you Ditto if you put in a species that can't be spawned in the raid.
    For example, if you try to make a 1 Star Charizard raid, you'll only get Ditto, because Charizard can only be found in Raid Levels 3-5. Any combination of factors where a species cannot be found will give you Ditto.

    Use the Max Raid Database to see what species can spawn in which raids, and plan out your raid events accordingly.
     
  • 1,409
    Posts
    10
    Years
    • Seen today
    Minor Update:
    Moved two lines of code in the MaxRaidEvents script that prevented Wishiwashi from being properly challenged as a Raid encounter in the Max Raid Database. I also fixed the Pokemon cries that play when viewing a Pokemon's data page to play form-specific cries, if any.
     
  • 55
    Posts
    6
    Years
    • Seen Nov 24, 2023
    Well I am still lost ... I am still having the trouble with the pokemon sticking in their dynamax form and nothing seems to work. Also for some reason I can't call a specific Pokemon in a raid den, how do you call a specific Pokemon? Can you give me a clear example?
     
  • 1,409
    Posts
    10
    Years
    • Seen today
    Well I am still lost ... I am still having the trouble with the pokemon sticking in their dynamax form and nothing seems to work. Also for some reason I can't call a specific Pokemon in a raid den, how do you call a specific Pokemon? Can you give me a clear example?

    Sure.

    This is the full script for running a max raid, with all of the possible parameters. You don't have to use all of them, however. I explain how each one works in my update post.
    Code:
    pbMaxRaid(size,rank,pkmn,loot,field,gmax,hard)

    The "pkmn" parameter controls the species of the raid. You can determine the species in several ways.

    Method 1: Map spawn. Leave "pkmn" set as "nil", and the raid will attempt to spawn a random species that appears on the encounter table of your current map.
    Example:
    Code:
    pbMaxRaid
    No parameters are set, so the raid will attempt to spawn a battle under the default raid size (set with MAXRAID_SIZE), with a random rank (scaled to your badge count), vs a random species that may spawn naturally on your current map. If your current map has no random encounters, it will just spawn Ditto.

    Method 2: Pokedex number. Just input a number associated with a Pokemon species in place of "pkmn", and the raid will attempt to spawn that species.
    Example:
    Code:
    pbMaxRaid(nil,nil,25)
    This will attempt to create a Pikachu raid with a random star rank (scaled to your badge count), and the raid size will default to whatever you set MAXRAID_SIZE to.

    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:
    Code:
    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.

    Method 4: Array (Type only)
    Example:
    Code:
    pbMaxRaid(1,6,[:PSYCHIC])
    This will attempt to create a 1v1 Legendary raid (rank 6) vs a random Psychic-type legendary.

    Method 5: Array (Habitat included)
    Example:
    Code:
    pbMaxRaid(3,1,[:GRASS,2])
    This will attempt to create a 3v1 one-star raid vs. a random Grass-type found in the Forest habitat.

    Method 6: Array (Regional Dex included)
    Example:
    Code:
    pbMaxRaid(1,nil,[:WATER,4,0])
    This will attempt to create a 1v1 raid of a randomly scaled rank vs. a random Water-type found in the Sea habitat, but only those that appear in the Kanto Dex (or whatever regional Pokedex you have set as "0").


    Combine this with the other parameters I left out to create unique raid combinations. Here's some more examples:

    Code:
    pbMaxRaid(3,5,:EXEGGUTOR,nil,[1,0,5])
    This will spawn a 3v1 5-star Exeggutor raid in Sunny weather on the Puddle environment for a tropical theme. If you set this raid event on a map set as region "1" (or whatever region number you set ALOLA_REGION to in the MaxRaidEvents settings), Exeggutor will spawn in its Alolan form, instead.

    Code:
    pbMaxRaid(nil,nil,[:BUG,2,1],:SILVERPOWER,[2,2,10])
    This will spawn a raid with the default battle size and a rank randomly scaled to your badge count, vs. a random Bug-type found in the Forest habitat in the Johto Pokedex (or whatever regional Pokedex you have set as "1"). The raid will reward 1 Silver Powder as a bonus reward for clearing it. The battle will also take place in the Rain, with Grassy Terrain set, and in a Forest environment.

    Code:
    pbMaxRaid(1,5,[:ICE,4],[:MYSTICWATER,3],[4,3,3],true)
    This will spawn a 1v1 5-star raid vs. a random Ice-type found in the Sea habitat. The raid will reward 3 Mystic Waters as a bonus reward for clearing it. The battle will take place in Hail, with Misty Terrain set, and in the Still Water environment. If the species selected happens to have a Gigantamax form (Lapras, for example), it will always spawn in that form when it appears in the raid.

    Code:
    pbMaxRaid(2,3,:PIKACHU,:LIGHTBALL,[2,1],true,true)
    This will spawn a 2v1 3-star raid vs. Pikachu. The raid will reward 1 Light Ball as a bonus reward for clearing it. The battle will take place in Rain, with Electric Terrain set. The environment isn't set, so it will default to a Cave environment. Pikachu will always spawn in its Gigantamax form, and Hard Mode is enabled.

    Code:
    pbMaxRaid(1,1,nil,:ORANBERRY)
    This will spawn a 1v1 one-star raid vs a random species that naturally appears on your current map, and awards 1 Oran Berry for clearing it. Perfect for an early-game introduction to raiding.


    PLEASE NOTE:
    If you input criteria into the pbMaxRaid script that would be impossible to create (Mewtwo in a 1-star raid, for example), the raid will only ever spawn Ditto (or whatever species you have included in the RAID_DEFAULT setting). So please keep that in mind. Use the Max Raid Database included with this project to see which species can spawn with which criteria put in place, and plan your raid dens accordingly.
     
  • 1,409
    Posts
    10
    Years
    • Seen today
    Oh is it possible this does not work with Golisopod's Mid Battle Trainer script stuff?

    Maybe. Probably, actually. Any scripts that handle battle stuff will most likely conflict with Dynamax. Try installing this in a fresh copy of Essentials v18.1 and try it out there. If you don't experience this bug under those circumstances, then you have your answer.


    EDIT: I just did a very, very quick glance at his script and it does look like it changes portions of the script that Dynamax also need to make changes to. So there's your answer. It does look like, however, that they can be compatible. Just make the changes I list in my "Additional Installations" file to their equivalent spots in Golisopod's script, instead of the default Essentials script. The main one is probably pbEndOfBattle, which his script also uses. Just plug in the changes I say to make in there, instead. Hopefully that's all thats required. Also make sure my scripts are below his.
     
    Last edited:
  • 55
    Posts
    6
    Years
    • Seen Nov 24, 2023
    Thanks! That example actually made the event work :). I'll see what I am gonna do about the conflicting scripts then. Thanks again!
     
  • 55
    Posts
    6
    Years
    • Seen Nov 24, 2023
    Maybe. Probably, actually. Any scripts that handle battle stuff will most likely conflict with Dynamax. Try installing this in a fresh copy of Essentials v18.1 and try it out there. If you don't experience this bug under those circumstances, then you have your answer.


    EDIT: I just did a very, very quick glance at his script and it does look like it changes portions of the script that Dynamax also need to make changes to. So there's your answer. It does look like, however, that they can be compatible. Just make the changes I list in my "Additional Installations" file to their equivalent spots in Golisopod's script, instead of the default Essentials script. The main one is probably pbEndOfBattle, which his script also uses. Just plug in the changes I say to make in there, instead. Hopefully that's all thats required. Also make sure my scripts are below his.

    Quick update, actually placing those scripts under Golisopod's scripts did what I wanted. It now reverts back to their original form.
     
  • 15
    Posts
    3
    Years
    • Seen Apr 19, 2021
    thx ludicious it works so smooth i had fun with it just one more
    thing i added eternatus from a pbs and it has it sprite but it does not gmax even with its factor how should i make it gmax as in anime and sword and shield as it was supposed
    to replicate it. edit - i found out that there was switch with ban pokemon from dynamaxing eternatus was one of them
    another edit - i used gmax pikachu and it seem to be a diffrent sprite but it does not go with gengar or meowth even though i have sprites and all other things installed
    if i missed something in installation then what i missed can you tell. as you know which script change sprite from normal to gmax
     
    Last edited:
  • 125
    Posts
    4
    Years
    • Seen Nov 20, 2023
    It seems that there is a little bug.
    When 2v2 or 3v3 or Max raid battle.
    I choose first pokemon to dynamax,and decide a move,then I pressed X to cancel.
    Then I choose bottom battle again,the dynamax bottom is not pressed,but the move are still Dynamax move.
     
  • 15
    Posts
    3
    Years
    • Seen Apr 19, 2021
    edit - yea it is a bug anyone can try and i dont know how gengar used gmax terror against
    dynamax drogonite and still kadabra dynamaxed and use it
     
    Last edited:
  • 1,409
    Posts
    10
    Years
    • Seen today
    It seems that there is a little bug.
    When 2v2 or 3v3 or Max raid battle.
    I choose first pokemon to dynamax,and decide a move,then I pressed X to cancel.
    Then I choose bottom battle again,the dynamax bottom is not pressed,but the move are still Dynamax move.
    Good catch, shouldn't be a difficult fix. I'll look into it.

    thx ludicious it works so smooth i had fun with it just one more
    thing i added eternatus from a pbs and it has it sprite but it does not gmax even with its factor how should i make it gmax as in anime and sword and shield as it was supposed
    to replicate it. edit - i found out that there was switch with ban pokemon from dynamaxing eternatus was one of them
    another edit - i used gmax pikachu and it seem to be a diffrent sprite but it does not go with gengar or meowth even though i have sprites and all other things installed
    if i missed something in installation then what i missed can you tell. as you know which script change sprite from normal to gmax
    Eternatus can only enter its Eternamax form on maps added to the ETERNASPOT array. This is because it's a special boss form that isn't meant to be used like normal Gigantamax Pokemon. So I made it limited to only specific maps (presumably, to be used as a boss).

    Gigantamax sprites should display properly as long as you name them correctly. Gengar's G-Max sprites should be named "094_gmax" and "094b_gmax", for example.
     

    OZander

    Pokemon Golden Mountain
  • 24
    Posts
    3
    Years
    • Seen Feb 10, 2022
    It turned out that I didn't install the dynamax scripts! Stupid me!
     
  • 1,409
    Posts
    10
    Years
    • Seen today
    It seems that there is a little bug.
    When 2v2 or 3v3 or Max raid battle.
    I choose first pokemon to dynamax,and decide a move,then I pressed X to cancel.
    Then I choose bottom battle again,the dynamax bottom is not pressed,but the move are still Dynamax move.

    Oh hey, so turns out it was an even simpler fix than I thought. Literally just added one line of code.

    In the Mechanic_Compatibility script, find this line in def pbCancelChoice(idxBattler):
    Code:
    pbUnregisterDynamax(idxBattler) if pbDynamaxInstalled?
    ...and change it to this:
    Code:
    if pbDynamaxInstalled?
          pbUnregisterDynamax(idxBattler)     
          @battlers[idxBattler].pbUnMaxMove
        end

    I updated the download link with this change.
     
  • 125
    Posts
    4
    Years
    • Seen Nov 20, 2023
    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.
     
    Back
    Top