MrDollSteak

Formerly known as 11bayerf1

Age 24
Male
Hong Kong
Online now
Posted May 15th, 2019
846 posts
10.7 Years
Has anyone discovered or even have a clue on how would one go about making entirely new 'personal'-based item effects e.g Thick Club, Light Ball? Where would the check be located that indicates that the specific Pokemon is eligible to receive that stat boost so that it can be changed to another Pokemon? Like perhaps for example, making it so Seaking could use DeepSeaScale instead of Clamperl?
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.