Male
Paris
Seen March 13th, 2018
Posted August 12th, 2017
40 posts
5.3 Years
So I made the effect for Oblivion Wings for Emerald.

First insert this routine :
Spoiler:

.text
.align 2
.thumb
.thumb_func
.global main

main:
	push {r0-r3, lr}
	
	ldr r0, = (0x020241F0)
	
	ldrh r1, [r0]
	mov r2, #0x3
        mul r1, r2
        lsr r1, #2
        cmp r1, #0x0
        beq nineth
	b eighth

nineth:
	add r1, #0x1
	b eighth
	
eighth:
	ldr r2, = (0x0202420B)
	ldrb r2, [r2]
	
	cmp r2, #0x0
	beq fourth
	cmp r2, #0x1
	beq fifth
	cmp r2, #0x2
	beq sixth
	cmp r2, #0x3
	beq seventh
	b end

fourth:
	ldr r0, = (0x02024542)
	b third
	
fifth:
	ldr r0, = (0x0202479A)
	b third
	
sixth:
	ldr r0, = (0x020245A6)
	b third

seventh:
	ldr r0, = (0x020247FE)
	b third
	
third:
	mov r2, r0
	ldrh r3, [r0]
	
	add r2, #0x2
	ldrh r2, [r2]
	
	add r1, r3
	
	cmp r1, r2
	bhs first
	cmp r1, r2
	blo second
	b end
	
second:
	strh  r1, [r0]
	b end
	
first:
	strh  r2, [r0]
	b end
	
end:
	pop {r0-r3, pc}
	
.align 2
In compiled version:
0F B5 16 48 01 88 03 22 51 43 89 08 00 29 00 D0 01 E0 01 31 FF E7 12 4A 12 78 00 2A 06 D0 01 2A 06 D0 02 2A 06 D0 03 2A 06 D0 15 E0 0D 48 05 E0 0D 48 03 E0 0D 48 01 E0 0D 48 FF E7 02 1C 03 88 02 32 12 88 C9 18 91 42 04 D2 91 42 00 D3 03 E0 01 80 01 E0 02 80 FF E7 0F BD C0 46 F0 41 02 02 0B 42 02 02 42 45 02 02 9A 47 02 02 A6 45 02 02 FE 47 02 02


Then here is the effect:
Spoiler:

#dynamic 0xF00000
#freespacebyte 0xFF

#org @start
attackcanceler
accuracycheck 0x82D8A5E 0x0
attackstring
ppreduce
calculatedamage
attackanimation
waitanimation
missmessage
cmd5c 0x0
waitstate
graphicalhpupdate 0x0
datahpupdate 0x0
critmessage
waitmessage 0x40
resultmessage
waitmessage 0x40
negativedamage
orword 0x2024280 0x100
callasm 0x08XXXXXX
graphicalhpupdate 0x1
datahpupdate 0x1
setbyte 0x2024337 0x0
goto 0x82D8B2E
end
Where XXXXXX is a pointer to the routine +1

It looks working, but i'm not 100% sure. And I think that "Liqid Ooze" does nothing.

Edit : Wrong !