• Our software update is now concluded. You will need to reset your password to log in.
  • Welcome to PokéCommunity! Register now and join one of the best places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
  • Want to share your adventures playing Pokémon?
    Check out our new Travel Journals forum for sharing playthroughs of ROM Hacks, Fan Games, and other Pokémon content!
  • IMPORTANT: Following a takedown request, the following hacks have been delisted from PokéCommunity:

    • Pokémon Glazed
    • Pokémon: Giratina Strikes Back
    • Pokémon Flora Sky
    • Pokémon Stranded
    The downloads and discussion threads for these hacks will no longer be accessible, and staff will be unable to return questions regarding accessing this content.

[Script] Previous asms in decomps

83
Posts
8
Years
  • Age 37
  • Seen today
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!
 

Lunos

Random Uruguayan User
3,068
Posts
15
Years
83
Posts
8
Years
  • Age 37
  • Seen today
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.
 
83
Posts
8
Years
  • Age 37
  • Seen today
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:

Lunos

Random Uruguayan User
3,068
Posts
15
Years
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.
 
83
Posts
8
Years
  • Age 37
  • Seen today
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