• 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

39
Posts
5
Years
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
 

Dreamaker

Banned
97
Posts
14
Years
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:
39
Posts
5
Years
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)
 

Manekimoney

Banned
169
Posts
6
Years
  • Age 25
  • Seen Jan 18, 2024
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:
135
Posts
4
Years
  • Age 33
  • Seen Apr 26, 2024
Regenerator does not work in my Emerald hack.

Here was the ASM code I used:
Spoiler:


Images of the code I put in:
unknown.png

I put the code at 0xe4f6e0.

Here are the bytes I changed:
unknown.png


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.
 

Akiak

dreamin'
86
Posts
10
Years
  • Age 28
  • Seen Apr 10, 2024
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.
 

Dreamaker

Banned
97
Posts
14
Years
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:

Dreamaker

Banned
97
Posts
14
Years
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:

Dreamaker

Banned
97
Posts
14
Years
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
 

Dreamaker

Banned
97
Posts
14
Years
Anger Point [ Fire Red ]
Description: Maxes Attack after a critical hit.

Spoiler:
 
Last edited:

yowokubo

Himbo Hunter
12
Posts
3
Years
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:
81
Posts
7
Years
  • Age 30
  • Seen today
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
 

yowokubo

Himbo Hunter
12
Posts
3
Years
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.
 

Dreamaker

Banned
97
Posts
14
Years
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
 

Dreamaker

Banned
97
Posts
14
Years
Pastel Veil [ Fire Red ]
Description: Protects team from poison.

Spoiler:
 

Dreamaker

Banned
97
Posts
14
Years
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:
7
Posts
4
Years
  • Age 32
  • Seen yesterday
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:
135
Posts
4
Years
  • Age 33
  • Seen Apr 26, 2024
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