- 7
- Posts
- 7
- Years
- Seen Mar 22, 2020
So I recently imported the script for the dawn stone into Fire red. I re-pointed the original evolution method table, extended the limiter from 15 to 17, and added 2 new entries (1 for a male dawn stone and the other for a female dawn stone) at the end of the new table pointing the compiled version of this script:
.org 0x4318e
lsl r0, r0, #0x0
ldr r2, .MethodAddr
bx r2
.MethodAddr: .word 0x08780241
.org 0x780240
cmp r0, #0x7
beq StandardStone
cmp r0, #0x16
beq MaleStone
cmp r0, #0x17
beq FemaleStone
b NoEvo
MaleStone:
push {r1-r3}
mov r0, r7
mov r1, r8
ldr r1, [r1, #0x0]
bl DetermineGender
pop {r1-r3}
cmp r0, #0x0
beq StandardStone
b NoEvo
FemaleStone:
push {r1-r3}
mov r0, r7
mov r1, r8
ldr r1, [r1, #0x0]
bl DetermineGender
pop {r1-r3}
cmp r0, #0xFE
beq StandardStone
b NoEvo
StandardStone:
ldrh r0, [r1, #0x2]
cmp r0, r9
beq Finish
NoEvo:
ldr r2, .NoEvoReturn
bx r2
DetermineGender:
ldr r2, .DetermineGenderFunc
bx r2
Finish:
ldr r2, .EvoReturn
bx r2
.NoEvoReturn: .word 0x08043199
.EvoReturn: .word 0x0804317d
.DetermineGenderFunc: .word 0x0803f78d
Despite putting them in, the game reads no evolution for a male kirlia when I attempt to use a dawn stone on it. I added the methods into pge's Ini into their respective 16 and 17 slots but it still does not function in game. Any ideas?
.org 0x4318e
lsl r0, r0, #0x0
ldr r2, .MethodAddr
bx r2
.MethodAddr: .word 0x08780241
.org 0x780240
cmp r0, #0x7
beq StandardStone
cmp r0, #0x16
beq MaleStone
cmp r0, #0x17
beq FemaleStone
b NoEvo
MaleStone:
push {r1-r3}
mov r0, r7
mov r1, r8
ldr r1, [r1, #0x0]
bl DetermineGender
pop {r1-r3}
cmp r0, #0x0
beq StandardStone
b NoEvo
FemaleStone:
push {r1-r3}
mov r0, r7
mov r1, r8
ldr r1, [r1, #0x0]
bl DetermineGender
pop {r1-r3}
cmp r0, #0xFE
beq StandardStone
b NoEvo
StandardStone:
ldrh r0, [r1, #0x2]
cmp r0, r9
beq Finish
NoEvo:
ldr r2, .NoEvoReturn
bx r2
DetermineGender:
ldr r2, .DetermineGenderFunc
bx r2
Finish:
ldr r2, .EvoReturn
bx r2
.NoEvoReturn: .word 0x08043199
.EvoReturn: .word 0x0804317d
.DetermineGenderFunc: .word 0x0803f78d
Despite putting them in, the game reads no evolution for a male kirlia when I attempt to use a dawn stone on it. I added the methods into pge's Ini into their respective 16 and 17 slots but it still does not function in game. Any ideas?