The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script FR - Snorlax doesn't immediately go away..?

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 14th, 2017 (9:05 AM).
mlem's Avatar
mlem mlem is offline
 
Join Date: Jun 2015
Location: Hoenn Region
Gender: Male
Nature: Relaxed
Posts: 77
So in advance map I moved snorlax's script to a different route and it works and all, but after battle when his sprite is supposed to be removed, it's still there and doesn't go away until you go out of its range and come back...so what I'm wondering is why isn't the sprite being removed after battle?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 14th, 2017 (9:37 AM). Edited May 14th, 2017 by Pleasure.
Pleasure's Avatar
Pleasure Pleasure is offline
 
Join Date: Apr 2015
Gender: Male
Nature: Timid
Posts: 113
It would help if you posted the script. If I had to guess, I'd say you forgot to include hidesprite.

In the script, use hidesprite 0x<person event number of sprite> in the script right after where says setflag 0x<person id of sprite>.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 14th, 2017 (11:10 AM).
mlem's Avatar
mlem mlem is offline
 
Join Date: Jun 2015
Location: Hoenn Region
Gender: Male
Nature: Relaxed
Posts: 77
Quote:
Originally Posted by Pleasure View Post
It would help if you posted the script. If I had to guess, I'd say you forgot to include hidesprite.

In the script, use hidesprite 0x<person event number of sprite> in the script right after where says setflag 0x<person id of sprite>.
It's the original FR script, I didn't change it at all, just moved the script to a different location
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old May 14th, 2017 (12:24 PM).
Squeetz's Avatar
Squeetz Squeetz is offline
ROM Hacker
 
Join Date: Jun 2013
Location: Norway
Age: 25
Gender: Male
Nature: Quiet
Posts: 236
Quote:
Originally Posted by PokemonAce123 View Post
It's the original FR script, I didn't change it at all, just moved the script to a different location
Snorlax gets hidden by a level script (type 05).
It checks if a flag is set, and if it is, then hide the OW.
This makes the transition from battle to overworld look seamless (in comparison to fadescreening then hiding it).
__________________
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old May 14th, 2017 (12:30 PM).
mlem's Avatar
mlem mlem is offline
 
Join Date: Jun 2015
Location: Hoenn Region
Gender: Male
Nature: Relaxed
Posts: 77
Quote:
Originally Posted by Squeetz View Post
Snorlax gets hidden by a level script (type 05).
It checks if a flag is set, and if it is, then hide the OW.
This makes the transition from battle to overworld look seamless (in comparison to fadescreening then hiding it).
And how is this level script activated? Battle? And if so then after battle the ow should be hidden immediately, according to the level script, unless there's something I'm missing...
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old May 14th, 2017 (1:56 PM).
Pleasure's Avatar
Pleasure Pleasure is offline
 
Join Date: Apr 2015
Gender: Male
Nature: Timid
Posts: 113
Quote:
Originally Posted by PokemonAce123 View Post
And how is this level script activated? Battle? And if so then after battle the ow should be hidden immediately, according to the level script, unless there's something I'm missing...
It happens when flag 0x807 is set, which happens right before the battle. Did you add the level script to the new map?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old May 14th, 2017 (5:56 PM).
mlem's Avatar
mlem mlem is offline
 
Join Date: Jun 2015
Location: Hoenn Region
Gender: Male
Nature: Relaxed
Posts: 77
Quote:
Originally Posted by Pleasure View Post
It happens when flag 0x807 is set, which happens right before the battle. Did you add the level script to the new map?
Just did, it works now. Thanks!
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:17 AM.