• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Need some scripting help

Status
Not open for further replies.
  • 2
    Posts
    14
    Years
    • Seen Aug 16, 2011
    I'm making my first hack, and I'm using LeafGreen. I accidentaly messed up Proffessor Oak's script in the lab, so I'm trying to transplant script from a clean rom, but for some reason XSE won't let me compile it. I'm as green as grass at scripting, so this may be a stupid question.

    #org 0x169571
    lock
    faceplayer
    checkflag 0x2
    if 0x1 goto 0x81695DC
    compare 0x4055 0x9
    if 0x1 goto 0x81698DF
    compare 0x4055 0x8
    if 0x1 goto 0x8169A4A
    checkflag 0x82C
    if 0x1 goto 0x81699AA
    compare 0x4052 0x1
    if 0x1 goto 0x81698DF
    compare 0x4055 0x6
    if 0x1 goto 0x81698B2
    compare 0x4057 0x1
    if 0x4 goto 0x81695FA
    compare 0x4055 0x4
    if 0x1 goto 0x81695F0
    compare 0x4055 0x3
    if 0x1 goto 0x81695E6
    msgbox 0x818E0F2 MSG_KEEPOPEN '"OAK: Now, [player].\pInside those ..."
    release
    end

    This bit of the script is what XSE says the problem is. It says the line that starts with msgbox is missing a #define? Any help? I don't see what the problem is, I'm taking it straight from a working rom...

    I might have messed up more, right now this is all XSE will tell me is wrong. If someone could give me a working script and explain what #define is, that would be great too.
     
    Wrong forum. This forum is for Game Development, you should post in the ROM Hacking forum.
     
    Wrong section. You're looking for the ROM Hacking Forum.
    Ryan Hekk, next time, just report it and one of the mods will handle it.

    -locked-
     
    Status
    Not open for further replies.
    Back
    Top