The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script XSE Error: "Type Mismatch on Line 21. Missing #define"

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 June 20th, 2018 (1:13 PM). Edited June 20th, 2018 by AbsoluteJustice.
AbsoluteJustice AbsoluteJustice is offline
 
Join Date: Jun 2018
Posts: 3
Don't want to keep bugging the community but this one's got me stumped, because I really can't see what's wrong with the script. I put it in the Spoliers box and pointed out Line 21.

Spoiler:


#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @done
msgbox @3 0x6
release
end

#org @take
giveitem 0x4 0x1 MSG_OBTAIN THIS IS LINE 21 BTW
msgbox @3 0x6
setflag 0x200
release
end

#org @1
= Do you plan on catching any\nPokémon ahead?

#org @2
= Suit yourself. \pAnd here I was ready to give out\nfree Pokéballs...

#org @3
= Did you know Pokéballs have variants? \pGreat Balls and Ultra Balls are\njust a couple of 'em!



Very strange. Happens when I try to compile it btw
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old June 20th, 2018 (1:59 PM).
Karl's Avatar
Karl Karl is offline
Creator of Pokémon Darkfire
 
Join Date: Nov 2010
Location: London, UK
Gender: Male
Nature: Calm
Posts: 168
Seems like you may be missing the "std.rbh" file that contains the original definition for the variable MSG_OBTAIN, which is, by default, 0x0.

Either investigate the std.rbh file in the same folder or try changing 'MSG_OBTAIN' to '0x0'.
__________________

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