• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - 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 for non-Status moves

  • 46
    Posts
    8
    Years
    I want to implement Z-moves into my game but I have no idea how to go about it. I have all the sprites needed but the coding is what's leaving me in a pickle. Does anyone know or have the code for the non stat Z-moves such as Breakneck Blitz or Sinister Arrow Raid? I don't plan on adding Z status moves as of now. Anyone got any ideas as to how I can go about it?
     
    Last edited by a moderator:
    I want to implement Z-moves into my game but I have no idea how to go about it. I have all the sprites needed but the coding is what's leaving me in a pickle. Does anyone know or have the code for the non stat Z-moves such as Breakneck Blitz or Sinister Arrow Raid? I don't plan on adding Z status moves as of now. Anyone got any ideas as to how I can go about it?

    Hey! Can you just add this overhyped gen7 feature? I don't want to do a thing, so just send me your code!

    This doesn't work. Learn how to code yourself, dig through the Essentials battle system, try to use Mega evolution as a base and work from there - yourself. Obviously, you can ask for help, but you can't just ask someone to make a whole system/feature like this. I know there are/have been various people working on this, simply because that's how a lot of people act - even I did, in fact - but if they think it's done, they'll release it.
     
    Hey! Can you just add this overhyped gen7 feature? I don't want to do a thing, so just send me your code!

    This doesn't work. Learn how to code yourself, dig through the Essentials battle system, try to use Mega evolution as a base and work from there - yourself. Obviously, you can ask for help, but you can't just ask someone to make a whole system/feature like this. I know there are/have been various people working on this, simply because that's how a lot of people act - even I did, in fact - but if they think it's done, they'll release it.

    Yeah I understand what you're trying to say and I can see why you'd have problems with it, but I'm stumped as to how to go about it. I can understand and read the code up to the point where I can add my own abilities and move effects. I've tried adding in my own transformation before (ei. new type of mega evolution) but I could never get it working. What would be really helpful is if there was a list on the sort of things I would need to add to the code or some sort of tutorial video in which I can learn how to do this code. All the coding I've done has been self taught so if there is a way for me to properly learn how to code that be a big help.

    I may have been a bit unclear but I wasn't asking for all the code. Where's the fun in that? XD
     
    The best I can do for you is pseudo code off the top of my head what you would have to do
    Code:
    -Have an array that will store all the z moves the PKMN can use #You need this later
    -Check if player has Z ring && pkmn has Z crystal && Player hasn't used a z move
         -Check to see if pkmn has move type
                  -Check if the move has a unique z move
         -Do calculations for the power of the z-move
         -Store all the moves in the array
         -Display the list of z moves the pkmn can preform from the array
                  -If they cancel then exit this code
                  -Else preform the selected z-move
                  -Make it so they can't use another z-move for the rest of the battle
    -end
    This I guess gives you a point to start with if that was what you where struggling with.
     
    Back
    Top