• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
3
Years
    • Seen Apr 10, 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
     

    Asith

    Uwao
    237
    Posts
    3
    Years
    • Seen Apr 13, 2024
    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
     
    11
    Posts
    3
    Years
    • Seen Apr 10, 2024
    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:

    Asith

    Uwao
    237
    Posts
    3
    Years
    • Seen Apr 13, 2024
    No, setanimation doesn't use a species number. It uses a party slot number
     
    Back
    Top