Conversation Between kleenexfeu and Super Versekr Dark
Showing Visitor Messages 1 to 15 of 16
-
May 9th, 2020 8:38 AMSuper Versekr DarkIn short, this routine is not for that; (
-
May 8th, 2020 7:02 PMkleenexfeuIt means the routine must probably be rewritten, I haven't looked back at what it does yet
One last thing you can try is removing the two first indexes at the beginning of silvally/eevee tables, the "SilvallyNormal, SilvallyNormal,"
Otherwise you'd have to change the routine to account for you new forms -
May 8th, 2020 9:37 AMSuper Versekr DarkI don't switch to pokemon, well yes but to arceus:
Spoiler:.thumb
.thumb_func
.equ GriseousIndex, 0x1AA
.equ GiratinaIndex, 0x21C
.equ GiratinaOIndex, 0x483
.equ ArceusNormal, 0x222
.equ FistPlateIndex, 0x1AB
.equ ArceusFight, 0x484
.equ SkyPlateIndex, 0x1AC
.equ ArceusFly, 0x485
.equ ToxicPlateIndex, 0x1AD
.equ ArceusPoison, 0x486
.equ EarthPlateIndex, 0x1AE
.equ ArceusGround, 0x487
.equ StonePlateIndex, 0x1AF
.equ ArceusRock, 0x488
.equ InsectPlateIndex, 0x1B0
.equ ArceusBug, 0x489
.equ SpookyPlateIndex, 0x1B1
.equ ArceusGhost, 0x48A
.equ IronPlateIndex, 0x1B2
.equ ArceusSteel, 0x48B
.equ FlamePlateIndex, 0x1B3
.equ ArceusFire, 0x48C
.equ SplashPlateIndex, 0x1B4
.equ ArceusWater, 0x48D
.equ ZapPlateIndex, 0x1B5
.equ ArceusElectric, 0x48E
.equ MeadowPlateIndex, 0x1B6
.equ ArceusGrass, 0x48F
.equ IciclePlateIndex, 0x1B7
.equ ArceusIce, 0x490
.equ DracoPlateIndex, 0x1B8
.equ ArceusDragon, 0x491
.equ DreadPlateIndex, 0x1B9
.equ ArceusDark, 0x492
.equ PixiPlateIndex, 0x1BB
.equ ArceusFairy, 0x4BE
.equ MindPlateIndex, 0x1BA
.equ ArceusPsychic, 0x493
.equ SilvallyNormal, 0x33F
.equ FistSILVALLYITEMIndex, 0x1AB
.equ SilvallyFight, 0x4BF
.equ SkySILVALLYITEMIndex, 0x1AC
.equ SilvallyFly, 0x4C0
.equ ToxicSILVALLYITEMIndex, 0x1AD
.equ SilvallyPoison, 0x4C1
.equ EarthSILVALLYITEMIndex, 0x1AE
.equ SilvallyGround, 0x4C2
.equ StoneSILVALLYITEMIndex, 0x1AF
.equ SilvallyRock, 0x4C3
.equ InsectSILVALLYITEMIndex, 0x1B0
.equ SilvallyBug, 0x4C4
.equ SpookySILVALLYITEMIndex, 0x1B1
.equ SilvallyGhost, 0x4C5
.equ IronSILVALLYITEMIndex, 0x1B2
.equ SilvallySteel, 0x4C6
.equ FlameSILVALLYITEMIndex, 0x1B3
.equ SilvallyFire, 0x4C7
.equ SplashSILVALLYITEMIndex, 0x1B4
.equ SilvallyWater, 0x4C8
.equ ZapSILVALLYITEMIndex, 0x1B5
.equ SilvallyElectric, 0x4C9
.equ MeadowSILVALLYITEMIndex, 0x1B6
.equ SilvallyGrass, 0x4CA
.equ IcicleSILVALLYITEMIndex, 0x1B7
.equ SilvallyIce, 0x4CB
.equ DracoSILVALLYITEMIndex, 0x1B8
.equ SilvallyDragon, 0x4CC
.equ DreadSILVALLYITEMIndex, 0x1B9
.equ SilvallyDark, 0x4CD
.equ PixiSILVALLYITEMIndex, 0x1BB
.equ SilvallyFairy, 0x4CE
.equ MindSILVALLYITEMIndex, 0x1BA
.equ SilvallyPsychic, 0x4CF
.equ EeveeNormal, 0x85
.equ FistEEVEEITEMIndex, 0x1AB
.equ EeveeFight, 0x4B3
.equ SkyEEVEEITEMIndex, 0x1AC
.equ EeveeFly, 0x4B7
.equ ToxicEEVEEITEMIndex, 0x1AD
.equ EeveePoison, 0x4B8
.equ EarthEEVEEITEMIndex, 0x1AE
.equ EeveeGround, 0x4BC
.equ StoneEEVEEITEMIndex, 0x1AF
.equ EeveeRock, 0x4BB
.equ InsectEEVEEITEMIndex, 0x1B0
.equ EeveeBug, 0x4B6
.equ SpookyEEVEEITEMIndex, 0x1B1
.equ EeveeGhost, 0x4BA
.equ IronEEVEEITEMIndex, 0x1B2
.equ EeveeSteel, 0x4B9
.equ FlameEEVEEITEMIndex, 0x1B3
.equ EeveeFire, 0x88
.equ SplashEEVEEITEMIndex, 0x1B4
.equ EeveeWater, 0x86
.equ ZapEEVEEITEMIndex, 0x1B5
.equ EeveeElectric, 0x87
.equ MeadowEEVEEITEMIndex, 0x1B6
.equ EeveeGrass, 0x20B
.equ IcicleEEVEEITEMIndex, 0x1B7
.equ EeveeIce, 0x20C
.equ DracoEEVEEITEMIndex, 0x1B8
.equ EeveeDragon, 0x4B5
.equ DreadEEVEEITEMIndex, 0x1B9
.equ EeveeDark, 0xC5
.equ PixiEEVEEITEMIndex, 0x1BB
.equ EeveeFairy, 0x2F1
.equ MindEEVEEITEMIndex, 0x1BA
.equ EeveePsychic, 0xC4
Start:
ldrb r1, [r4]
ldrb r0, [r4, #1]
lsl r0, r0, #8
add r1, r1, r0
mov r0, r8
strh r1, [r0, #2]
push {r0-r7}
Initialising:
ldrh r2, [r0]
ldr r6, GiratinaO
cmp r2, r6
beq GrisCheck
ldr r6, Giratina
cmp r2, r6
beq GrisCheck2
LoadGivenItem:
mov r6, #6
adr r5, Table
add r5, #4
mov r7, r1
bl LoopLoad
cmp r6, #0
bne ItemInTable
ItemNotInTable:
adr r5, Table
add r5, #6
mov r6, #6
mov r7, r2
bl LoopLoad
cmp r6, #1
bne Return
ldrh r4, [r5, #2]
b Changing
GrisCheck:
ldr r6, GriseousOrb
cmp r1, r6
beq LoadGivenItem
ldr r4, Giratina
b Changing
GrisCheck2:
ldr r6, GriseousOrb
cmp r1, r6
bne LoadGivenItem
ldr r4, GiratinaO
b Changing
ItemInTable:
ldrh r3, [r5, #2]
mov r7, r2
mov r6, #6
adr r5, Table
bl LoopLoad
cmp r6, #1
bne Return
mov r4, r3
b Changing
Return:
pop {r0-r7}
Return3:
ldr r0, Back
bx r0
Return2:
ldr r0, Back2
bx r0
Changing:
strh r4, [r0]
pop {r0-r7}
ldr r3, Limit
cmp r0, r3
bhi Return3
mov r0, r7
ldr r3, pokemon_calc_checksum
bl Call
strh r0, [r7, #0x1C]
mov r0, r7
ldr r3, pokemon_encrypt
bl Call
mov r0, r7
ldr r3, pokemon_calculate_stats
bl Call
b Return2
LoopLoad:
push {lr}
Looping:
ldrh r4, [r5]
cmp r4, #0
beq Nope
cmp r4, r7
beq Yep
add r5, r6
b Looping
Nope:
mov r6, #0
pop {pc}
Yep:
mov r6, #1
pop {pc}
Call:
mov pc, r3
.align 2
GriseousOrb: .word GriseousIndex
Giratina: .word GiratinaIndex
GiratinaO: .word GiratinaOIndex
pokemon_calc_checksum: .word 0x0803E3E8+1
pokemon_encrypt: .word 0x0803F8F8+1
pokemon_calculate_stats: .word 0x0803E47C+1
Back: .word 0x08040ADA+1
Back2: .word 0x08040AEE+1
Limit: .word 0x02024540
Table:
.hword ArceusNormal, ArceusNormal, FistPlateIndex, ArceusFight, ArceusNormal, SkyPlateIndex, ArceusFly, ArceusNormal, ToxicPlateIndex
.hword ArceusPoison, ArceusNormal, EarthPlateIndex, ArceusGround, ArceusNormal, StonePlateIndex, ArceusRock, ArceusNormal, InsectPlateIndex
.hword ArceusBug, ArceusNormal, SpookyPlateIndex, ArceusGhost, ArceusNormal, IronPlateIndex, ArceusSteel, ArceusNormal, FlamePlateIndex
.hword ArceusFire, ArceusNormal, SplashPlateIndex, ArceusWater, ArceusNormal, ZapPlateIndex, ArceusElectric, ArceusNormal, MeadowPlateIndex
.hword ArceusGrass, ArceusNormal, IciclePlateIndex, ArceusIce, ArceusNormal, DracoPlateIndex, ArceusDragon, ArceusNormal, DreadPlateIndex
.hword ArceusDark, ArceusNormal, PixiPlateIndex, ArceusFairy, ArceusNormal, MindPlateIndex, ArceusPsychic, ArceusNormal
Table2:
.hword SilvallyNormal, SilvallyNormal, FistSILVALLYITEMIndex, SilvallyFight, SilvallyNormal, SkySILVALLYITEMIndex, SilvallyFly, SilvallyNormal, ToxicSILVALLYITEMIndex
.hword SilvallyPoison, SilvallyNormal, EarthSILVALLYITEMIndex, SilvallyGround, SilvallyNormal, StoneSILVALLYITEMIndex, SilvallyRock, SilvallyNormal, InsectSILVALLYITEMIndex
.hword SilvallyBug, SilvallyNormal, SpookySILVALLYITEMIndex, SilvallyGhost, SilvallyNormal, IronSILVALLYITEMIndex, SilvallySteel, SilvallyNormal, FlameSILVALLYITEMIndex
.hword SilvallyFire, SilvallyNormal, SplashSILVALLYITEMIndex, SilvallyWater, SilvallyNormal, ZapSILVALLYITEMIndex, SilvallyElectric, SilvallyNormal, MeadowSILVALLYITEMIndex
.hword SilvallyGrass, SilvallyNormal, IcicleSILVALLYITEMIndex, SilvallyIce, SilvallyNormal, DracoSILVALLYITEMIndex, SilvallyDragon, SilvallyNormal, DreadSILVALLYITEMIndex
.hword SilvallyDark, SilvallyNormal, PixiSILVALLYITEMIndex, SilvallyFairy, SilvallyNormal, MindSILVALLYITEMIndex, SilvallyPsychic, SilvallyNormal
Table3:
.hword EeveeNormal, EeveeNormal, FistEEVEEITEMIndex, EeveeFight, EeveeNormal, SkyEEVEEITEMIndex, EeveeFly, EeveeNormal, ToxicEEVEEITEMIndex
.hword EeveePoison, EeveeNormal, EarthEEVEEITEMIndex, EeveeGround, EeveeNormal, StoneEEVEEITEMIndex, EeveeRock, EeveeNormal, InsectEEVEEITEMIndex
.hword EeveeBug, EeveeNormal, SpookyEEVEEITEMIndex, EeveeGhost, EeveeNormal, IronEEVEEITEMIndex, EeveeSteel, EeveeNormal, FlameEEVEEITEMIndex
.hword EeveeFire, EeveeNormal, SplashEEVEEITEMIndex, EeveeWater, EeveeNormal, ZapEEVEEITEMIndex, EeveeElectric, EeveeNormal, MeadowEEVEEITEMIndex
.hword EeveeGrass, EeveeNormal, IcicleEEVEEITEMIndex, EeveeIce, EeveeNormal, DracoEEVEEITEMIndex, EeveeDragon, EeveeNormal, DreadEEVEEITEMIndex
.hword EeveeDark, EeveeNormal, PixiEEVEEITEMIndex, EeveeFairy, EeveeNormal, MindEEVEEITEMIndex, EeveePsychic, EeveeNormal, 0x0 -
May 8th, 2020 8:58 AMSuper Versekr Darkohhh i see
I'll try it to see if it works like this. -
May 7th, 2020 7:47 PMkleenexfeuSomething like this https://hastebin.com/qakuhapate.makefile
-
May 6th, 2020 9:51 AMSuper Versekr Darkby the way how would the modification be since I don't understand very well
-
May 6th, 2020 9:10 AMSuper Versekr DarkI tried that a long time ago, but it only worked with arceus.
-
May 6th, 2020 4:38 AMkleenexfeuWhat could work is removing the 0 at the end of the first two tables, create two new sets of items for silvally and eevee. The reason you only get arceus, is that at the time I've done this, I assumed the only mon that could be transformed through holding a plate was arceus
-
May 2nd, 2020 6:58 AMSuper Versekr DarkSpoiler:.thumb
.thumb_func
.equ GriseousIndex, 0x____
.equ GiratinaIndex, 0x____
.equ GiratinaOIndex, 0x____
.equ ArceusNormal, 0x____
.equ FistPlateIndex, 0x____
.equ ArceusFight, 0x____
.equ SkyPlateIndex, 0x____
.equ ArceusFly, 0x____
.equ ToxicPlateIndex, 0x____
.equ ArceusPoison, 0x____
.equ EarthPlateIndex, 0x____
.equ ArceusGround, 0x____
.equ StonePlateIndex, 0x____
.equ ArceusRock, 0x____
.equ InsectPlateIndex, 0x____
.equ ArceusBug, 0x____
.equ SpookyPlateIndex, 0x____
.equ ArceusGhost, 0x____
.equ IronPlateIndex, 0x____
.equ ArceusSteel, 0x____
.equ FlamePlateIndex, 0x____
.equ ArceusFire, 0x____
.equ SplashPlateIndex, 0x____
.equ ArceusWater, 0x____
.equ ZapPlateIndex, 0x____
.equ ArceusElectric, 0x____
.equ MeadowPlateIndex, 0x____
.equ ArceusGrass, 0x____
.equ IciclePlateIndex, 0x____
.equ ArceusIce, 0x____
.equ DracoPlateIndex, 0x____
.equ ArceusDragon, 0x____
.equ DreadPlateIndex, 0x____
.equ ArceusDark, 0x____
.equ PixiPlateIndex, 0x____
.equ ArceusFairy, 0x____
.equ MindPlateIndex, 0x____
.equ ArceusPsychic, 0x____
-------------------------------------
.equ SilvallyNormal, 0x____
.equ FistPlateIndex, 0x____
.equ SilvallyFight, 0x____
.equ SkyPlateIndex, 0x____
.equ SilvallyFly, 0x____
.equ ToxicPlateIndex, 0x____
.equ SilvallyPoison, 0x____
.equ EarthPlateIndex, 0x____
.equ SilvallyGround, 0x____
.equ StonePlateIndex, 0x____
.equ SilvallyRock, 0x____
.equ InsectPlateIndex, 0x____
.equ SilvallyBug, 0x____
.equ SpookyPlateIndex, 0x____
.equ SilvallyGhost, 0x____
.equ IronPlateIndex, 0x____
.equ SilvallySteel, 0x____
.equ FlamePlateIndex, 0x____
.equ SilvallyFire, 0x____
.equ SplashPlateIndex, 0x____
.equ SilvallyWater, 0x____
.equ ZapPlateIndex, 0x____
.equ SilvallyElectric, 0x____
.equ MeadowPlateIndex, 0x____
.equ SilvallyGrass, 0x____
.equ IciclePlateIndex, 0x____
.equ SilvallyIce, 0x____
.equ DracoPlateIndex, 0x____
.equ SilvallyDragon, 0x____
.equ DreadPlateIndex, 0x____
.equ SilvallyDark, 0x____
.equ PixiPlateIndex, 0x____
.equ SilvallyFairy, 0x____
.equ MindPlateIndex, 0x____
.equ SilvallyPsychic, 0x____
-------------------------------------
.equ EeveeNormal, 0x____
.equ FistPlateIndex, 0x____
.equ EeveeFight, 0x____
.equ SkyPlateIndex, 0x____
.equ EeveeFly, 0x____
.equ ToxicPlateIndex, 0x____
.equ EeveePoison, 0x____
.equ EarthPlateIndex, 0x____
.equ EeveeGround, 0x____
.equ StonePlateIndex, 0x____
.equ EeveeRock, 0x____
.equ InsectPlateIndex, 0x____
.equ EeveeBug, 0x____
.equ SpookyPlateIndex, 0x____
.equ EeveeGhost, 0x____
.equ IronPlateIndex, 0x____
.equ EeveeSteel, 0x____
.equ FlamePlateIndex, 0x____
.equ EeveeFire, 0x____
.equ SplashPlateIndex, 0x____
.equ EeveeWater, 0x____
.equ ZapPlateIndex, 0x____
.equ EeveeElectric, 0x____
.equ MeadowPlateIndex, 0x____
.equ EeveeGrass, 0x____
.equ IciclePlateIndex, 0x____
.equ EeveeIce, 0x____
.equ DracoPlateIndex, 0x____
.equ EeveeDragon, 0x____
.equ DreadPlateIndex, 0x____
.equ EeveeDark, 0x____
.equ PixiPlateIndex, 0x____
.equ EeveeFairy, 0x____
.equ MindPlateIndex, 0x____
.equ EeveePsychic, 0x____
Start:
ldrb r1, [r4]
ldrb r0, [r4, #1]
lsl r0, r0, #8
add r1, r1, r0
mov r0, r8
strh r1, [r0, #2]
push {r0-r7}
Initialising:
ldrh r2, [r0]
ldr r6, GiratinaO
cmp r2, r6
beq GrisCheck
ldr r6, Giratina
cmp r2, r6
beq GrisCheck2
LoadGivenItem:
mov r6, #6
adr r5, Table
add r5, #4
mov r7, r1
bl LoopLoad
cmp r6, #0
bne ItemInTable
ItemNotInTable:
adr r5, Table
add r5, #6
mov r6, #6
mov r7, r2
bl LoopLoad
cmp r6, #1
bne Return
ldrh r4, [r5, #2]
b Changing
GrisCheck:
ldr r6, GriseousOrb
cmp r1, r6
beq LoadGivenItem
ldr r4, Giratina
b Changing
GrisCheck2:
ldr r6, GriseousOrb
cmp r1, r6
bne LoadGivenItem
ldr r4, GiratinaO
b Changing
ItemInTable:
ldrh r3, [r5, #2]
mov r7, r2
mov r6, #6
adr r5, Table
bl LoopLoad
cmp r6, #1
bne Return
mov r4, r3
b Changing
Return:
pop {r0-r7}
Return3:
ldr r0, Back
bx r0
Return2:
ldr r0, Back2
bx r0
Changing:
strh r4, [r0]
pop {r0-r7}
ldr r3, Limit
cmp r0, r3
bhi Return3
mov r0, r7
ldr r3, pokemon_calc_checksum
bl Call
strh r0, [r7, #0x1C]
mov r0, r7
ldr r3, pokemon_encrypt
bl Call
mov r0, r7
ldr r3, pokemon_calculate_stats
bl Call
b Return2
LoopLoad:
push {lr}
Looping:
ldrh r4, [r5]
cmp r4, #0
beq Nope
cmp r4, r7
beq Yep
add r5, r6
b Looping
Nope:
mov r6, #0
pop {pc}
Yep:
mov r6, #1
pop {pc}
Call:
mov pc, r3
.align 2
GriseousOrb: .word GriseousIndex
Giratina: .word GiratinaIndex
GiratinaO: .word GiratinaOIndex
pokemon_calc_checksum: .word 0x0803E3E8+1
pokemon_encrypt: .word 0x0803F8F8+1
pokemon_calculate_stats: .word 0x0803E47C+1
Back: .word 0x08040ADA+1
Back2: .word 0x08040AEE+1
Limit: .word 0x02024540
Table:
.hword ArceusNormal, ArceusNormal, FistPlateIndex, ArceusFight, ArceusNormal, SkyPlateIndex, ArceusFly, ArceusNormal, ToxicPlateIndex
.hword ArceusPoison, ArceusNormal, EarthPlateIndex, ArceusGround, ArceusNormal, StonePlateIndex, ArceusRock, ArceusNormal, InsectPlateIndex
.hword ArceusBug, ArceusNormal, SpookyPlateIndex, ArceusGhost, ArceusNormal, IronPlateIndex, ArceusSteel, ArceusNormal, FlamePlateIndex
.hword ArceusFire, ArceusNormal, SplashPlateIndex, ArceusWater, ArceusNormal, ZapPlateIndex, ArceusElectric, ArceusNormal, MeadowPlateIndex
.hword ArceusGrass, ArceusNormal, IciclePlateIndex, ArceusIce, ArceusNormal, DracoPlateIndex, ArceusDragon, ArceusNormal, DreadPlateIndex
.hword ArceusDark, ArceusNormal, PixiPlateIndex, ArceusFairy, ArceusNormal, MindPlateIndex, ArceusPsychic, ArceusNormal, 0x0
Table2:
.hword SilvallyNormal, SilvallyNormal, FistPlateIndex, SilvallyFight, SilvallyNormal, SkyPlateIndex, SilvallyFly, SilvallyNormal, ToxicPlateIndex
.hword SilvallyPoison, SilvallyNormal, EarthPlateIndex, SilvallyGround, SilvallyNormal, StonePlateIndex, SilvallyRock, SilvallyNormal, InsectPlateIndex
.hword SilvallyBug, SilvallyNormal, SpookyPlateIndex, SilvallyGhost, SilvallyNormal, IronPlateIndex, SilvallySteel, SilvallyNormal, FlamePlateIndex
.hword SilvallyFire, SilvallyNormal, SplashPlateIndex, SilvallyWater, SilvallyNormal, ZapPlateIndex, SilvallyElectric, SilvallyNormal, MeadowPlateIndex
.hword SilvallyGrass, SilvallyNormal, IciclePlateIndex, SilvallyIce, SilvallyNormal, DracoPlateIndex, SilvallyDragon, SilvallyNormal, DreadPlateIndex
.hword SilvallyDark, SilvallyNormal, PixiPlateIndex, SilvallyFairy, SilvallyNormal, MindPlateIndex, SilvallyPsychic, SilvallyNormal, 0x0
Table3:
.hword EeveeNormal, EeveeNormal, FistPlateIndex, EeveeFight, EeveeNormal, SkyPlateIndex, EeveeFly, EeveeNormal, ToxicPlateIndex
.hword EeveePoison, EeveeNormal, EarthPlateIndex, EeveeGround, EeveeNormal, StonePlateIndex, EeveeRock, EeveeNormal, InsectPlateIndex
.hword EeveeBug, EeveeNormal, SpookyPlateIndex, EeveeGhost, EeveeNormal, IronPlateIndex, EeveeSteel, EeveeNormal, FlamePlateIndex
.hword EeveeFire, EeveeNormal, SplashPlateIndex, EeveeWater, EeveeNormal, ZapPlateIndex, EeveeElectric, EeveeNormal, MeadowPlateIndex
.hword EeveeGrass, EeveeNormal, IciclePlateIndex, EeveeIce, EeveeNormal, DracoPlateIndex, EeveeDragon, EeveeNormal, DreadPlateIndex
.hword EeveeDark, EeveeNormal, PixiPlateIndex, EeveeFairy, EeveeNormal, MindPlateIndex, EeveePsychic, EeveeNormal, 0x0 -
May 1st, 2020 5:20 PMkleenexfeuShow me your routine, I'll see what I can do
-
May 1st, 2020 4:03 PMSuper Versekr Darkso to speak yes, but when I add the pokemon only arceus comes out, I would like to be able to put more in some way and configure it to my whim but not exactly how to add more.
-
May 1st, 2020 1:40 PMkleenexfeuHave you tried adding more entries in the table following the same pattern ?
-
April 30th, 2020 5:14 PMSuper Versekr DarkI want to be able to add more shapes but from other pokemon using the same routine as with giratina, example:
Eevee Evolutions
Sylvally Shapes
ETC -
April 30th, 2020 4:08 PMkleenexfeuYou'll have to be more accurate, what exactly do you want to achieve here ? Have more than 17 or 18 forms of arceus ?
-
April 30th, 2020 10:24 AMSuper Versekr Darkexcuse me friend could you help me include more species in your routine, I don't know how it works exactly so I would ask you to explain to me how I could add more
https://www.pokecommunity.com/showpost.php?p=8914959&postcount=71