The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Battling trainers again?

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 May 8th, 2015 (10:16 AM). Edited May 12th, 2015 by Criminon.
Criminon's Avatar
Criminon Criminon is offline
Forever Spriting
 
Join Date: Aug 2012
Location: California
Gender: Male
Nature: Timid
Posts: 264
Is there something that stops a trainer battle from only being able to happen once? Like when the battle is set through scripts instead of the normal view method?

Edit:

Found it out!

Spoiler:
#org @battle
trainerbattle 0x1 0x(your trainer # goes here) 0x0 @intro @defeat @clear
release
end

#org @clear
settrainerflag 0x(your trainer # goes here) 0x1
release
end
__________________
Unbound Team / Crown Team
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 8th, 2015 (10:21 AM).
NewDenverCity's Avatar
NewDenverCity NewDenverCity is offline
 
Join Date: Apr 2014
Location: Antarctica
Gender: Male
Nature: Calm
Posts: 326
The 'trainer flags' are actually real flags. So once they're set(by beating that person) then the game will skip over the battle again because the flag has already been set.


If you wanted to battle a trainer again then i'd just have either a level script that has 'settrainerflag 0x__
settrainerflag 0x__' etc. That means whenever you leave that map the trainer will behave like he/she did when you first walked into their path.


Alternatively, you can have a script set up where the trainer will ask you yes or no to another battle. You'd use settrainerflag 0x__ if they said yes.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 8th, 2015 (10:23 AM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
You could use cleartrainerflag 0x(trainer flag).
__________________
Check out my hack: Pokemon League of Legends.
Join the subreddit: https://www.reddit.com/r/PokemonLoL/
If you would like to give me money for no reason you can do so here
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old May 8th, 2015 (11:02 AM).
NewDenverCity's Avatar
NewDenverCity NewDenverCity is offline
 
Join Date: Apr 2014
Location: Antarctica
Gender: Male
Nature: Calm
Posts: 326
Quote:
Originally Posted by pokenoobend View Post
You could use cleartrainerflag 0x(trainer flag).
cleartrainerflag actually disables the trainer battle from happening. settrainerflag is the command you want for making the battle be able to be done again.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old May 8th, 2015 (11:51 AM).
Criminon's Avatar
Criminon Criminon is offline
Forever Spriting
 
Join Date: Aug 2012
Location: California
Gender: Male
Nature: Timid
Posts: 264
Quote:
Originally Posted by NewDenverCity View Post
cleartrainerflag actually disables the trainer battle from happening. settrainerflag is the command you want for making the battle be able to be done again.

Yeah, haha. took me a lot of trial and error. Really appreciate everyone taking the time to send this. Ironically enough I did it the hard way and went through a command list.
__________________
Unbound Team / Crown Team
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.