• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.

HMs Script Bufferpokemon issue?

  • 11
    Posts
    4
    Years
    • Seen Aug 21, 2024
    For the animation it's showing the ? Sprite I feel like I'm forgetting something. Any help appreciated.


    bufferpokemon 0x0 0x122
    setanimation 0x0 LASTRESULT
    bufferattack 0x1 0xF
    msgbox 0x81BDF94 MSG_YESNO '"This tree looks like it can be Cut..."
    compare LASTRESULT 0x0
    if 0x1 goto 0x81BDF91
    msgbox 0x81BDFD7 MSG_KEEPOPEN '"[buffer1] used [buffer2]!"
    closeonkeypress
    doanimation 0x2
    waitstate
    goto 0x81BDF76
     
    If this is all the code you're using, you haven't actually set LASTRESULT to the correct slot. bufferpokemon does not do this automatically. Set it to an actual slot and see if that fixes it

    Do you mean like this? If so it softlocks the rom.

    *Rest of my code are just checks

    @ask
    bufferpokemon 0x0 0x122 //---Joltik in my case
    setvar 0x4001 0x122
    setanimation 0x0 0x4001
    msgbox 0x81BDF94 MSG_YESNO '"This tree looks like it can be Cut..."
    compare LASTRESULT 0x0
    if 0x1 goto 0x81BDF91
    msgbox 0x81BDFD7 MSG_KEEPOPEN '"Joltik used Cut!"
    closeonkeypress
    doanimation 0x3
    waitstate
    goto 0x81BDF76
     
    Last edited:
    Back
    Top