• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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: PokeBattle_MoveEffects

  • 3
    Posts
    14
    Years
    • Seen Apr 12, 2014
    Hello,
    recently I downloaded the latest version of "Pokemon Essentials XP" and I tried to insert new move effects. Unfortunately, they didn't work because when tried to test them, simply NOTHING happend in the game. The idea was a move that should change the user's attack to 3 (150%) and I mean exactly 3! No matter which stage it had before.

    Here is the code I wrote down in PokeBattle_MoveEffects:

    Spoiler:


    What could be the reason for this?
     
    That code looks fine in principle. What you mean by "nothing happened" is up for debate - did the move otherwise execute normally but there was no message/stat up animation/stat change, or did the game freeze, or was that move skipped over?

    All I can guess, from what information you've provided, is that you haven't given the move that function code in moves.txt. Well, that or you didn't return 0 at the end of the def (it's probably important to do so). I'm sure you're comparing your code to PokeBattle_Move_01F, which is similar.

    Perhaps you should improve your code by checking the Speed stage before the change, and either stat up, stat down (drastically/sharply/normally for both) or do nothing depending on the value.
     
    When adding your own function codes, start with PokeBattle_Move_133, because Shadow moves use up 126-132. You should do this even if you don't use Shadow moves, because they're already defined.

    I used exactly your code (albeit with code 133), and it worked for me. I don't know why it isn't for you.
     
    I've tried it again with different numbers and now it works fine! Thanks ;)

    Another question: The window of the Essential Kit is pretty huge. How can I change the window size and i do not mean the screenwidth! I searched for some hints in the script but i didn't find any. The window size should just be a smaller one so the the graphic is more defined.
     
    I'm not sure what you mean. If you mean the zoom factor to make it overall smaller (and less pixellated), that setting is right next to the screen size settings in the scripts. It's the difference between 480x320 and 240x160.

    If you meant something else, please clarify.
     
    Back
    Top