The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Sprite doesn't reappear after clearflag before warp

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 10th, 2018 (4:19 AM). Edited May 10th, 2018 by Sakakii.
Sakakii's Avatar
Sakakii Sakakii is offline
 
Join Date: Nov 2017
Posts: 242
Code:
clearflag 0x159
setvar 0x4059 0x0
warp 0x1 0x6F 0xFF 0x3 0x11
end
This bit of code (it's a long script so I just post the most relevant stuff) is supposed to unhide a person
in the current map, however when I come back to the map, the person is still hidden.

Edit: I solved the issue, was just a case of forgetting to put checkflag in the part of my script that checks for gender...

But now I have a new problem; right before the warp happens, if the player spams start button + a, they can get into the menu before the warp completes, and this will glitch the game out. The music stops playing, scripts in the level bugs out..

Any idea how I can write the code to make it not possible to do this glitch?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 10th, 2018 (6:15 AM). Edited May 10th, 2018 by Raflo75.
Raflo75's Avatar
Raflo75 Raflo75 is offline
 
Join Date: Feb 2017
Location: Spain
Gender: Male
Nature: Brave
Posts: 17
In your script you must add a showsprite command after the clearflag for reappear the sprite.


clearflag 0x159
showsprite 0x(sprite)
setvar 0x4059 0x0
warp 0x1 0x6F 0xFF 0x3 0x11
end
__________________
Pokémon Litio
Made by me (darkeon75)
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.