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

Code: Ability Resource Thread

I just don't know how to extract: [

Now I do '-'

I did it so that I applied a patch on a clean rom and checked the offset to these skills in the info file, then I just copied the bytes changing the offsets and putting in to my hack... I care about Anger Point, but no one has yet written a separate script for this ability... Hope you understand because my English is poor :D
 
I did it so that I applied a patch on a clean rom and checked the offset to these skills in the info file, then I just copied the bytes changing the offsets and putting in to my hack... I care about Anger Point, but no one has yet written a separate script for this ability... Hope you understand because my English is poor :D

I already have Anger Point.
I lack Rivalry so I can make them all available.
 
Last edited:
I already have Anger Point.
I lack Rivalry so I can make them all available.

Tried to get this ability out of this patch, but couldn't find an offset on the rom, besides found that the competition wasn't working (I think)
 
Pixilate, Refrigerate, Aerialate, Galvanize and a version for every other type (except normal):

So after quite a bit of annoying fiddling with the ASM for these abilities that are in this thread, it seems they didn't work. So I instead searched for a similar piece of hex asm code in Pokemon Gaia, since I know these abilities worked there. And as it turns out, I managed to extract it pretty well.
However, there are a few quirks that you should know about using these (do note that I have very little knowledge about ASM, so fixing these faults is impossible for me):
Spoiler:

The code and insertion
Spoiler:


If anyone encounters any bugs with these, point them out. While I can't fix them, I could at least add them to the pile of quirks that people should worry about.

EDIT: There was a major bug that made the damage increase apply to every single attack in the game (regardles if the pokemon had any of these abilities), but it was fixed since then.
 
Last edited:
Regenerator does not work in my Emerald hack.

Here was the ASM code I used:
Spoiler:


Images of the code I put in:
[PokeCommunity.com] Ability Resource Thread

I put the code at 0xe4f6e0.

Here are the bytes I changed:
[PokeCommunity.com] Ability Resource Thread


I looked through the thread for other people struggling to put Regenerator in their hacks, and not a single fix was mentioned. Switching out does not freeze the game, but it does not restore HP.
 
Something cool I've been thinking about would be to update the Run Away ability to let you switch out against trapping abilities (Shadow Tag, Arena Trap, Magnet Pull) and moves (Block, Mean Look, Spider Web, Ingrain, Binding moves).

Doesn't sound too hard although I have zero experience with ASM.
 
Quick Feet [ Fire Red ]
Description: Ups Speed if suffering.

Source: Extracted from 649-Patch and Compared to MrDS/Leon Rom Base

Spoiler:


Spoiler:


Spoiler:


Spoiler:


Compiled + Fix:

Routine 1 @ at 014DB0 insert 00 48 00 47 XX+1 XX XX 08
Code:
20 1C FE B4 02 1C 20 30 4C 32 00 78 [COLOR="Red"]id[/COLOR] 28 0B D1 12 68 00 2A 08 D0 96 21 E0 88 48 43 64 21 00 F0 15 F8 FE BC 03 1C 02 E0 FE BC E0 88 43 43 08 4A 1B 21 61 56 49 00 88 18 00 78 58 43 01 32 89 18 09 78 00 F0 03 F8 80 46 02 48 00 47 02 4A 10 47 AD DE 25 08 CF 4D 01 08 19 40 1E 08

Routine 2 @ at 014E48 insert 00 48 00 47 XX+1 XX XX 08
Code:
58 20 4B 46 58 43 20 31 40 18 00 78 [COLOR="Red"]id[/COLOR] 28 07 D0 58 20 4B 46 58 43 2C 31 40 18 00 68 01 49 08 47 00 20 FB E7 57 4E 01 08

Routine 3 @ at 014E8C insert 00 48 00 47 XX+1 XX XX 08
Code:
20 1C FE B4 02 1C 20 30 4C 32 00 78 [COLOR="Red"]id[/COLOR] 28 0B D1 12 68 00 2A 08 D0 96 21 E0 88 48 43 64 21 00 F0 16 F8 FE BC 03 1C 03 E0 FE BC E0 88 47 43 3B 1C 08 4A 1B 21 61 56 49 00 88 18 00 78 58 43 01 32 89 18 09 78 00 F0 03 F8 07 1C 03 48 00 47 03 4A 10 47 C0 46 AD DE 25 08 AD 4E 01 08 19 40 1E 08

Routine 4 @ at 014F28 insert 00 48 00 47 XX+1 XX XX 08
Code:
58 20 51 46 48 43 11 1C 20 31 40 18 00 78 [COLOR="Red"]id[/COLOR] 28 08 D0 58 20 51 46 48 43 11 1C 4C 31 40 18 00 68 01 49 08 47 00 20 FB E7 39 4F 01 08
 
Last edited:
Skill Link [ Fire Red ] (Alternative)
Description: Multi-hit moves hit five times.

Source: Extracted from 649-Patch

Spoiler:


Compiled:

@ at 0281D4 insert 00 47
@ at 0281E4 insert XX+1 XX XX 08
Code:
0C 48 00 68 41 78 00 29 0C D1 08 48 00 78 58 21 48 43 07 49 40 18 00 78 [COLOR="Red"]id[/COLOR] 28 01 D1 05 21 01 E0 06 4C 20 47 04 48 01 70 05 49 08 47 6B 3D 02 02 04 3C 02 02 74 3D 02 02 72 3D 02 02 ED 81 02 08 07 82 02 08
 
Last edited:
Adaptability [ Fire Red ] (Requires Physical/Special/Status Split)
Description: Boosts same type attacks.

Source: Extracted from MrDS/Leon Rom Base

@ at 03F2B8 insert 02
@ at 03F2C0 insert :
Code:
09 98 04 78[COLOR="Red"] id [/COLOR]2C 16 D1 B1 1C C8 7F 49 46 48 45 04 D0 F1 1C C8 7F 49 46 48 45 0C D1 80 20 78 43 60 21 A4 F1 99 FE 07 1C 40 46 80 21 48 43 60 21 A4 F1 92 FE 80 46 4F E0 00 00 00 00
 
Anger Point [ Fire Red ]
Description: Maxes Attack after a critical hit.

Spoiler:
 
Last edited:
WARNING. I may just be an ultimate noob and asking something stupid because this is my first time trying out ASM editing lol.

Hey I want to know how to insert this part of the Tangled Feet Code:

Insert 00 49 08 47 xx xx xx 08 at 0801E0DC

I don't understand where its asking me to insert it as just now I tried and all I got was the rival not battling despite the cutscene playing out. I understand slightly on how to insert ASM code into my rom since I did it with Sturdy and that was successful, so I thought inserting tangled feet would be fine but it just failed. I battled several rattata with confuse ray and not once did they miss me. Is there something I'm not getting? I was using Firered by the way.

I should also note that I inserted the string above to 0801E0 because I thought that I needed to insert it at the place coloured. It's also likely that I just got unlucky with the rattata's not missing me (just like competive battling) and I was right in my instincts but i just want to know if anyone is having the same issue with me.
 
Last edited:
WARNING. I may just be an ultimate noob and asking something stupid because this is my first time trying out ASM editing lol.

Hey I want to know how to insert this part of the Tangled Feet Code:

Insert 00 49 08 47 xx xx xx 08 at 0801E0DC

I don't understand where its asking me to insert it as just now I tried and all I got was the rival not battling despite the cutscene playing out. I understand slightly on how to insert ASM code into my rom since I did it with Sturdy and that was successful, so I thought inserting tangled feet would be fine but it just failed. I battled several rattata with confuse ray and not once did they miss me. Is there something I'm not getting? I was using Firered by the way.

I should also note that I inserted the string above to 0801E0 because I thought that I needed to insert it at the place coloured. It's also likely that I just got unlucky with the rattata's not missing me (just like competive battling) and I was right in my instincts but i just want to know if anyone is having the same issue with me.

inverted routine:

example:

Routine - 800000 + 1= 800001 - inverted 80 00 01 - 01 00 80 08


01 00 80 08 - xx xx xx 08

01E0DC: 00 49 08 47 xx xx xx 08

01E0DC: 00 49 08 47 01 00 80 08
 
inverted routine:

example:

Routine - 800000 + 1= 800001 - inverted 80 00 01 - 01 00 80 08


01 00 80 08 - xx xx xx 08

01E0DC: 00 49 08 47 xx xx xx 08

01E0DC: 00 49 08 47 01 00 80 08

BRROOOOOOOOOO!

Thank you so much I was so lost lol. I do wonder tho why the 0801E0 but I suppose it doesn't matter. Cheers for teaching me.
 
Gluttony [ Fire Red ]
Description: Eats Berries early.

Spoiler:


Compiled:

@ Credits to blackuser
@ at 01BCDC insert 00 48 00 47 XX+1 XX XX 08 A1 46
Code:
58 20 50 43 40 18 20 30 01 78 C0 89 05 90 [COLOR="Red"]id[/COLOR] 29 10 D1 A8 28 0B D0 A9 28 09 D0 AA 28 07 D0 AB 28 05 D0 AC 28 03 D0 AD 28 01 D0 AE 28 02 D1 02 24 01 49 08 47 01 49 08 47 E5 BC 01 08 E7 BC 01 08
 
Pastel Veil [ Fire Red ]
Description: Protects team from poison.

Spoiler:
 
Ice Body is written up at the moment but it's part of a huge set of routines so it might be a while. Magician I haven't looked into but I imagine it can go into the table that KDS did for the Life Orb thing.

So the Speed and Priority abilities are something I've had written up for awhile but since edited because of KDS and Kleenex's rewrite of the Turn Order Loader. This routine has new items included in it as well, and a few moves such as Trick Room and Tailwind.

Prankster, Gale Wings, Stall, Sand Rush, Slow Start and Quick Feet

Spoiler:

Has anyone noticed and/or fix the Turn Order Loader?
For some reason disables Chlorophyll and Swift Swim

@Fix
change
add r2, r2, r6
to
mov r2, r6
 
Last edited:
Intimidate Update.

As well as having no Emerald implementation included, this also gets rid of the "X's ability prevents Y's Intimidate from working." as well as it also breaking Shield Dust in that it freezes when sent out against the Intimidate mon. From comparing it to the original battle script using HMA, I managed to not only fix those issues but also shorten it to the necessary things so that there's not much issues with trying to copy-paste all of it.

Fire Red
Spoiler:


Emerald
Spoiler:
 
Last edited:
Tinted Lens, Solid Rock, Filter (+ Expert Belt)

Spoiler:


I have slightly updated Mold Breaker using MrDS's Emerald Ports for this routine. The old routines also work perfectly fine but the new one's are optimized and more understandable.
I know this is from 2015, but I tested this and it did not work. Do I need something like the Physical/Special split?
 
Back
Top