xuzhouhudajz 发表于 2017-11-25 14:26:09

最近对加强脚本做了一次修改

此脚本是对人类玩家进行了加强。加强方面有移动能力、伤害能力、魔法能力、反击能力,以及对多特长战后恢复原特长等
。遗憾就是魔法伤害加强,不知道是什么原因对方也加强了就做了一些限制,感兴趣的朋友可以试试!
ZVSE
!#TM2:S1/999/1/255;[直接使用官方的TM2通用触发器]
!?TM2;
!!DO10000009/0/155/1:P-999999;
!!DO10000010/0/7/1:P;
!!DO10000007/0/155/1:P;
!!DO10000009/0/155/1:P-999998;
!?FU10000009&x1=-999998;
!!HEx16:O?y1;#0
!!FU&y1=-1:E;#1
!!OW:Iy1/?y2;
!!FU&y2=1:E;
!!OW:C?i;
!!FU&y1<>i:E;
!!VRy3:S0;
!!HEx16:C0/y3/?y6/?y4;#7
!!if&y6>-1:;
!!MA:Cy6/6/?y16;
!!VRy17:Sy4 *y16;
!!VRy18:Sy17:50;[计算额外消耗]
!!OW:Ry1/6/?y7;
!!VRy7:-y18;
!!VRy7&y7<0:S0;
!!OW:Ry1/6/y7;[扣除金额后余额]
!!en:;
!!VRy3:+1;
!!SN&y3<7:G7;
;
!?FU10000007;
!!HEx16:O?y1;#0
!!FU&y1=-1:E;#1
!!OW:Iy1/?y2;
!!FU&y2=1:E;
!!OW:C?i;
!!FU&y1<>i:E;
!!HEx16:E?j/?k W?y1 Fd/d/d/?y11 A2/0//?y20;取得英雄移动力
!!VRy3:Sy1*k :25 +y1;
!!VRy6:Sk *100;
!!VRy7:S500 *k :10;
!!VRy11:*3;
!!HEx16:Gy3 Wy3 Y9/y6/7/1 Y64/2/7/1 Y7/y11/7/1;
!!HEx16&y20<1:A1/0/17;
!!VRy8:S0;
!!HEx16:S17/?y35 Sy8/?y36 B2/?y9;#14
!!HEx16&y35<1:S17/1;
!!if&y9>7/y9<10:;
!!HEx16&y36<1/k>25:Sy8/1;
!!en:;
!!if&y9<8|y9>9:;
!!HEx16&y36<1/k>25/y8<>12:Sy8/1;
!!en:;
!!VRy8:+1;
!!SN&y8<28:G14;
;
-----------------------------------------------------------

!?FU10000009&x1=-999999;
!!HEx16:O?y1;#0
!!FU&y1=-1:E;#1
!!OW:Iy1/?y2;
!!FU&y2=0:E;
!!OW:C?i;
!!FU&y1<>i:E;
!!VRy3:S7;
!!VRy3:-1;#7
!!HEx16:C0/y3/?y6/?y4;
!!if&y4<200/y6>-1:;
!!VRy5:Sy4:20000;难度调整
!!HEx16:C0/y3/d/dy5;
!!en:;
!!SN&y3>0:G7;
;

!?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:;

!!HEv85:X?v9990/?v9991/?v9992/?v9993/?v9994/?v9995/?v9996;
!?BA1&1000;
!!FU66666&v85>=0/v990>=0:Pv85/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&v9555=v85:P;
!!DO9999999/21/41/1&v9560=v85:P;
---------------------------新英雄特长--------------------------------
!?FU9999996;
!!BMx16:H?y-37 T?y-44 S?y-45 U1/?y-46 A?y-1 D?y-2 U2/?y-3 U3/?y-4;
!!HEv85:E?j/?k;
!!VRy-49:Sk :4;
!!VRy-5:Sy-1 *k :50;
!!VRy-6:Sy-2 *k :50;
!!VRy-7:Sy-3 *k :50;
!!VRy-8:Sy-4 *k :50;
!!VRy-47:Sy-46 *k :50 +30;
!!VRy-45:*k :50;
!!VRy-37:+200 *k :10 +150;
!!VRy-37&y-37>2140000000:S2140000000;
!!VRy6:Sk*2 +30;
!!BMx16&y-44=171|y-44=122/y-44=195/y-44=126/y-44=128:U1/dy6 U2/dy6 Hdy-37 Sd10 Bdy-49 Ndy-49;
!!BMx16:U1/dy-7 U2/dy-7 Ady-5 Ddy-6 U3/dy-8 Sdy-45;
!!BMx16|x16=v7208/x16=v7207:U1/dy-47 U2/dy-47;
!?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*10 +y40 +y41 *2; 每级+20%、力量知识每点+10%
!!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 *50 :y15;
!!VRy17|y17<0/y15=1:S10;
!!VRi:&4;
!!VRy50:S0 R100;
!!HEv85:Ed/?y53/1;
!!VRy52:Sy53 +y51 +y54 +30 +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;
!?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 *80 :y15;
!!VRy17&y15<y16/y23=v85/y15>0/y16>0:S0;
!!VRy50:S0 R100;
!!HEv85:Ed/?y58/1 B0/?z8;
!!VRy51:Sy58 +y17 +10;
!!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<16/y58>15:;
!!BMy1:C18/y30/3/3/1;
!!en:;
!!if&y14<>v85/y58>15/y50>84:;
!!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/v6103=0;
!!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/v6103=0;
!!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;

------------------------------END--------------------------------

!?FU9999999;
!?BG0&1000/v6103=0;

!!FU77730&v9555=v85/v1365=1/v1360=6:Pv85/v9555/v1362/v1375;

!!FU77730&v9560=v85/v1365=0/v1360=6:Pv85/v9560/v1362/v1375;


!?FU77730&x1=v85;

!!FU|x3<0/x3>41:E;

!!IF:Wx2;

!!FU|x4=5/w185=1:E;

!!BMx3:R?y4;

!!if&y4>0:;

!!HEv85:Ed/?y58/1;
!!VRy48&y58>9:Sy58:10;
!!VRy48&y58<10:S0;
!!FU16060:Px3/y48;//调用额外反击次数汇编函数 By 007

!!en:;

;

贤知有您 发表于 2017-11-25 16:42:55

估计AI会罢工的,居然对玩家增强了,哈哈;aieol;

话说楼主不做个地图,这样的特殊英雄才好玩吧;kaun;

xuzhouhudajz 发表于 2017-11-25 19:20:52

贤知有您 发表于 2017-11-25 16:42
估计AI会罢工的,居然对玩家增强了,哈哈

话说楼主不做个地图,这样的特殊英雄才好玩吧

建议不错,尝试下,还从未做个地图!

xuzhouhudajz 发表于 2017-11-25 19:28:47

贤知有您 发表于 2017-11-25 16:42
估计AI会罢工的,居然对玩家增强了,哈哈

话说楼主不做个地图,这样的特殊英雄才好玩吧

冠军模式是那个脚本,想对电脑玩家去除限制!并结合大富翁,这样调整难度就无法想象了!这样的英雄就能大展宏图!

heguanbo 发表于 2022-4-19 20:11:44

!?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:;

!!HEv85:X?v9990/?v9991/?v9992/?v9993/?v9994/?v9995/?v9996;
!?BA1&1000;
!!FU66666&v85>=0/v990>=0:Pv85/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&v9555=v85:P;
!!DO9999999/21/41/1&v9560=v85:P;
这一部分的函数是什么意思 增加那些效果
页: [1]
查看完整版本: 最近对加强脚本做了一次修改

捐赠