Age 30
Seen 4 Weeks Ago
Posted February 8th, 2019
416 posts
6.6 Years
Very easily. If you look at my Assault Vest / Eviolite code for the Sp. Def boost you'll notice this section before it branches back to the original routine:

        ldr r3, [sp, #0x4]
	ldrh r1, [r3]
What this does is load the Pokemon's index number into r1.

This doesn't necessarily work anywhere in the rom, but it does in the immediate item check sections that I've detailed earlier, because of the way the registers are stacked.

Ultimately it's as simple as adding new checks to cmp r1 against the index of the Pokemon you want to get the boost, then upon a successful check branching to the original routine which had the stat boost.
It sounds to me like you should be writing tutorials on how to ASM lol