The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Trainer battle can't lose...

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 November 14th, 2015 (9:45 AM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
So I'm scripting a trainer battle and I want stuff to happen after the battle, whether you win or lose. Pretty much just like the original rival battle in OAK's lab, but without OAK's explanation of how a battle works.

trainerbattle 0x9 0x### 0x3 @win @lose
Does what I want afterwards, but does the OAK text first

trainerbattle 0x9 0x### 0x0 @win @lose
Teleports you to a pokemon center immediately so the rest of the script
doesn't get reached

How can I work with this?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 14th, 2015 (11:08 AM).
Oloolooloo!'s Avatar
Oloolooloo! Oloolooloo! is offline
 
Join Date: Feb 2015
Posts: 77
http://www.pokecommunity.com/showpos...&postcount=461
I haven't tested this myself and can't yet guarantee it's accurate. Post a reply if there's a problem or if it works.
__________________
In your self-improvement efforts, strive for perfection, knowing you'll never make it. But you'll damn surely hit high if you aim high.
- Gene Duncan, U.S. Marine Corps (Retired)
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old November 14th, 2015 (11:55 AM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
hmm alright, noob question, how would I do that?
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old November 14th, 2015 (6:53 PM).
Vendily's Avatar
Vendily Vendily is offline
 
Join Date: Aug 2015
Nature: Calm
Posts: 1,604
Quote:
Originally Posted by PokemonValor View Post
hmm alright, noob question, how would I do that?
Well, PokemonValor, to do what Oloolooloo! posted earlier, you'll need a hex editor. If you don't have one, I suggest HxD, it's free.
Anyway, you go over to the offset of 080484, and there will be a string of bytes like this:
Code:
20 68 10 21 08 43 20 60
You just change that to:
Code:
00 00 00 00 00 00 00 00
Happy Hacking.
__________________
| VPP Stats

Common Errors (and How to Fix Them) in Essentials
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 14th, 2015 (11:30 PM).
PokemonValor's Avatar
PokemonValor PokemonValor is offline
 
Join Date: Oct 2015
Location: Celadon City, Kanto
Gender: Male
Nature: Lax
Posts: 98
Perfect, just what I wanted. Thanks guys. Just out of curiosity, if for some reason I wanted to, would there be any way to keep the OAK part for one type of battle, then also have what I just changed it to as another type?
__________________
Check out our hack, POKEMON VALOR in the Progressing Hacks page!
Always looking for feedback and suggestions.
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:10 AM.