• 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 Conquest 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.

[Script] [pokecrystal] [wCurPartyMon]: How to force loading a certain species/icon instead of a party Pokémon?

I somehow found what I was looking for, but can't get it to work.

I want the fly animation to use a specific icon instead of the [wCurPartyMon] one. Kinda found the script I was looking for in engine\gfx\mon_icons.asm at the FlyFunction_GetMonIcon script.

I inspired myself from this script trying to get it to use one specific icon:

ReadMonMenuIcon:
cp EGG
jr z, .egg
dec a
ld hl, MonMenuIcons
ld e, a
ld d, 0
add hl, de
ld a, [hl]
ret
.egg
ld a, ICON_EGG
ret

By using some functions like jr z, .bird and ld a, ICON_BIRD but looks like it loads some random icon like Poliwag or Squirtle, or random square with letters inside.

I'll continue through my research.
 
Back
Top