|
楼主 |
发表于 2015-7-4 08:23:23
|
显示全部楼层
自己编的一个脚本不能放入封神2.2.1了,放入就提示超过30M,所以想到了插件。脚本内容如下:ZVSE
ERMS_ScriptName=script92
ERMS_ScriptAuthor=GB
ERMS_ScriptVersion=1.0.0
ERMS_ScriptDate=23.5(May).2005
ERMS_ScriptERMVersion=2.70
ERMS_ScriptLanguage=简体中文 or 中文(简体) (native)
ERMS_ScriptUsedVariables=v85-87;z3-8;z466;v2800-2806
ERMS_AdditionalFiles=新英雄特长ERM;在其他ERM不要修改v83-86的值
ERMS_ScriptUsedTimers=19
ERMS_ScriptUsedFunctions=FU644;FU7041-7052
_WARNING_#1=IMPORTANT! This file is not in a plain text format. NEVER use any editor except ERM_S for making any kind of changes!
ERMS_PoweredBy=ERM Scripter v. 2004.6.29.918
;------------------------------选择新特长--------------------------------------------
!#VRv83:C156/156/156/156; 初始化变量
!#VRz3:S^新英雄特长^;
!#VRz4:S^输入拥有该特长的英雄名字:^;
!#VRz5:S^英雄特长为:^;
!#VRz6:S^每级增加己方部队生命的5%^;
!#IF:D6/3/4/5/////////6/7/8/9;
!#IF:E87/6;
!#VRz466&v87>0:Sz1; 将输入的名字保存到z466
!?TM19&1000;
!!DO9999995/0/155/1:P; 历遍所有英雄
!!VRv85&v85=156:S99; 没有符合名字的英雄,则默认设为跟Mars的设置一样!?FU9999995;
!!HEx16:B0/?z8; 取名字
!!HEx16:N?y10; 取编号
!!VRv85&z8=z466/v87=1:Sy10; 比较
!!VRz9&z8=z466/v87=1:S^L^;
!!VRz9&z8=z466:+z8;
!!HEx16&z8=z466:B0/z9;!!HEx16&x16=v85:A4/151 A4/149 A4/149;!!HEx16&x16=v85:S17/?y35;!!HEx16&x16=v85/y35=0:S17/1;!#TM77:S1/999/1/255;
!?TM77;
!!DO9999994/0/155/1:P; 检查每个英雄
!?FU9999994;!!HEx16&x16=v85:E?j/?k W?y1 O?y6;取得英雄移动力 !!FU&y6<0:E;!!VRy2:S1;!!VRy81:Sy1 *k :25;移动力随等级计算!!VRy6:Sy2 *k *100;经验随等级计算!!VRy7:Sy2 *k :2;!!VRy3:Sy1+y81;!!HEx16&x16=v85:Gy3 Wy3 Y9/y6/99/1 Y64/2/99/1 Y21/500/99/1;;---------------------------战斗开始-------------------------------------------
!?BA0&1000;
!!BA:H0/?v9555; 保存进攻方英雄到v9555
!!BA:H1/?v9560; 防守方hero到v9560
!?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;---------------------------新英雄特长--------------------------------
!?FU9999996;!!BMx16:H?y-37 U3/?y-62;!!HEv85:E?j/?k;!!FU&y-37<=0:E;
!!VRy-37:*k :20;!!VRy-37&y-37<1:S1;
!!VRy-37&y-37>2140000000:S2140000000;
!!BMx16:Hdy-37;
!!VRy-62&y-62>0:+k;!!BMx16:U3/y-62;------------------------------魔法伤害加倍--------------------------------
;!?MR0&1000;
!!BG:Q?y1 A?y3 N?y6;
!!BHy1:N?y2;!!HEv85:Ed/?y4/1;
!!BMy6:I?y7 T?y11;!!BHy7:N?y8;
!!MR:D?y5 S?y9;
!!VRy5:+ y5 *y4 :5;
!!VRy5&y5<0:S0;!!VRy5&y5>2140000000:S2140000000;
!!FU&y9=29:E;!!FU&y2<>v85/y8<>v85:E;!!MR:Dy5;;
;------------------------------多次射击--------------------------------
!?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/?y20; [内存]
!!VRy31:Sx1 *1352 +21708 +y20;[A方内存地址]
!!VRy41:Sx2 *1352 +21708 +y20;[B方内存地址]
!!SN:E4453920/2/y31/y41; [射击且伤害]
!!BMx1:U3/d-1; [减少弹药]
!!VRx3:-1;
!!SN&x3>0:G0; [循环代码]------------------------------免物理伤害--------------------------------;!?FU9999997;!?MF1&1000;!!MF:N?y1;!!BG:Q?y3;
!!VRy6&y3=0:S1;!!VRy6&y3=1:S0;
!!BMy1:T?y2 I?y7 F?i;!!BHy6:N?y5;!!BHy7:N?y8;
!!BMx16&y5=v85:G212/?y54/d G213/?y51/d;!!VRi:&4;!!VRy50:S0 T100;!!HEv85:Ed/?y53/1;!!VRy52:Sy53 +y51 +y54;!!VRy50&y50>39:-y52;!!BMy1&y50<41/y5=v85/y8=v85/i=4:V86 V85 V84;!!MF&y50<41/y5=v85/y8=v85/i=4:E0;!!VRz900:S^{%Y2成功格挡。}^;!!BU&y50<41/y5=v85/y8=v85/i=4:Mz900;------------------------------物理伤害加倍--------------------------------;!?FU9999998;!?MF1&1000;!!MF:N?y1 F?y6;!!BMy1:T?y2 I?y13;!!BG:Q?y3 A?y4;
!!VRy11&y3=0:S1;!!VRy11&y3=1:S0;!!BHy3:N?y12;!!BHy11:N?y5;!!BHy13:N?y14;!!VRy50:S0 T100;
!!HEv85:Ed/?y8/1;
!!BMx16&y12=v85:G212/?y54/d G213/?y51/d;!!VRy52:Sy8:3 +y51 +y54;!!VRy50&y50>19:-y52;!!VRy7:Sy8:8;!!VRy7&y7<2:S2;!!VRy10&y7>0:Sy6*y7;!!VRy10&y10>2140000000:S2140000000;
!!BMy1&y50<21/y5<>v85/y12=v85/y14<>v85/y4<>7:V48 V30 V73;!!MF&y50<21/y5<>v85/y12=v85/y14<>v85/y4<>7:Fy10;!!VRz900:S^{%V85士气高涨%Y54得到%Y51幸运点数带来%Y52的好运造成%Y2受到%Y7倍%Y10点伤害。}^;!!BU&y50<21/y5<>v85/y12=v85/y14<>v85/y4<>7:Mz900;------------------------------END--------------------------------; |
|