The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Setting flags mid-battle

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 July 24th, 2020 (6:02 AM).
MiinionX MiinionX is offline
 
Join Date: Sep 2018
Posts: 10
Hello there,

I'm messing around with a new rombase and noticed that by setting a flag I can trigger the ability to capture trainer's Pokemon. Doing so works well, however ends the battle meaning Ideally the catchable Pokemon would be saved for last in the enemy's team. As a result I'd like to know if I could somehow set this flag mid-battle, as if I cannot I have to split the battle split up into two phases which seems choppy.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 24th, 2020 (8:31 AM).
CyberDork34 CyberDork34 is offline
 
Join Date: Oct 2012
Gender: Male
Posts: 14
The only reliable idea popping into my head for now is to write an ASM hook to wherever the main battle loop is, loop through the opponent's party, check to see if they only have one pokemon with more than 0 HP. If true, toggle this catchable flag, and then branch to the rest of the main battle loop. You could probably have another flag that you can toggle with an XSE script that, when true, this check is run, otherwise jump straight to the main battle loop (so you can choose which trainers have catchable pokemon).

I personally have no idea where this hook would be so you'd need a fair amount of research to go this route beforehand.
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:15 AM.