The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Trying to learn Battle Scripting. How are they activated?

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 30th, 2017 (11:56 PM).
Glaceon69's Avatar
Glaceon69 Glaceon69 is offline
 
Join Date: Jan 2017
Age: 31
Gender: Female
Posts: 20
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?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 1st, 2017 (3:13 PM).
DizzyEgg's Avatar
DizzyEgg DizzyEgg is offline
 
Join Date: Feb 2014
Location: Poland
Age: 25
Gender: Male
Nature: Quiet
Posts: 794
Quote:
Originally Posted by Glaceon69 View Post
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.
__________________
Support Pokeemerald!

Pokeemerald starter pack:
Emerald Expansion
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

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:23 AM.