• 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!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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.

Trying to learn Battle Scripting. How are they activated?

  • 20
    Posts
    8
    Years
    • Seen Sep 4, 2021
    I want to run a script during battle, and found my way to some research posted by JPAN, and then downloaded Battle Script Pro, but I can't seem to figure out how/when a battle script is called. If I write a script with BSP, where do I put the pointer to it to have it be called in a specific trainer battle?
     
    I want to run a script during battle, and found my way to some research posted by JPAN, and then downloaded Battle Script Pro, but I can't seem to figure out how/when a battle script is called. If I write a script with BSP, where do I put the pointer to it to have it be called in a specific trainer battle?

    The easiest battle scripts to add or modify would be the move ones. Each move is set to specific script that gets executed every time it's used in battle. I believe you can modify them using Battle Script Pro.

    Now comes the hard part. All other battle scripts are called by specific functions or even commands themselves. Say, a function checks if used move is a sound one and target's ability is Soundproof. If that's the case, it'll run a battle script that'll print the message: "pokemon is unaffected, etc.". So there's no easy way to figure out how to modify a script or when to find a specific one. You need to look at the game's code and track it down yourself.
     
    Back
    Top