i believe items such as the life orb,toxic orb,flame orb,assault vest and evilolite should be implemented as well as they are very important
the assault vest code credits to MR DollSteak
Assault Vest I (Sp. Def boost)
Code:
.align 2
.thumb
.thumb_func
.global Assaultvest
assaultvest:
ldr r2, [sp, #0x1C]
cmp r2, #0x24
beq seascale:
cmp r2, #0x46
bne return
vest:
ldr r1, .return3
bx r1
seascale:
ldr r3, [sp, #0x4]
ldrh r1, [r3]
ldr r0, .return2
bx r0
return:
ldr r2, .return
bx r2
.align
.return: .word 0x0803EFF7
.return2: .word 0x0803EFE9
.return3: .word 0x0803EFEF
*Insert 80 46 01 4A 10 47 00 00 XX+1 XX XX 08* at 3EFDC
Assault Vest II (Prevents the use of Status moves)
Code:
.text
.align 2
.thumb
.thumb_func
.global Assaultvest2
main:
mov r5, r1
cmp r3, #0x1D
beq choice
check:
cmp r3, #0x46
beq assaultvest
return:
ldr r0, .return
bx r0
choice:
mov r0, r8
ldrh r1, [r0]
ldr r2, .return2
bx r2
assaultvest:
mov r2, r4
mov r0, #0xC
mul r2, r0
ldr r0, .movedata
add r0, r0, r2
ldrb r0, [r0, #0xA]
cmp r0, #0x2
bne return
nostatus:
ldr r0, .something
strh r1, [r0]
ldr r2, .else
ldrb r1, [r5]
mov r0, #0x58
mul r0, r1
add r0, r0, r7
ldrh r0, [r0, #0x2E]
strh r0, [r2]
ldr r1, .scriptloc
ldrb r0, [r5]
lsl r0, r0, #0x2
add r0, r0, r1
ldr r1, .script
str r1, [r0]
add r0, r6, #0x1
lsl r0, r0, #0x18
lsr r6, r0, #0x18
b return
.align
.return: .word 0x0801773B
.return2: .word 0x08017707
.movedata: .word 0x08XXXXXX
.something: .word 0x02023D4A
.else: .word 0x02023D68
.scriptloc: .word 0x02023D80
.script: .word 0x08AAAAAA
*Insert 00 4D 28 47 XX+1 XX XX 08 at 176FC*
Change XXXXXX to the location of your move table.
Battle Script at AAAAAA (requires setword command at FA as well as messagebox hack):
Code:
FA 20 C0 03 02 BB BB BB 08 10 84 01 44 45 00 09 00 00 00 00 10 2F 01 12 40 00 3C
Message at BBBBBB:
Code:
CE DC D9 00 BB E7 E7 D5 E9 E0 E8 00 D0 D9 E7 E8 00 E4 E6 D9 EA D9 E2 E8 E7 00 E8 DC D9 FE E9 E7 D9 00 E3 DA 00 CD E8 D5 E8 E9 E7 00 C7 E3 EA D9 E7 AB FB
Assault Vest III (Uses struggle if only status moves are left)
Code:
.text
.align 2
.thumb
.thumb_func
.global Assaultvest3
main:
ldr r2, [sp]
cmp r2, #0x1D
beq choice
cmp r2, #0x46
bne return
assault:
ldrh r2, [r5]
mov r0, #0xC
mul r2, r0
ldr r0, .movedata
add r0, r0, r2
ldrb r0, [r0, #0xA]
cmp r0, #0x2
bne return
return3:
ldr r0, .return3
bx r0
choice:
ldr r0, [sp, #0x4]
ldrh r1, [r0]
cmp r1, #0x0
beq return
return2:
ldr r0, .return2
bx r0
return:
ldr r0, .return
bx r0
.align
.movedata: .word 0x08XXXXXX
.return3: .word 0x08017949
.return2: .word 0x0801793D
.return: .word 0x08017951
*insert 00 9A 00 48 00 47 XX+1 XX XX 08 at 0801792E*
Change XXXXXX to the location of your move table.
the eviloite code credits to MR DollSteak
Eviolite I (Sp. Def boost)
Code:
.text
.align 2
.thumb
.thumb_func
.global eviolite
main:
ldr r2, [sp, #0x1C]
cmp r2, #0x24
beq seascale
cmp r2, #0x46
beq vest
cmp r2, #0x47
bne return
eviolite:
ldr r3, [sp, #0x4]
ldrh r1, [r3]
mov r2, #0x28
mul r2, r1
ldr r0, .evotable
add r0, r1, r0
ldr r0, [r0]
cmp r0, #0x0
beq return
vest:
ldr r1, .return3
bx r1
seascale:
ldr r3, [sp, #0x4]
ldrh r1, [r3]
ldr r0, .return2
bx r0
return:
ldr r2, .return
bx r2
.align
.evotable: .word 0x08259754
.return: .word 0x0803EFF7
.return2: .word 0x0803EFE9
.return3: .word 0x0803EFEF
*Insert 80 46 01 4A 10 47 00 00 XX+1 XX XX 08* at 3EFDC
(This replaces Assault Vest I's code, so if you intend to use both, feel free to delete the other one)
Eviolite II (Defense boost)
Code:
.text
.align 2
.thumb
.thumb_func
.global eviolite
main:
ldr r0, [sp, #0x1C]
cmp r0, #0x40
beq metalpowder
cmp r0, #0x47
bne return
eviolite:
ldr r1, [sp, #0x4]
ldrh r0, [r1]
mov r2, #0x28
mul r2, r0
ldr r0, .evotable
add r0, r2, r0
ldr r0, [r0]
cmp r0, #0x0
beq return
success:
ldr r3, .return
bx r3
metalpowder:
ldr r1, [sp, #0x4]
ldrh r0, [r1]
ldr r3, .return2
bx r3
return:
ldr r3, .return3
bx r3
.align
.evotable: .word 0x08259754
.return: .word 0x0803F019
.return2: .word 0x0803F015
.return3: .word 0x0803F021
*Insert 01 48 00 47 00 00 XX+1 XX XX 08* at 3F00A
i know the orb codes are somewhere but i cant find them at the moment and sorry for it being so long i dont know how to put them in spoiler