• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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.

[ASM & Hex] Lapras ride in FireRed

Okay. How could I make a Lapras sprite show up during the "use" animation? If I can't do that, how can I disable it?

You should take a look at the existing Surf script. It sets the appropriate Pokemon into a buffer and then uses that when it calls the animation command. Just find where it sets the buffer and hijack it to set Lapras instead.
 
I've been trying that. Apparently, it determines what Pokemon the animation uses from the checkattack command. I tried different combinations of bufferpokemon, bufferpartypokemon, and
setanimation in XSE, and no combination did it for me.
I'm guessing there is an ASM routine in the game that has a line where the Surf overworld sprite index is called on. In its place you could probably put a routine that checks if you are using the Lapras item, and if so then it branches off to an alternate routine that uses the different sprite index, and otherwise goes to the normal Surf routine.
 
I've been trying that. Apparently, it determines what Pokemon the animation uses from the checkattack command. I tried different combinations of bufferpokemon, bufferpartypokemon, and
setanimation in XSE, and no combination did it for me.

As I mentioned in the discord, I reverse engineered this stuff a few years ago, just no longer remember how. Recently, I found my old mediafire account and my old hack was in there coincidentally. I thought of you and decompiled some of the scripts which utilized this. Here is what I got:
writebytetooffset 0x11 0x20386E0
writebytetooffset 0x0 0x20386E1
writebytetooffset 0x0 0x20386E2
writebytetooffset 0x0 0x20386E3
This makes Pidgeotto appear for animation, I guess that's where the buffer is. Try it out!
 
Back
Top