• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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] How does one begin to script for mid battle events?

  • 1
    Posts
    4
    Years
    • Seen Jan 6, 2021
    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 =)
     
    Back
    Top