The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Difficulty Making a sprite disappear

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 December 24th, 2021 (4:52 AM). Edited December 24th, 2021 by Granvelg.
Granvelg Granvelg is offline
 
Join Date: Aug 2021
Posts: 1
Hello,

I recently began work on my own custom Pokemon FireRed Romhack, and got to the point where the player chooses their starter. However, I ran into difficulty with making the Pokeball disappear when the player chooses the pokemon they want.

The sprite does disappear at first, however after the player takes a step, it reappears again, making me believe it's an issue with Flags. However, I can't figure out what is wrong.

Here is the script:

#dynamic 0x800000

#org @start
lock
checkflag 0x205
if 0x1 goto @chosenpokemon
checkflag 0x206
if 0x1 goto @chosenpokemon
showpokepic 0x440 0xA 0x3
pause 0x30
msgbox @tl 0x5
compare 0x800D 0x1
if 0x1 goto @yes
hidepokepic
release
end

#org @chosenpokemon
msgbox @tl2 0x6
release
end

#org @tl
= Prof: So, You choose [green_fr]Turtwig[black_fr]?

#org @tl2
= Prof: You can't take another!

#org @yes
hidepokepic
hidesprite 0x5
setflag 0x204
givepokemon 0x1B8 0x5 0x8B 0x0 0x0 0x0
setflag 0x828
release
end


The Person ID set to the pokeball is 0204, and the person event no. is 5.

If anyone can help me figure out the issue, it'll be very appreciated!

Thank you in advance.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old December 25th, 2021 (12:40 AM).
Asith's Avatar
Asith Asith is offline
Uwao
 
Join Date: Nov 2020
Posts: 204
At first glance, your info and script seem fine. The first thing I think of is maybe the person ID isn't set to 204 as you say it is. Perhaps you're loading from a save where it is already loaded as something else. Try leaving and reentering the building before testing it.
__________________
Spectrobes, anyone?
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
Thread Tools

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:20 AM.