Quote:
Originally Posted by Glaceon69
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.