![]() |
How does one begin to script for mid battle events?
To start off the bat to know who you are dealing with, I am a total noob to rom hacking. My extent of programming knowledge is the basics of Python, Java, and some arduino coding, so I have a solid understanding of high-level programming, but I have very little understanding of low level programming like ASM.
I am looking to make a small rom hack for emerald(or firered if that is easier XD), and I need to do the following things with it: - record pokemon stats in the party, and save the stats permanently for later use. - modifying pokemon stats mid-battle, using the previously mentioned pokemon stats to determine how stats will be affected. - making extra text boxes to explain to the user changes to things like stats. As a secondary priority: - (if possible) special events like a pokemon surviving a fatal blow by 1 hp, like later generations, and being able to do multiple moves on one turn, including moves not possessed by the current pokemon. I already understand that this level of modification will likely require a decompiled rom. I can figure out how to access the information on the party's stats, but: What I want to know is how would I go about modifying the battle system to do this, and how do I save my own info into a save file? I don't expect anything like telling me how to code it per se, that's my job after all XD, but I want to know if I can modify existing scripts(and if so, which ones), or if I need to insert my own script into the battle, (and if so, how?) as well as if I can use C(which I am much more comfortable with), or if I need to use ASM. Some direction to guides for this kind of stuff would also be great! Thanks to anyone who decides to help on my adventure =) |
All I can say, is check out the complete list of flags and variables for fire red and emerald, it may help with scripting.
https://github.com/pret/pokefirered/blob/master/include/constants/flags.h https://github.com/pret/pokefirered/blob/master/include/constants/vars.h also looks like the main page as an entire decomp of fire red so good stuff. |
| All times are GMT -8. The time now is 9:19 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.