The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script JPAN's shiny battle special 0x51 question

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 October 28th, 2017 (6:08 PM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Hi all,

Okay here is my problem:

I want to make a certain route only contain shiny pokemon, so I put the following script as a 05 Level Script.

#dynamic 0x800000

#org @start
special 0x51
end

It works perfectly when in the route. But what the special does is making any Pokemon that will be encountered next appear shiny, also after the route has been left. And when encountering the first Pokemon on another route it's not intended to be shiny.

I don't have any knowledge of ASM hacking so I don't have any knowledge about how the command works. I just know it uses a some kind flag that is either turned on or off, but I have no idea which one or how to find it.

Can anyone help me with this?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 30th, 2017 (4:13 AM).
TheHunterManX's Avatar
TheHunterManX TheHunterManX is offline
 
Join Date: Jul 2015
Gender: Male
Posts: 92
From what information I read, the special 0x51 is set to on when entering the route, but isn't turning off after leaving the route.
Solution 1: Applying a script at the end of the route that uses special 0x51 to turn off the flag.
Solution 2: Only using special 0x51 when the player is in the grass, and when leaving grass turns it off.
Solution 3: Adding a level script for every map connected to the route, that turns off the flag.
Solution 1 is your best choice for this problem.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 30th, 2017 (5:33 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Quote:
Originally Posted by TheHunterManX View Post
From what information I read, the special 0x51 is set to on when entering the route, but isn't turning off after leaving the route.
Solution 1: Applying a script at the end of the route that uses special 0x51 to turn off the flag.
Solution 2: Only using special 0x51 when the player is in the grass, and when leaving grass turns it off.
Solution 3: Adding a level script for every map connected to the route, that turns off the flag.
Solution 1 is your best choice for this problem.
Well the problem is that I don't know how to turn off the flag that is used by special 0x51. Using special 0x51 again doesn't turn the flag off.

The flag is only automatically turned off by encountering a pokemon.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old October 30th, 2017 (10:32 AM).
TheHunterManX's Avatar
TheHunterManX TheHunterManX is offline
 
Join Date: Jul 2015
Gender: Male
Posts: 92
Well, thanks to the fact JPAN documented most of the specials, including the shiny one, I was able to find out that if you use
Spoiler:
writebytetooffset 0x0 0x203F480

that it turns off the flag.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old October 30th, 2017 (1:52 PM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
Totally worked:) Thanks a lot!
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.