The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script How does one begin to script for mid battle events?

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old January 5th, 2021 (11:15 PM).
THEPEX THEPEX is offline
 
Join Date: Jan 2021
Posts: 1
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 =)
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 6th, 2021 (5:54 PM).
Meister_anon~Master_o f_None Meister_anon~Master_o f_None is offline
 
Join Date: Dec 2020
Posts: 852
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.
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:19 AM.