回复 #3 冯励 的帖子
我用的6.4引擎,
改动效果:发起【攻击】需要MP≧1,MP=0时【攻击】按键无法使用
004064FB /E9 73560700 JMP 0047BB73
00406500 |90 NOP
00406501 |90 NOP
00406581 /E9 0A560700 JMP 0047BB90
00406586 |90 NOP
0043DE87 /E9 32DD0300 JMP 0047BBBE
0043DE8C |90 NOP
0043DE8D |90 NOP
0047BB73 8B4D 08 MOV ECX,DWORD PTR SS:[EBP+8]
0047BB76 E8 7EA6F8FF CALL 004061F9
0047BB7B 36:8B41 14 MOV EAX,DWORD PTR SS:[ECX+14]
0047BB7F 85C0 TEST EAX,EAX
0047BB81 74 34 JE SHORT 0047BBB7
0047BB83 803D 9A0E5000>CMP BYTE PTR DS:[500E9A],0
0047BB8A ^ E9 71A9F8FF JMP 00406500
0047BB8F 90 NOP
0047BB90 8B4D 08 MOV ECX,DWORD PTR SS:[EBP+8]
0047BB93 E8 61A6F8FF CALL 004061F9
0047BB98 803D 9A0E5000>CMP BYTE PTR DS:[500E9A],3
0047BB9F 74 16 JE SHORT 0047BBB7
0047BBA1 36:FF49 14 DEC DWORD PTR SS:[ECX+14]
0047BBA5 36:8179 14 FF>CMP DWORD PTR SS:[ECX+14],0FFFF
0047BBAD 72 08 JB SHORT 0047BBB7
0047BBAF 36:C741 14 00>MOV DWORD PTR SS:[ECX+14],0
0047BBB7 8BE5 MOV ESP,EBP
0047BBB9 5D POP EBP
0047BBBA C2 0800 RETN 8
0047BBBD 90 NOP
0047BBBE 8B4D D4 MOV ECX,DWORD PTR SS:[EBP-2C]
0047BBC1 36:8379 14 00 CMP DWORD PTR SS:[ECX+14],0
0047BBC6 74 04 JE SHORT 0047BBCC
0047BBC8 6A 01 PUSH 1
0047BBCA EB 02 JMP SHORT 0047BBCE
0047BBCC 6A 00 PUSH 0
0047BBCE B9 985E4B00 MOV ECX,004B5E98
0047BBD3 ^ E9 B422FCFF JMP 0043DE8C
上面的判定换成【负面状态】就行
判断武将是否陷入负面状态
004066E0 /$ 55 PUSH EBP
004066E1 |. 8BEC MOV EBP,ESP
004066E3 |. 0FB641 1E MOVZX EAX,BYTE PTR DS:[ECX+1E]
004066E7 |. 0FB655 08 MOVZX EDX,BYTE PTR SS:[EBP+8]
004066EB |. 23C2 AND EAX,EDX
004066ED |. 5D POP EBP
004066EE \. C2 0400 RETN 4
(PUSH 4 禁咒;PUSH 8 混乱)
|