• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

[Scripting Question] Z moves, Ultra Burst, Totem Battles, Dynamax, Max raids

  • 83
    Posts
    6
    Years
    • She/It/Mew
    • Seen Feb 22, 2023
    Hello, I hope this isnt too much to ask, but I need help with putting the following in V18
    Z moves
    Ultra Burst
    Totem Battles
    Dynamax/Gigantamax
    Max raids
    I tried the ZUD plugin but it messed up my whole game. I ended up getting an error message about the berries for some reason and there was literally no way to fix it. (thankfully i had a backup lol) but even if you cant help with all five of these, even just one would help. So if you have a simple script for any of these 5 for SPECIFICALLY v18, thatd be super appreciated. Thanks!
     
    Last edited:
    Hello, I hope this isnt too much to ask, but I need help with putting the following in V18
    Z moves
    Ultra Burst
    Totem Battles
    Dynamax/Gigantamax
    Max raids
    I tried one thing but it messed up my whole game (thankfully i had a backup lol) but even if you cant help with all five of these, even just one would help. So if you have a simple script for any of these 5 for SPECIFICALLY v18, thatd be super appreciated. Thanks!

    I am one of the authors of the ZUD plugin (Z-moves + Ultra-Burst + Dynamax/Gigantamax/Max Raids). What is the problem? Everything is perfectly described in detail in the main topic.
    As for Totem battles, I don't thin you need this script anymore if you're using v18.1, because 2v1 battles are natively included, which leads me to the next question.

    [...]So if you have a simple script for any of these 5 for SPECIFICALLY v18, thatd be super appreciated. Thanks!
    When you say "specifically v18", do you mean v18.0 (the very first release of v18), or maybe v18.1?
    The ZUD plugin was made for the Gen 8 project (which is v18.1.something), and neither Lucidious (coauthor of ZUD) and myself are willing to make it compatible for any version lower than that of the Gen 8 project.
     
    When I put in the scripts, which took me about an hour and a half to do, I received an error message about Cheri berries. I deleted the copy that I used, so I can't show you, but it probably was just my fault. As for the more specific version, I'm using v18.1
     
    When I put in the scripts, which took me about an hour and a half to do, I received an error message about Cheri berries. I deleted the copy that I used, so I can't show you, but it probably was just my fault. As for the more specific version, I'm using v18.1

    If you don't have an error to show me, I can't really help you ^^"

    But we now know that ZUD is not compatible with v18.1, you need to use the Gen 8 project. If you have not added heavy custom scripts, I suggest you upgrade to the Gen 8 project.
     
    Like I said, I deleted the copy that used the script for, because I was scared I would mess it up (which I did) so I created a backup and after I put in the scripts and it failed, I deleted it. I'm sorry. Also I didn't put in a totem script, and the main reason I wanted a totem script was for the wild pokemon boss customization, not because of the 2v1 thing.
     
    That's okay, I understand. Sorry that I can't show you the error message. Also I actually am using the Gen 8 project.
     
    And one more question. Is it normal for the ZUD script to take like, an hour and a half to put everything in?
     
    And one more question. Is it normal for the ZUD script to take like, an hour and a half to put everything in?

    Yes, unfortunately!
    Unfortunately, Z-moves and Dynamax (well, mostly Dynamax) change a lot of things in battle.
    We could have tried to make a simple plug-and-play script, but this would have had infinite conflicts with any other script that modifies battles.
     
    I hate to be more of a bother than I already have but how do I do 2v1 battles in v18.1? You said it comes with that version but idk how to do it and I have tried looking up any tutorials from literally anywhere but no luck. Again, sorry to be a bother and thank you for what you've already helped with.
     
    Hello once again! I have to clarify something. When I was using the ZUD plugin, I didn't realize that I made an absolutely fatal mistake. I replaced the text files entirely bcz I assumed that all the moves and items were in the ZUD text files when in reality, the only moves and items that were in the text files were the moves and items related to z moves and dynamax. So basically, I replaced the files making it so that the only items in the item.txt were the ones that came with the plugin, causing my error. So I'm trying it again to see if it works. I'm really really sorry that I made you worry abt the ZUD plugin, it was just bcz of my stupid mistake. Anyways, have a lovely day!
     
    I hate to be more of a bother than I already have but how do I do 2v1 battles in v18.1? You said it comes with that version but idk how to do it and I have tried looking up any tutorials from literally anywhere but no luck. Again, sorry to be a bother and thank you for what you've already helped with.

    No problem :)
    To set a 2v1 battle, you have to call this line before calling pbTrainerBattle:
    Code:
    setBattleRule("2v1")
    In the base Essentials, you can also set "2v2", "3v1", "3v2" and "3v3". (There are subtleties when the player is partnered with an NPC).
     
    I got this error message while loading the game :(

    ---------------------------
    PKMNZ
    ---------------------------
    [Pokémon Essentials version 18.1.dev]

    Exception: NameError

    Message: undefined local variable or method `pbCompileZMoveCompatibility' for nil:NilClass



    Backtrace:

    Compiler:1155:in `pbCompileAllData'

    Compiler:1303:in `pbCompiler'

    Main:1



    This exception was logged in

    C:\Users\USERNAME\Saved Games\PKMNZ\errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------

    Do you know how to fix it?
     
    also whenever i try to open my party, I get this (i temporarily got rid of the code that was causing the pbCompileZMoveCompatibility error just so I could open the game
    ---------------------------
    PKMNZ
    ---------------------------
    [Pokémon Essentials version 18.1.dev]

    Exception: NameError

    Message: undefined local variable or method `pbDynamaxSize' for #<PokemonPartyPanel:0xb58db20>



    Backtrace:

    PScreen_Party:212:in `initialize'

    PScreen_Party:466:in `new'

    PScreen_Party:466:in `pbStartScene'

    PScreen_Party:464:in `each'

    PScreen_Party:464:in `pbStartScene'

    PScreen_Party:1127:in `pbPokemonScreen'

    PScreen_PauseMenu:178:in `pbStartPokemonMenu'

    PScreen_PauseMenu:175:in `pbFadeOutIn'

    PScreen_PauseMenu:180:in `pbStartPokemonMenu'

    PScreen_PauseMenu:144:in `loop'



    This exception was logged in

    C:\Users\USERNAME\Saved Games\PKMNZ\errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------

    It probably has to do with icon sprites, but how do I fix the errors?
     
    sorry, wdym i forgot to add it? Like, uh, specifically where did i forget to add it?

    Edit: nvm, think I know what you mean. I'm sorry
     
    Last edited:
    Ok, all the errors have been fixed and z moves are working fine, but I just need to know one more thing. How do I allow dyanamax in a battle and how do I make a max raid? This should hopefully be the last question. I appreciate your time.
     
    Ok, all the errors have been fixed and z moves are working fine, but I just need to know one more thing. How do I allow dyanamax in a battle and how do I make a max raid? This should hopefully be the last question. I appreciate your time.

    The answers are in the main posts :)

    About allowing Dynamax in battle:
    Go to the file ZUD_01_Settings_Misc, find the line:
    Code:
    NO_DYNAMAX     = 37    # The switch number for disabling Dynamax.
    This lines tells you that switch number 37 in your game can be set to ON in order to completely disable Dynamax.
    In your intro Event, set switch 37 to ON in order to DISABLE Dynamax. If you already use Switch 37 for other purposes, change the number here, and set the corresponding switch to ON.

    Source: the FAQ of the first main post.
    Set this switch to False in order to allow Dynamax. Also note that the player needs to have the Dynamax Band in their bag.

    About Max Raids, I please refer to this post.
     
    And one more question. Is it normal for the ZUD script to take like, an hour and a half to put everything in?

    I see that youve already been helped, but this sort of jumped out at me. An hour and a half installation time seems really excessive. Thats not to say that it doeant take quite a bit of effort to install and has numerous steps, but unless youre manually looking through the script line by line to find the right places to paste the new code, it shouldnt take more than 20-30 min tops.

    Perhaps you arent aware of this, but you can use CTRL+F to locate specific lines in a script, and CTRL+SHIFT+F to locate specific lines in the entire game script. This makes things dramatically quicker.
     
    Oh I knew about the CTRL+F thing. And yeah, it was an hour and a half, but that includes other things I did with the download like testing, script stuff, etc. The second (and successful) attempt took like 40 minutes tho.
     
    Back
    Top