The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Script help... again....

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 April 17th, 2020 (7:53 AM).
acetrainereddie acetrainereddie is offline
 
Join Date: Jan 2019
Posts: 16
Code:
'---------------
#org 0x8000D7
fanfare 0x13E
giveitem 0xD 0x1 MSG_OBTAIN
waitfanfare
hidesprite 3
setflag 0x4F
release
end
This script doesn't work as intended. When I walk away, it reappears. I have the person id set to the flag, but nothing. Any help would be appreciated. Thanks.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 17th, 2020 (9:28 AM). Edited April 17th, 2020 by Pyxal.
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Quote:
Originally Posted by acetrainereddie View Post
Code:
'---------------
#org 0x8000D7
fanfare 0x13E
giveitem 0xD 0x1 MSG_OBTAIN
waitfanfare
hidesprite 3
setflag 0x4F
release
end
This script doesn't work as intended. When I walk away, it reappears. I have the person id set to the flag, but nothing. Any help would be appreciated. Thanks.

Fixed.
Code:
'---------------
#org 0x8000D7
fanfare 0x13E
giveitem 0xD 0x1 MSG_OBTAIN
waitfanfare
hidesprite 0x3
setflag 0x4F
release
end
You just missed to do "hidesprite 0x3".
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old April 17th, 2020 (10:06 AM).
acetrainereddie acetrainereddie is offline
 
Join Date: Jan 2019
Posts: 16
I've done 0x3 before but it still reappears iirc.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old April 17th, 2020 (3:30 PM). Edited April 17th, 2020 by Z-Max.
Z-Max Z-Max is offline
 
Join Date: Sep 2015
Location: France
Gender: Male
Nature: Quirky
Posts: 60
It's weird, I've just tried your script and it works, the item doesn't reappear (I only changed MSG_OBTAIN by 0x1). I may be wrong but it can be due to a problem with the person number in your map. Did you try your script in another map ?
If it works in the other maps, then maybe there is an issue with the order of person numbers on your current map. The person numbers must go from 1 to 5 if there are 5 people for example. If one of them is 6, it may cause this kind of issue.
I already met this problem in the past after removing people and messing with people numbers, but I'm not sure if that's the cause of your glitch. Otherwise, try another flag, I don't know...
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old April 17th, 2020 (10:49 PM).
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Quote:
Originally Posted by acetrainereddie View Post
I've done 0x3 before but it still reappears iirc.
Then there must be some other flag "0x4F" clashing with your script. Try setting the flag somewhere between 0x200 - 0x2FF.
These are the only available in the game. Any other flag used slowly breaks the game.
__________________
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old April 18th, 2020 (3:45 AM).
acetrainereddie acetrainereddie is offline
 
Join Date: Jan 2019
Posts: 16
Quote:
Then there must be some other flag "0x4F" clashing with your script. Try setting the flag somewhere between 0x200 - 0x2FF.
These are the only available in the game. Any other flag used slowly breaks the game.
Worked, thanks a lot :)
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old April 18th, 2020 (4:23 AM).
kalarie kalarie is offline
 
Join Date: Jun 2008
Posts: 760
@acetrainereddie
There are actually more flags available, check this source to see where Fire Red flags are used in Vanilla Fire Red.

@Pokechu
Although you're a little right about flag 0x200 - 0x2FF, what you say is not all true and based on pretty old research. The statement in karatekid552's thread to only use flag 0x200 to 0x2FF was just to keep things from getting complicated. Saying that ''the game will slowly break when using other flags'' and that ''those are the only available in the game'' is plainly false.
Check the documentation on pokefirered I sent to @acetrainereddie to see a (nearly) completed list of all flags available in Fire Red or check Karatedkid522's full findings on where which flags are used.
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old April 19th, 2020 (7:21 AM).
Pyxal's Avatar
Pyxal Pyxal is offline
It's pronounced pixel.
 
Join Date: Jul 2019
Location: Pakistan
Age: 17
Posts: 987
Quote:
Originally Posted by kalarie View Post
@acetrainereddie
There are actually more flags available, check this source to see where Fire Red flags are used in Vanilla Fire Red.

@Pokechu
Although you're a little right about flag 0x200 - 0x2FF, what you say is not all true and based on pretty old research. The statement in karatekid552's thread to only use flag 0x200 to 0x2FF was just to keep things from getting complicated. Saying that ''the game will slowly break when using other flags'' and that ''those are the only available in the game'' is plainly false.
Check the documentation on pokefirered I sent to @acetrainereddie to see a (nearly) completed list of all flags available in Fire Red or check Karatedkid522's full findings on where which flags are used.
Ugh... Every information is wrong or misleading. Thank you for the clarification.
__________________
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:19 AM.