Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UNAWARE + SACRED SWORD FOR FIRE RED by KDS
- First of all it only works with Doesn't Split so keep this in mind.
- --------------------------------------------------------------------
- 1. Accuracy & Evasion Unaware When Foresight is in effect (also updates foresight):
- --------------------------------------------------------------------
- At 1DF80: 00 49 08 47 XX XX XX 08
- -------------------------------------------------------
- .text
- .align 2
- .thumb
- .thumb_func
- main:
- mul r0, r2
- add r0, r0, r3
- mov r2, #0x20
- add r1, r4, r3
- ldrb r1, [r1, r2]
- cmp r1, #0xKK
- beq foeunaware
- ldrb r5, [r0, #0x1e]
- b cont
- foeunaware:
- mov r5, #0x6
- cont:
- ldrb r1, [r0, r2]
- cmp r1, #0xKK
- beq ignorestat
- ldr r1, currMove
- ldrh r1, [r1, #0x0]
- mov r0, #0xC
- mul r1, r0
- ldr r0, moveTable
- add r0, r0, r1
- ldrb r1, [r0, #0x0]
- cmp r1, #0xLL
- beq ignorestat
- add r1, r4, r3
- ldrb r1, [r1, #0x1f]
- cmp r1, #0x5
- bgt ignorestat
- lsl r0, r5, #0x0
- add r0, #0x6
- ldr r2, return
- bx r2
- ignorestat:
- ldr r2, return2
- bx r2
- .align 2
- currMove: .word 0x02023D4C
- moveTable: .word 0x08250C04
- return: .word 0x0801DFA9
- return2: .word 0x0801DFAF
- -------------------------------------------------------------
- ------------------------------------------------------------
- 2. Accuracy & Evasion Unaware Without Foresight
- ----------------------------------------------------------
- At 1DFA0: 00 4A 10 47 XX XX XX 08
- --------------------------------------------------------
- .text
- .align 2
- .thumb
- .thumb_func
- main:
- mov r2, #0x20
- add r1, r4, r3
- ldrb r1, [r1, r2]
- cmp r1, #0xKK
- beq foeunaware
- ldrb r5, [r0, #0x1e]
- b cont
- foeunaware:
- mov r5, #0x6
- cont:
- ldrb r1, [r0, r2]
- cmp r1, #0xKK
- beq ignorestat
- ldr r1, currMove
- ldrh r1, [r1, #0x0]
- mov r0, #0xC
- mul r1, r0
- ldr r0, moveTable
- add r0, r0, r1
- ldrb r1, [r0, #0x0]
- cmp r1, #0xLL
- beq ignorestat
- add r1, r4, r3
- ldrb r1, [r1, #0x1f]
- lsl r0, r5, #0x0
- add r0, #0x6
- ldr r2, return
- bx r2
- ignorestat:
- ldr r2, return2
- bx r2
- .align 2
- currMove: .word 0x02023D4C
- moveTable: .word 0x08250C04
- return: .word 0x0801DFA9
- return2: .word 0x0801DFAF
- -------------------------------------------------------
- -------------------------------------------------
- 3. Attack & Sp. Attack Unaware
- ------------------------------------------------------
- At 3F3C8: 00 49 08 47 XX XX XX 08
- ------------------------------------------------------
- .text
- .align 2
- .thumb
- .thumb_func
- .global unwareattack
- main:
- cmp r4, #0x2
- bne nocrit
- cmp r2, #0x6
- ble ignorestat
- nocrit:
- mov r0, #0x20
- ldr r1, [sp, #0x4]
- ldrb r1, [r1, r0]
- cmp r1, #0xKK
- beq ignorestat
- ldr r1, return1
- bx r1
- ignorestat:
- ldr r1, return2
- bx r1
- .align 2
- return1: .word 0x0803F3D1
- return2: .word 0x0803F3E1
- -------------------------------------------------------------
- ---------------------------------------------------------
- 4. Defense & Sp. Defense Unaware
- ---------------------------------------------------------
- At 3F410: 00 49 08 47 XX XX XX 08
- ---------------------------------------------------------
- .text
- .align 2
- .thumb
- .thumb_func
- .global unwaredefense
- main:
- cmp r4, #0x2
- bne nocrit
- cmp r2, #0x5
- bgt ignorestat
- nocrit:
- mov r0, #0x20
- ldrb r1, [r6, r0]
- cmp r1, #0xKK
- beq ignorestat
- ldr r1, currMove
- ldrh r1, [r1, #0x0]
- mov r0, #0xC
- mul r1, r0
- ldr r0, moveTable
- add r0, r0, r1
- ldrb r1, [r0, #0x0]
- cmp r1, #0xLL
- beq ignorestat
- ldr r1, return1
- bx r1
- ignorestat:
- ldr r1, return2
- bx r1
- .align 2
- currMove: .word 0x02023D4C
- moveTable: .word 0x08250C04
- return1: .word 0x0803F419
- return2: .word 0x0803F429
- ----------------------------------------------------------
- Where XX XX XX 08 are respective pointers to their corresponding routine.
- KK is the index of Unaware
- LL is the index for Sacred SWord. Give it just a basic damaging script i.e 1D6926 my routines will handle the rest.
- Replace the pointers to the move table if you need to.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement