The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Give item command problem

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 9th, 2017 (12:49 PM). Edited May 11th, 2017 by ASDBUDDY.
ASDBUDDY's Avatar
ASDBUDDY ASDBUDDY is offline
The Derp
 
Join Date: Apr 2017
Location: aint gonna tell ya
Age: 22
Gender: Male
Nature: Docile
Posts: 347
Hi so, whilst making this script i got an error when I tried compiling it
on line 18 aka giveitem command and the problem is occuring in MSG_OBTAIN as when I replace it with 0x1 it compiles fine, but i guess 0x1 is for item found not obtained. Any thoughts of what I might be doing wrong?

Code:
Spoiler:
#dynamic 0x800000
#org @start
lock
faceplayer
checkflag 0x202
if 0x1 goto @done
checkflag 0x4B0
if 0x1 goto @bestow
msgbox @tl 0x6
release
end

#org @tl
= [blue_fr] I want to bestow my mighty rod!\p But there is no one worthy!

#org @bestow
msgbox @bb 0x6
giveitem 0x107 0x1 MSG_OBTAIN
setflag 0x202
release
end

#org @done
msgbox @done2 0x6
release
end

#org @done2
= [blue_fr] There are no Pokémon in this Pond.\pBut there are still\n many places to fish!

#org @bb
= [blue_fr] Oh! The BoulderBadge!\pFinally someone worthy of this rod!\n Here take it, it is yours now.
__________________
https://discord.gg/bEwyPd7
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old May 11th, 2017 (6:19 AM).
Christos's Avatar
Christos Christos is offline
 
Join Date: Feb 2006
Gender: Male
Nature: Serious
Posts: 6,355
0x0 is for obtained. To use MSG_OBTAIN instead you need to add '#include std.rbh' at the start of your script.
__________________

A Pokemon that is discriminated!
Support squirtle and make it everyone's favourite.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old May 11th, 2017 (6:25 AM).
ASDBUDDY's Avatar
ASDBUDDY ASDBUDDY is offline
The Derp
 
Join Date: Apr 2017
Location: aint gonna tell ya
Age: 22
Gender: Male
Nature: Docile
Posts: 347
Quote:
Originally Posted by Christos View Post
0x0 is for obtained. To use MSG_OBTAIN instead you need to add '#include std.rbh' at the start of your script.
Ok Thanks Chris.
__________________
https://discord.gg/bEwyPd7
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:14 AM.