The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Item not disappearing?

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 July 26th, 2015 (8:56 AM).
Rockoria Rockoria is offline
 
Join Date: Jan 2015
Posts: 97
Hello!

I've come to a rather annoying problem. I have an item (standard Pokéball you find lying around) with this script attached to it:

Quote:
#dynamic 0x3B9FE0
#org @start
lock
msgbox @1 0x3
setflag 0x820
fanfare 0x13E
msgbox @2 0x4
waitfanfare
closeonkeypress
hidesprite 0x1
setflag 0x200
release
end

#org @1
= [...]What's this?\pIt's a Gym Badge!

#org @2
= \v\h01 recieved the\nBOULDER BADGE!
In Advance Map I have Person ID set to 0200 as it should be. However, while the rest of the script works, the Pokéball does not disappear! I can't figure out the problem, either, and have wasted one too many bytes of free space trying to fix it myself. Thank you!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 26th, 2015 (11:21 AM).
Navenatox's Avatar
Navenatox Navenatox is offline
 
Join Date: Jan 2015
Location: Austria
Age: 28
Gender: Male
Posts: 76
The only thing I can think of is that hidesprite has the wrong number. Are you sure you put the person event number there? It's the one below the 'Delete event' button in AdvanceMap. This is the number you have to take for any person related script command.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 26th, 2015 (12:25 PM).
Rockoria Rockoria is offline
 
Join Date: Jan 2015
Posts: 97
Quote:
Originally Posted by Navenatox View Post
The only thing I can think of is that hidesprite has the wrong number. Are you sure you put the person event number there? It's the one below the 'Delete event' button in AdvanceMap. This is the number you have to take for any person related script command.
What do you mean it's the wrong number? The event number is just 2, so should it be hidesprite 0x2?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 26th, 2015 (12:37 PM).
Alexander Nicholi's Avatar
Alexander Nicholi Alexander Nicholi is offline
work hard, play hard
 
Join Date: Nov 2009
Location: Research Triangle / Jakarta
Age: 25
Gender: Male
Nature: Adamant
Posts: 5,498
Quote:
Originally Posted by Rockoria View Post
What do you mean it's the wrong number? The event number is just 2, so should it be hidesprite 0x2?
That's it. Also, be sure to address the Person Event No, not the data number. You can differentiate between whether they're zero-indexed; you want the one that is not.
__________________
the beat goes on (ノ^o^;)ノ
ヽ(;^o^ヽ) the beat goes on
the beat goes on (ノ^o^;)ノ
ヽ(;^o^ヽ) the beat goes on
( don’t stop the groovin’ )
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old July 26th, 2015 (1:08 PM).
Rockoria Rockoria is offline
 
Join Date: Jan 2015
Posts: 97
Quote:
Originally Posted by Nick View Post
That's it. Also, be sure to address the Person Event No, not the data number. You can differentiate between whether they're zero-indexed; you want the one that is not.
Okay, thank you very much! Sorry, I'm new to this, still have a lot to learn :p
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 2:26 AM.