The PokéCommunity Forums Fan Games ROM Hacking
Script XSE Error: "Type Mismatch on Line 21. Missing #define"

ROM Hacking Need a helping hand? You can get help on any ROM Hacking-related problems or questions you have here.

Reply
 
Thread Tools
  #1    
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    
    Old June 20th, 2018 (1:59 PM).
    Synonym's Avatar
    Synonym Synonym is offline
    Creator of Pokémon Darkfire
       
      Join Date: Nov 2010
      Location: London, UK
      Gender: Male
      Posts: 18
      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
      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 4:01 AM.