• 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!
  • 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] Moves not working (w/ gen VI moves)

  • 132
    Posts
    10
    Years
    So recently I've added certain gen 6 mechanics to my version 13 Essentials, namely just the basics like pokémon, types, moves... Because v13 has contest categories in the PBS moves file (Beauty, Cool, Smart, etc.), I've had to add them to the newer PBS file. So, here's an example of two lines from the PBS:

    Spoiler:


    I've also updated the script sections Pokemon_Moves and Pokemon_MoveEffects from version 16 of Essentials (while changing each PBS Move's function code to actually correspond to the codes in MoveEffects.) Lastly, I've noticed certain moves have no flags whatsoever in the PBS file.

    SO, when I go into battle and use any move, nothing happens, it just skips my turn. Same happens for my opponent. Is there another script section in need of updating, or do I need to add flags to each move? Thanks.

    PS - I'm aware I could just update Essentials entirely, but I'd like to avoid that if possible.
     
    Last edited by a moderator:
    You updated PokeBattle_Move to be like the one in Essentials v16.2, right? As far as I'm aware, that means that it's looking for the move description where the contest attribute is.
     
    You updated PokeBattle_Move to be like the one in Essentials v16.2, right? As far as I'm aware, that means that it's looking for the move description where the contest attribute is.

    Yeah, you'd think that'd be the answer, but... Basically, if I remove all the contest categories and then enter a battle, the moves still do not work, and, in addition to that, move types are all wonky and switched around, ie. the move WoodHammer is now a flying type move for some reason, leading me to believe the order of the "attr_accessors" might be off. This is what it looks like now:

    Spoiler:


    Would the order of these attr's matter? Does the order have to reflect the order of the PBS attributes? Thanks by the way!
     
    The attr_accessors' order doesn't matter.

    I just checked a few theories as to what your problem could be, all of which don't pan out.
    - The move attributes are listed in the same order with the exception of the contest attribute being before the description. so the attribute order isn't affecting anything. (and I think if you were to check out the moves on the Summary screen they'll appear like their descriptions are instead their Contest attribute.)
    - I checked, and your target codes are formatted correctly. At least, the two shown here are. Make sure that the red number, three before the Contest attribute, never is a single zero. It needs to be double zeroes for a move that can target anyone.
    Spoiler:
     
    Back
    Top