|
发表于 2018-9-6 16:27:14
|
显示全部楼层
本帖最后由 xuzhouhudajz 于 2018-9-6 16:31 编辑
能用呀!所有人类英雄都有效!这是从里面节选的,结束多搞点分号就可以了!
ZVSE
!#TM2:S1/999/1/255;[直接使用官方的TM2通用触发器]
!?TM2;
!!DO10000009/0/155/1:P;
!!DO10000010/0/7/1:P;
!?FU10000009;
!!OW:C?y2;#0
!!OW&y2<>-1:Iy2/?y1;#1
!!FU&y1<>0:E;
!!HEx16:O?y4;
!!OW&y4>-1:Iy4/?y5;
!!FU&y5<>0:E;
!!HEx16&y5=0/y4<>-1:E?j/?k G?y1 Fd/d/d/?y11 A2/0//?y20;取得英雄移动力
!!VRy3:Sy1*k :25 +y1;
!!VRy6:Sk *100;
!!VRy7:S500 *k :10;
!!VRy11:*3;
!!HEx16&y5=0/y4<>-1:Gy3 Y9/y6/7/1 Y64/2/7/1 Y7/y11/7/1 Wy3;
!!HEx16&y20<1/y5=0/y4<>-1:A1/0/17;
!!VRy8:S0;
!!HEx16&y5=0/y4<>-1:S17/?y35 Sy8/?y36 B2/?y9;#14
!!HEx16&y35<1/y5=0/y4<>-1:S17/1;
!!if&y9>7/y9<10:;
!!HEx16&y36<1/k>25/y5=0/y4<>-1:Sy8/1;
!!en:;
!!if&y9<8|y9>9:;
!!HEx16&y36<1/k>25/y8<>12/y5=0/y4<>-1:Sy8/1;
!!en:;
!!VRy8:+1;
!!SN&y8<28:G14;;;
!?FU10000010;
!!VRy3:S0;#0初始化资源
!!OW:Rx16/y3/?y4;#1获取资源y3数量
!!OW:Ix16/?j C?i;获取玩家类型
!!FU&x16<>i:E;
!!if&j=1:;
!!VRy5&y3<>6:S10;除金币外每天加10
!!VRy5&y3=6:S5000;金币每天加5000
!!OW:Rx16/y3/dy5;增加电脑y3资源
!!en:;
!!if&j=0:;
!!VRy5&y3=7:S1;人类每天加1秘银
!!OW:Rx16/y3/dy5;
!!en:;
!!VRy3:+1;
!!SN&y3<8:G1;;;资源循环检测
-----------------------------------------------------------
!?BA0&1000;
!!VRy8:S1;
!!VRy9:Sy8*-1 +1;
!!BA:Hy9/?v9555; 保存进攻方英雄到v9555
!!BA:Hy8/?v9560; 防守方hero到v9560
!!OW:C?i Ii/?j;
!!if&y9=0/v9555>=0:;
!!HEv9555:O?y2;
!!FU&y2<0:E;
!!OW:Iy2/?y4;
!!HEv9555&y4=0:N?v85;
!!en:;
!!if&y8=1/v9560>=0:;
!!HEv9560:O?y5;
!!FU&y5<0:E;
!!OW:Iy5/?y7;
!!HEv9560&y7=0:N?v85;
!!en:;
!!VRv9990:C0/0/0/0/0/0/0;
!!HEv85:X?v9990/?v9991/?v9992/?v9993/?v9994/?v9995/?v9996;
!?BF&1000; 战场生成后
!!DO9999996/0/20/1&v9555=v85:P;
!!DO9999996/21/41/1&v9560=v85:P;
!!DO9999997/0/20/1&v9555=v85:P;
!!DO9999997/21/41/1&v9560=v85:P;
!!DO9999998/0/20/1&v9555=v85:P;
!!DO9999998/21/41/1&v9560=v85:P;
!?BR&1000;
!!DO9999999/0/20/1:P;
!!DO9999999/21/41/1:P;
!?CO0&1000;
!!VRy1:S0;#0
!!COv85:Sy1/?y2;#1
!!COv85&y2<1:Sy1/1;
!!VRy1:+1;
!!SN&y1<6:G1;循环检测
;
!?BA53&1000;
!!HEv85&v9990>-1/v9990<9/v85>-1:Xv9990/v9991/v9992/v9993/v9994/v9995/v9996;
;
---------------------------新英雄特长--------------------------------
!?FU9999996;
!?BG&1000;
!!BG:Q?y1 N?y2 E?y3 A?y5;
!!BHy1:N?y4;
!!FU|y2<0/y3<0/y4<>v85/y4<0/y5<>7:E;[限制条件]y2和y3为存在堆栈编号,y4=v85为指定英雄,y5=7表示是堆栈射击的动作
!!BMy2:T?y11 N?y12;
!!BMy3:T?y13 N?y14;
!!FU|y11<0/y13<0/y12<1/y14<1/y11=149:E;[本堆栈和目标生物存在,且本堆栈不是箭塔]
!!HEv85:E?j/?k;
!!VRy42&k>0:Sk:20;
!!VRy42&k=0:S20;
!!FU9999993:Py2/y3/y42;
***
!?FU9999993;
**A堆栈射击B堆栈且产生伤害(箭塔射击除外)
**x1=堆栈号
**x2=目标堆栈号
**x3=射击次数(需>0)
!!FU|x1<0/x1>41/x2<0/x2>41/x1=x2/x3<1:E;[#0]
!!BMx1:T?y1 N?y2; [#1]
!!BMx2:T?y11 N?y12;
!!FU|y1<0/y11<0/y2<1/y12<1/y1=149/y11=149:E;
!!BMx1:F?i U3/?j; [标志与弹药]
!!VRi:&4;
!!FU|i<>4/j<1:E; [非箭手或无弹药(若无射击动作会崩溃)]
*!FU&y1>144/y1<150:E; [排除战争机器]
!!UN:C6919200/4/?y80; [内存]
!!VRy31:Sx1 *1352 +21708 +y80;[A方内存地址]
!!VRy41:Sx2 *1352 +21708 +y80;[B方内存地址]
!!SN:E4453920/2/y31/y41; [射击且伤害]
!!BMx1:U3/d-1; [减少弹药]
!!VRx3:-1;
!!SN&x3>0:G0; [循环代码]
!?BG0;
!!SN:W^007.AttackA.Times^/0;
!!SN:W^007.ShootA.Times^/0;
!?BG0;[范例]
!!BG:A?y1 E?y3 Q?y5;
!!BHy5:N?y6;!!HEv85:E?j/?k;
!!VRy42&k>0:Sk:20;
!!VRy42&k=0:S20;!!if&y1=6:;
!!SN&y6=v85:W^007.AttackA.Times^/dy42;[有2次额外肉搏攻击]
!!en:;
!!if&y1=7:;
!!SN&y6=v85:W^007.ShootA.Times^/dy42;[有2次额外射击]
!!en:;
********************HOOK代码,不必更改******************************
!?BA0&1000;
!!SN:L^EraPlugins\erm_hooker.era^/?y1 Ay1/^SetHook^/?y2;
!!SN:Ey2/1/7381311/101310;
!!SN:Ey2/1/4456346/101311;
!?BA1&1000;
!!SN:L^EraPlugins\erm_hooker.era^/?y1 Ay1/^UnsetHook^/?y2;
!!SN:Ey2/1/7381311;
!!SN:Ey2/1/4456346;
!?FU101310;[额外肉搏]
!!SN:X?y1/1;[edi]
!!SN:W^007.AttackA.Times^/?y30;
!!SN:W^007.AttackA.Times^/0;
!!FU&y30<1:E;
!!UN:Cy1/4/?y10;[y10=A_STACK]
!!VRy2:Sy1+8;
!!UN:Cy2/4/?y3; [y3=ebp]
!!VRy4:Sy3+8; [ebp+8]
!!UN:Cy4/4/?y5; y5=[ebp+08]
!!VRy6:Sy1+4;
!!UN:Cy6/4/?y80;[y80=D_STACK]10#
!!VRy11:Sy10+52; 11#
!!VRy12:Sy10+76;
!!VRy13:Sy10+656;
!!VRy14:Sy10+688;
!!VRy15:Sy10+704;
!!VRy21:Sy80+52;
!!VRy22:Sy80+76;
!!UN:Cy11/4/?y31; 18#
!!UN:Cy12/4/?y32;
!!UN:Cy13/4/?y33;
!!UN:Cy14/4/?y34;
!!UN:Cy15/4/?y35;
!!UN:Cy21/4/?y41;
!!UN:Cy22/4/?y42;
!!FU|y31<0/y32<1/y41<0/y42<1/y33>0/y34>0/y35>0:E;
!!SN:E4461360/2/y10/y80/y5;
!!VRy30:-1;
!!SN&y30>0:G18;
!?FU101311;[额外射击]
!!SN:X?y1/1;[edi]
!!SN:W^007.ShootA.Times^/?y30;
!!SN:W^007.ShootA.Times^/0;
!!FU&y30<1:E;
!!VRy2:Sy1+4; esi
!!UN:Cy2/4/?y10;[A_STACK]
!!VRy3:Sy1+16; ebx
!!UN:Cy3/4/?y80;[D_STACK]
!!VRy11:Sy10+52;[8#]
!!VRy12:Sy10+76;
!!VRy13:Sy10+656;
!!VRy14:Sy10+688;
!!VRy15:Sy10+704;
!!VRy16:Sy10+216;
!!VRy21:Sy80+52;
!!VRy22:Sy80+76;
!!UN:Cy11/4/?y31;16#
!!UN:Cy12/4/?y32;
!!UN:Cy13/4/?y33;
!!UN:Cy14/4/?y34;
!!UN:Cy15/4/?y35;
!!UN:Cy16/4/?y36;
!!UN:Cy21/4/?y41;
!!UN:Cy22/4/?y42;
!!FU|y31<0/y32<1/y41<0/y42<1/y33>0/y34>0/y35>0/y36<1:E;
!!SN:E4453920/2/y10/y80;
!!VRy30:-1;
!!SN&y30>0:G16;
!?MR0&1000;
!!BG:Q?y1 A?y3;
!!VRy2:Sy1*-1+1;
!!BHy1:N?y11; [当前攻击方英雄y11]
!!BHy2:N?y12;[对方英雄y12]
!!HEv85:Ed/?y10/1 B0/?z1 Fd/d/?y40/?y41;[特定英雄的等级y10]
!!MR:D?y20 F?y21 S?y22;[原伤害y20,最终伤害y21(MR0下等同于y20),魔法编号y22]
!!VRy30:Sy10*20 +y40 +y41 *2; 每级+40%、力量知识每点+20%
!!VRy31:Sy30 *y20 :100 +y20;[最终值]
!!VRy31&y31<0:S0;
!!VRy31&y31>2140000000:S2140000000;
!!VRy50:Sy10*2; 每级-2%
!!VRy51:Sy50 *y21 : -100 +y21;[最终值]
!!VRy51&y51<0:S0;
!!VRz900:S^%Z1增加己方%Y30%%基础%Y22魔法伤害(%Y20->%Y31)!^;
!!VRz-1:S^%Z1减少对手%Y50%%基础%Y22魔法伤害(%Y21->%Y51)!^;
!!if&y11=v85:;[施法方是特定英雄增加魔法伤害]
!!if|y3=1/y3=10:;
!!FU&y22=29:E;
!!BU:Mz900;
!!MR:Dy31;
!!en:;
!!if|y22=57/y22=16/y22=18:;
!!BU:Mz900;
!!MR:Dy31;
!!en:;
!!en:;
!!if&y12=v85:;[施法方是特定英雄增加魔法伤害]
!!if|y3=1/y3=10:;
!!FU&y22=29:E;
!!BU:Mz-1;
!!MR:Dy51;
!!en:;
!!en:;
;
------------------------------免物理伤害--------------------------------;
!?FU9999997;
!?MF1&1000;
!!MF:N?y1;
!!BG:Q?y3;
!!VRy6&y3=0:S1;
!!VRy6&y3=1:S0;
!!BMy1:T?y2 I?y7 F?i;
!!UN:N3/z500/y2/1;
!!BHy6:N?y5;
!!BHy7:N?y8;
!!BMx16&y5=v85:G212/?y54/d G213/?y51/d B?y15 N?y16;
!!VRy17&y15>0/y16>0:Sy15 -y16 *100 :y15;
!!VRy17|y17<0/y15=1:S10;
!!VRi:&4;
!!VRy50:S0 R100;
!!HEv85:Ed/?y53/1;
!!VRy52:Sy53 +y51 +y54 +10 +y17;
!!if&i=4:;
!!BMy1&y50<y52/y5=v85/y8=v85:V20 V85;
!!MF&y50<y52/y5=v85/y8=v85:E0;
!!VRz900:S^{%Z500获得%Y50好运格挡成功。}^;
!!BU&y50<y52/y5=v85/y8=v85:Mz900;
!!en:;
!!if&i<>4:;
!!BMy1&y50<y52/y5=v85/y8=v85:V20 V85;
!!MF&y50<y52/y5=v85/y8=v85:E0;
!!VRz900:S^{%Z500获得%Y50好运格挡成功。}^;
!!BU&y50<y52/y5=v85/y8=v85:Mz900;
!!en:;
;
;------------------------------物理伤害加倍--------------------------------;
!?FU9999998;
!!FU|v9560<>v85/v9555<>v85:E;
!?MF1&1000;
!!MF:N?y1 F?y6;
!!BG:Q?y3 A?y4 N?y21;
!!BMy1:T?y2 I?y13 P?y30;
!!VRy11&y3=0:S1;
!!VRy11&y3=1:S0;
!!BHy3:N?y12;
!!BHy11:N?y5;
!!BHy13:N?y14;
!!BMy21&y21>-1:B?y15 N?y16 I?y22 T?y24;
!!BHy22:N?y23;
!!UN:N3/z500/y2/1;
!!VRy17:S0;
!!VRy17&y15>y16/y23=v85/y15>0/y16>0:Sy15 -y16 *70 :y15;
!!VRy17&y15<y16/y23=v85/y15>0/y16>0:S0;
!!VRy50:S0 R100;
!!HEv85:Ed/?y58/1 B0/?z8;
!!VRy51:Sy58 +y17 +5;
!!VRy7:Sy58:5;
!!VRy25:Sy58:2;
!!VRy25&y25<5:S5;
!!VRy26:Sy6*y25;
!!VRy7&y7<=2:S2;
!!VRy10:Sy6*y7;
!!VRy10&y10>2140000000:S2140000000;
!!if&y14<>v85/y50<26/y58>35:;
!!BMy1:C57/y30/3/3/1;
!!en:;
!!if&y14<>v85/y58>35/y50>74:;
!!BMy1:C57/y30/3/3/1;
!!en:;
!!if&y24<>149:;
!!BMy1&y50<y51/y5<>v85/y12=v85/y14<>v85:V15 V73;
!!MF&y50<y51/y5<>v85/y12=v85/y14<>v85:Fy10;
!!VRz900:S^{%Z8受到%Y17损伤共计%Y51幸运,获得%Y50点好运使%Z500受到%Y7×%Y6=%Y10点伤害。}^;
!!BU&y50<y51/y5<>v85/y12=v85/y14<>v85:Mz900;
!!en:;
!!if&y24=149:;
!!BMy1&y5<>v85/y12=v85/y14<>v85:V15 V73;
!!MF&y5<>v85/y12=v85/y14<>v85:Fy26;
!!VRz900:S^{%Z8获得幸运一击,使%Z500受到%Y25×%Y6=%Y26点伤害。}^;
!!BU&y5<>v85/y12=v85/y14<>v85:Mz900;
!!en:;
;
------------------------特长进攻术+防御术+箭术+魔力+抵抗术----------------------
!?BG0&1000;
!!FU66666&v1367=v85/v1360=6:Pv85/0/22/0/0/0/0/0;
!!FU66666&v1367=v85/v1360=7:Pv85/0/1/0/0/0/0/0;
!!FU66666&v1367=v85/v1360=1:Pv85/0/25/0/0/0/0/0;
!!FU66666&v1367=v85/v1360=10:Pv85/0/25/0/0/0/0/0;
!!FU66666&v1367<>v85/v1360=6:Pv85/0/23/0/0/0/0/0;
!!FU66666&v1367<>v85/v1360=7:Pv85/0/23/0/0/0/0/0;
!!FU66666&v1367<>v85/v1360=1:Pv85/0/26/0/0/0/0/0;
!!FU66666&v1367<>v85/v1360=10:Pv85/0/26/0/0/0/0/0;
!?BG1&1000;
!!FU66666&v1367=v85/v1360=6:Pv85/0/23/0/0/0/0/0;
!!FU66666&v1367<>v85/v1360=6:Pv85/0/22/0/0/0/0/0;
!?FU66666&x1=v85;
!!HEx1:Xx2/x3/x4/x5/x6/x7/x8;
;
!?FU9999999;
!!BMx16:S?y1 I?y2 T?y4;
!#MA:Ly4/?y5;
!!BHy2:N?y3;
!!BMx16&v997>=0/y3<>v85/y5<4:M54/99/3;
!!BMx16&v997>=0/y3<>v85/y5>3/y5<6:M54/99/2;
!!BMx16&v997>=0/y3<>v85/y5>5:M54/99/1;
;
------------------------------END--------------------------------
|
|