Registrarse

[Rutina] [ASM] some Information about "Chain Moves"

jiangzhengwenjz

Usuario mítico
First of all, chain moves are moves like "Bullet Seed". I have successfully expanded it so that it can support up to 99 hits. Actually, after some back trace, i have found that we can change battle script command 0x8d & 0x8e to hack it, so the modification will be veeeeeeeeery simple.

Secondly, this hack will only be compatible with Pokemon Firered USA (BPRE).

Then the first hack which will expand the number of digits shown on the screen:
First put this code at 0x28224:
Código:
00 48 00 47 XX XX XX XX 00 00
XX XX XX XX is the pointer to the following routine: (+1 for thumb mode)
Código:
.thumb
.align 2
mov r0, #0x1
strb r0, [r1, #9]
strb r0, [r1, #0xa]
strb r2, [r1, #0xc]
mov r0, #0x2 @This is the number of digits
strb r0, [r1, #0xb]
ldr r0, =0x802822f
bx r0
Then you can modify another battle script command to expand it:
(This is only a not perfect example, you can make it more complex to adjust the probability yourself)
Write these codes at 0x281f2:
Código:
[1 byte - maximum number] 25 28 40 [1 byte - minimum number] 28 F9 DB 20 70 00 00 00 00 00 00 00 00 00 00
That's all of it. I know it's very simple, but I am not a veteran hacker (I do not know many things) and I do not have much time...

Hope you like it! '^^
 

Jaizu

Usuario mítico
Looks simple but pretty useful, thanks a lot mate.
Just two questions;
Will you port it for Emerald?
Do we require this for any new attack of new gens?
 

jiangzhengwenjz

Usuario mítico
Re: Respuesta: [ASM] some Information about "Chain Moves"

Looks simple but pretty useful, thanks a lot mate.
Just two questions;
Will you port it for Emerald?
Do we require this for any new attack of new gens?
1. No, I know nothing about EM & RUBY. :( (Although maybe we can find the cmd table, I don't have desire to do it)
2. I think this will work for any chain moves, this is judged by their move effect script (which use BS commands like setloopcounter). But I have only tested it on bullet seed.:)
 
Arriba