Little Fighter Empire - Forums
drawing mp instead of hp - Printable Version

+- Little Fighter Empire - Forums (https://lf-empire.de/forum)
+-- Forum: Little Fighter 2 Zone (https://lf-empire.de/forum/forumdisplay.php?fid=7)
+--- Forum: [2.0] Exe Editing (https://lf-empire.de/forum/forumdisplay.php?fid=43)
+--- Thread: drawing mp instead of hp (/showthread.php?tid=3485)



drawing mp instead of hp - Bamboori - 08-22-2009

@silva: i read your guide and followed it :P

now here is my request/question:

i need a new itr_kind or and new state that has following effect:

instead of losing hp, the target loses mp.

[/punctuation]


RE: drawing mp instead of hp - Boop - 08-22-2009

(08-22-2009, 12:34 PM)Bamboori Wrote:  @silva: i read your guide and followed it :P

now here is my request/question:

i need a new itr_kind or and new state that has following effect:

instead of losing hp, the target loses mp.

[/punctuation]

Easier said than done, if it was really simple this would've been done already (your not the first person to ask this).


RE: drawing mp instead of hp - TheNave - 08-22-2009

I created a state: 7XXX for NTSD once which drains the enemy XXX mp when he's hit...


RE: drawing mp instead of hp - naruto hyuuga - 08-22-2009

so can you give it to the public??? or great god nave?
or MAYBE change to a itr kind or effect?


RE: drawing mp instead of hp - Boop - 08-22-2009

(08-22-2009, 01:40 PM)naruto hyuuga Wrote:  so can you give it to the public??? or great god nave?
or MAYBE change to a itr kind or effect?

I looked into making it a kind, it is way to much effort. Unknown itr kinds don't default back to 0. So if you use something like itr kind:30 , it won't react with anything. That means that a lot of code has to be modified to get it to work properly.

I started to write it, but then realized that it would be way to much work :p.

Code:
.data
damage_r    dd 0042E9C2h
ik0_r1        dd 0042E678h
ik0_r2        dd 004305CEh
.code
dmg proc
    cmp dword ptr ss:[esp+40],35 ;35 is the ik number
    jne normal
    SUB DWORD PTR DS:[EAX+308h],ECX
    jmp return
normal:    
    SUB DWORD PTR DS:[EAX+2FCh],ECX
return:
    jmp [damage_r]
dmg endp

ik0 proc
    
    cmp edx,0
    je return
    cmp edx,35
    je return
    jmp [ik0_r2]

return:
    jmp [ik0_r1]
ik0 endp

Code:
invoke JmpPatch,0042E9BCh, addr dmg
invoke JmpPatch,0042E670h, addr ik0

Doesn't work with armored characters, doesn't have sparks, probably doesn't have sound (to lazy to check).