• 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.

[Script] Previous asms in decomps

  • 124
    Posts
    9
    Years
    • Seen Apr 5, 2024
    Ive been getting into this decomp thing just recently bc it seems fun, been doing binary for a while. But i do have some questions i just havent gotten the answers to.

    One code for binary hacking i just couldnt live without was custom wildbatttles with custom iv and shiny .. was wondering if anybody can point out how to add this fearure to a decomp..thanks!
     
    Thanks for replying so quick. As i mentioned, the custom wildbattle with shiny and customs iv is something i couldnt live without on a fire red hack...im recently into this comp so i have no idea how to even implement anything you replied with, but i really appreciate it.
     
    The flag_force_shinies is not something located in the emerald-expansion "according to the compiler" so I couldnt add the setcustomwildbattle command with shinyness parameter....ALSO after trying it out, nothing happens even with no errors I cant get the battle to start, I think I need a way of starting the wild battle kinda like setwildbattle has dowildbattle........this setcustomwildbattle needs a docustomwildbattle but how? any pointers lunos?
     
    Last edited:
    The flag_force_shinies is not something located in the emerald-expansion "according to the compiler" so I couldnt add the setcustomwildbattle command with shinyness parameter....
    Replace the usages of that flag with P_FLAG_FORCE_SHINY instead, and make sure to assign a valid, unused flag to the P_FLAG_FORCE_SHINY config present in include/config/pokemon.h.
    ALSO after trying it out, nothing happens even with no errors I cant get the battle to start, I think I need a way of starting the wild battle kinda like setwildbattle has dowildbattle........this setcustomwildbattle needs a docustomwildbattle but how? any pointers lunos?
    It doesn't need a custom command, dowildbattle works just fine.
     
    Replace the usages of that flag with P_FLAG_FORCE_SHINY instead, and make sure to assign a valid, unused flag to the P_FLAG_FORCE_SHINY config present in include/config/pokemon.h.

    It doesn't need a custom command, dowildbattle works just fine.
    worked like a charm, not sure why it didnt work before when all i did was remove the shiny parameter and anything else that referenced the shiny part...almost as if I NEED to have it.
     
    Back
    Top