gigichart 发表于 2013-9-30 01:24:08

fly的英雄重转极限版问题

这个脚本在地图上有电脑满足重转条件时就会卡死,试着删除了附加的功能只保留数值重转效果问题仍然没有解决;bf;ZVSE
_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_ScriptName=攻防重置
ERMS_ScriptAuthor=syz
ERMS_ScriptVersion=1.0.0
ERMS_ScriptDate=26.9(September).2013
ERMS_ScriptERMVersion=2.70
ERMS_ScriptLanguage=中文(简体,中国) or 中文(简体) (native)
ERMS_PoweredBy=ERM Scripter v. 2004.6.29.918
**w143=A,D,w144=P, K FU66 AHI v94 DFI v95 ACT v300-v305 v76 v4711-v4712 V9-V10V2500-V2541
********************************
!?PI;
!!DO66/0/155/1:P1;
********************************
********************************
!?CM2;
!!CM:I?f F?g;
!!CM:H?h/?i;
!!FU66:P-4/h/f/g P-5/h/f/g;
********************************
********************************
!?BA0;         战斗一开始增加魔法值
!!IF:V9/0V10/0;
!!BA:H0/?v94 H1/?v95;
!!FU66:P-1/v94;
!!FU66&v95>-1:P-1/v95;
!!DO66/2500/2541/1:P-101;

!?FU66&x1=-1;英雄知识重转函数
!!IF:Wx2;
!!HEx2:Fd/d/d/?j/1 S24/?y-1;
!!VRj&y-1=0:*10;
!!VRj&y-1=1:*125:100;
!!VRj&y-1=2:*15;
!!VRj&y-1=3:*20;
!!HEx2:I?t/1;
!!VRk:S0;
!!VRk:Sw144:1000;         knowlege
!!VRk:*2;
!!FU&t>j:E;
!!HEx2:Idk/1;

!?BF;
!!DO66/0/20/1&v94>-1:P2/v94;
!!DO66/21/41/1&v95>-1:P2/v95;

!?BG0;
!!BG:A?v300 S?v301 H?v302 Q?v303 D?v304 E?v305;
!!FU66:P3/v301/v302/v300 P4/v301/v302/v300;
!!DO66/0/21/1&v303=1:P5/v301/v302/v300/v303/v304;群体疯狂
!!DO66/21/41/1&v303=0:P5/v301/v302/v300/v303/v304;
!!DO66/0/21/1&v303=1:P6/v301/v302/v300/v303/v304;群体攻击魔法
!!DO66/21/41/1&v303=0:P6/v301/v302/v300/v303/v304;
!!DO66/0/20/1&v303=0:P14/v301/v302/v303/v304/v300;Resurrection Magic
!!DO66/21/41/1&v303=1:P14/v301/v302/v303/v304/v300;
!!DO66/0/20/1&v303=0:P15/v301/v302/v303/v304/v300;Animate Dead Magic
!!DO66/21/41/1&v303=1:P15/v301/v302/v303/v304/v300;

!?FU66&x1=3;
!!FU|x4<>1:E;
!!IF:Wx3;
!!VRe1:S0;
!!VRe1:Sw144%1000;         POWER
!!VRe1::70;
!!FU&e1<1:E;
!!FU|x2<27/x2=38/x2=39/x2=40/x2=47/x2=57/x2=59/x2=60/x2>61:E;
!!BG:D-1;      全体施法

!?FU66&x1=4;群体失明
!!FU|x4<>1:E;
!!IF:Wx3;
!!VRe1:S0;
!!VRe1:Sw144%1000;         POWER
!!VRe1::130;
!!FU|e1<1/x2<>62:E;
!!BG:D-1;

!?FU66&x1=5;群体疯狂
!!FU|x4<>1:E;
!!IF:Wx3;
!!HEx3:I?g/1;
!!VRe1:S0;
!!VRe1:Sw144%1000;         POWER
!!VRe1::150;
!!FU|e1<1/x2<>59:E;
!!BMx16:N?y1 T?y2 P?y3;
!!FU&y2>144/y2<150|y1<1/x6=y3/g<100:E;
!!BHx5:Cx2/y3/1/1;

!?FU66&x1=6;群体攻击魔法
!!FU|x4<>1:E;
!!IF:Wx3;
!!HEx3:I?g/1 Fd/d/?j/d/1;
!!VRe1:S0;
!!VRe1:Sw144%1000;         POWER
!!VRe1::100;
!!VRy1:S-1;
!!VRy1&x2>14/x2<19:S2;
!!VRy1&x2>19/x2<24:S2;
!!FU|e1<1/y1<0:E;
!!BMx16:N?y-1 T?y2 P?y3;
!!FU&y2>144/y2<150|y-1<1/x6=y3/g<50:E;
!!BHx5:Cx2/y3/j/1;

!?BG1;          英雄魔力重转函数,增加魔法持续时间
!!DO66/0/20/1&v303=0:P-6/v301/v300/v302/v303;
!!DO66/21/41/1&v303=1:P-6/v301/v300/v302/v303;
!!DO66/0/20/1&v303=1:P-7/v301/v300/v302/v303;
!!DO66/21/41/1&v303=0:P-7/v301/v300/v302/v303;
!!FU66:P7/v303/v300;一回合多次施法
!!FU66:P18/v300/v301/v302/v305/v303; 魔力重转后复活或者聚灵魔法威力计算

!?FU66&x1=18;
!!FU|x2<>1/x3<>38/x3<>39:E;
!!IF:Wx4;
!!VRh:S0;
!!VRh:Sw144%1000;         POWER
!!BMx5:I?g P?t N?y-1 B?y-2;
!!FU|g<>x6/y-1<1/y-1>=y-2/h<1:E;
!!BMx5:Cx3/t/3/h/1;

!?FU66&x1=7;玩家知识重转函数,一回合多次施法
!!FU|x3<>1:E;
!!BHx2:N?y1;
!!OW:C?i;
!!HEy1:O?g;
!!FU&i<>g:E;
!!IF&y1>-1:Wy1;
!!VRv1:S0;
!!VRv1:Sw144:1000;         knowlege
!!VRv1::30;
!!VRv2:Sv1-v76;
!!FU|v2=<0/v76>4:E;
!!BHx2:M0;
!!VRv76:+1;

!?FU66&x1=-6;有益魔法
!!IF:Wx4;
!!FU|x3<>1:E;
!!FU|x2<27/x2=35/x2=38/x2=39/x2=40/x2=42/x2=45/x2=50/x2=52/x2=47/x2=54/x2>55:E;
!!BMx16:Gx2/?y-1/?y-2;
!!FU&y-1=0:E;
!!HEx4:Fd/d/?y11/d/1;
!!VRh:S0;
!!VRh:Sw144%1000;         POWER
!!VRy-1:+h;
!!VRy12:Sy11+h;
!!BMx16:I?g;
!!FU|g<>x5/y-1>y12:E;
!!BMx16:Mx2/y-1/y-2;

!?FU66&x1=-7;诅咒魔法
!!IF:Wx4;
!!FU|x3<>1:E;
!!VRy21:S0;
!!VRy21|x2=42/x2=45/x2=50/x2=52/x2=54/x2=60/x2=61/x2=62:S1;
!!FU|y21<>1:E;
!!BMx16:Gx2/?y-1/?y-2;
!!FU&y-1=0:E;
!!HEx4:Fd/d/?y11/d/1;
!!VRh:S0;
!!VRh:Sw144%1000;         POWER
!!VRy-1:+h;
!!VRy12:Sy11+h;
!!BMx16:I?g;
!!FU|g=x5/y-1>y12:E;
!!BMx16:Mx2/y-1/y-2;

!?CM4;
!!BG:H?v1 Q?v2;
!!FU|v76>4:E;
!!IF:Wv1;
!!VRm:S0;
!!VRm:Sw144%1000;         POWER
!!VRm::20;
!!VRn:S0;
!!VRn:Sw144:1000;         knowlege
!!VRn::20;
!!CM:I?y30 S?y31 F?y32;
!!FU66:P9/y30/y31/y32/m;
!!FU66:P10/y30/y31/y32/n;

*******************************
!?BR;            每回合回复魔法值
!!FU&v997<1:E;
!!FU66&v95<0:P-8/v94;
!!FU66&v95>-1:P8/v94/v95;
!!DO66/2500/2520/1:P-100;
!!VRv76:S0;

!?FU66&x1=-8;野兵作战根据知识重转值增加魔法值
!!IF:Wx2;
!!VRh:S0;
!!VRh:Sw144:1000;         knowlege
!!HEx2:Fd/d/d/?j/1 S24/?y-1;
!!HEx2:I?y1/1;
!!VRj&y-1=0:*10;
!!VRj&y-1=1:*125:100;
!!VRj&y-1=2:*15;
!!VRj&y-1=3:*20;
!!FU|y1>=j:E;
!!VRy1:+h;
!!HEx2:Iy1/1;

!?FU66&x1=8;英雄之间作战根据知识重转值增减魔法值
!!IF:Wx2;
!!VRv1:C0/0/0;
!!VRv1:Sw144:1000;         knowlege
!!IF:Wx3;
!!VRv2:Sw144:1000;         knowlege
!!VRv3:Sv1-v2;
!!HEx2:Fd/d/d/?j/1 S24/?y-1;
!!HEx2:I?y1/1;
!!VRj&y-1=0:*20;
!!VRj&y-1=1:*25;
!!VRj&y-1=2:*30;
!!VRj&y-1=3:*40;
!!VRm:Sv1;
!!VRm&y-1=0:*20;
!!VRm&y-1=1:*25;
!!VRm&y-1=2:*30;
!!VRm&y-1=3:*40;
!!VRj:+m;
!!VRy1:+v3;
!!VRy1&y1<0:S0;
!!HEx2&y1<j:Iy1/1;
!!HEx3:Fd/d/d/?k/1 S24/?y-2;
!!HEx3:I?y2/1;
!!VRk&y-2=0:*20;
!!VRk&y-2=1:*25;
!!VRk&y-2=2:*30;
!!VRk&y-2=3:*40;
!!VRn:Sv2;
!!VRn&y-2=0:*20;
!!VRn&y-2=1:*25;
!!VRn&y-2=2:*30;
!!VRn&y-2=3:*40;
!!VRk:+n;
!!VRy2:-v3;
!!VRy2&y2<0:S0;
!!HEx3&y2<k:Iy2/1;
********************************
!?FU66&x1=1;英雄变量复位函数
!!IF:Wx16;
!!VRw143:S0;A,D储存
!!VRw144:S0;P,K储存
********************************
********************************
!?FU66&x1=-2;   四围刷新函数
!!HEx2:F?v1/?v2/d/d/1;获取四围
!!FU|v1<85/v2<85:E;   不足85时中止
!!VRy11:Sv1 -85;
!!VRy12:Sv2 -85;
!!IF:Wx2;         使用英雄变量
!!VRw143:+y11;       攻击储存
!!VRy12:*1000;
!!VRw143:+y12;       防御储存
!!HEx2:F85/85/d/d;四围刷新
!!HEx2:B0/?z7;
!!IF&x3=0:M^{恭喜,%Z7 成功重转}^;
!!UN&x3=0:R3/-1;

!?FU66&x1=-3;   四围刷新函数
!!HEx2:Fd/d/?v3/?v4/1;获取四围
!!FU|v3<80/v4<80:E;   不足80时中止
!!VRy13&v3>80:Sv3 -80;
!!VRy14&v4>80:Sv4 -80;
!!IF:Wx2;         使用英雄变量
!!VRw144:+y13;      魔力储存
!!VRy14:*1000;
!!VRw144:+y14;      知识储存
!!HEx2:Fd/d/80/80;四围刷新
!!HEx2:B0/?z7;
!!IF&x3=0:M^{恭喜,%Z7 成功重转}^;
!!UN&x3=0:R3/-1;
********************************
********************************
!?FU66&x1=2;战场攻防补偿函数
!!BMx16:T?y10 N?y11;
!!FU|y10<0/y11<1:E;
!!IF:Wx2;
!!VRm:S0; !!VRn:S0;
!!VRm:Sw143:1000;D+
!!VRn:Sw143%1000; A+
!!BMx16:Adn Ddm;
*******************************
********************************
!?FU66&x1=-4;
!!FU|x3<103/x3>104/x4<>512:E;
!!HEx2:B0/?z7;
!!HEx2:F?y11/?y12/d/d/1;
!!IF|y11<85/y12<85:Q3/31/0/32/0/4^{%Z7} 还不够重转条件

攻击防御同时大于85才能重转^;
!!FU|y11<85/y12<85:E;
!!IF:Q10/31/0/32/0/2^%Z7已满足重转条件,要重转吗?^;
!!FU66&10:P-2/x2/0;
!!CM&10:R0;

!?FU66&x1=-5;
!!FU|x3<105/x3>106/x4<>512:E;
!!HEx2:B0/?z7;
!!HEx2:Fd/d/?y13/?y14/1;
!!IF|y13<80/y14<80:Q4/33/0/34/0/4^{%Z7} 还不够重转条件

魔力知识同时大于80才能重转^;
!!FU|y13<80/y14<80:E;
!!IF:Q10/33/0/34/0/2^%Z7已满足重转条件,要重转吗?^;
!!FU66&10:P-3/x2/0;
!!CM&10:R0;
********************************
********************************
!?CM2;
!!CM:I?y30 S?y31 F?y32;
!!FU|y30<>1/y31<>14/y32<>512:E;
!!HE-1:B0/?z7;
!!IF:W-1;
!!VRm:S0; !!VRn:S0; !!VRg:S0; !!VRh:S0;
!!VRm:Sw143:1000;         defense
!!VRn:Sw143%1000;         attack
!!VRg:Sw144:1000;         knowlege
!!VRh:Sw144%1000;         POWER
!!IF:Q2/31/n/32/m/1^%Z7攻防重置后的附加能力:^;
!!IF:Q2/33/h/34/g/1^%Z7魔智重置后的附加能力:^;
!!CM:R0;
********************************
!?MR0;    英雄魔力重转<=>魔法伤害加成
!!BG:A?y-1 S?y-2 H?y-3;
!!IF:Wy-3;
!!FU|y-1<>1:E;
!!MR:D?y-9;
!!VRy-4:S0;!!VRk:S0;
!!VRy-4&y-2=15:S10;   magic arrow
!!VRy-4&y-2=16:S20;   Ice Bolt
!!VRy-4&y-2=17:S25;   Lightning Bolt
!!VRy-4&y-2=18:S80;   Implosion
!!VRy-4&y-2=19:S40;   Chain Lightning
!!VRy-4&y-2=20:S10;   Frost Ring
!!VRy-4&y-2=21:S10;   Fireball
!!VRy-4&y-2=22:S10;   Inferno
!!VRy-4&y-2=23:S25;   Meteor Shower
!!VRy-4&y-2=24:S5;    Death Ripple
!!VRy-4&y-2=25:S10;   Destroy Undead
!!VRy-4&y-2=26:S50;   Armageddon
!!VRy-4&y-2=57:S600;   Titan's Lightning Bolt
!!VRk:Sw144%1000;         POWER
!!VRy-10:Sk*y-4;
!!VRy-9:+y-10;
!!HEy-3:Ed/?m;
!!VRy-9&k>199:*m;魔力重转值大于200魔法伤害=基本伤害*英雄等级
!!MR:Dy-9;
********************************
!?MR2;    英雄魔力重转<=>无视魔法免疫
!!IF:Wv302;
!!VRe1:S0;
!!VRe1:Sw144%1000;         POWER
!!VRe1::200;
!!FU|e1<1/v300<>1:E;
!!MR:F0;
********************************
!#TM5:S2/999/1/255;

!?TM5;
!!DO66/0/155/1:P-99;

!?FU66&x1=-99;
!!HEx16:N?j O?y-1;
!!OW&y-1>-1:Iy-1/?y-1;
!!HEj&j>-1:F?y1/?y2/?y3/?y4/1; 获取英雄四围
!!FU66&y-1=1:P-9/j/y1/y2;
!!FU66&y-1=1:P-10/j/y3/y4;

!?FU66&x1=-9;   四围刷新函数
!!FU|x3<75/x4<75:E;   不足75时中止
!!VRy11:Sx3 -75;
!!VRy12:Sx4 -75;
!!IF:Wx2;         使用英雄变量
!!VRw143:+y11;       攻击储存
!!VRy12:*1000;
!!VRw143:+y12;       防御储存
!!HEx2:F75/75/d/d;四围刷新

!?FU66&x1=-10;   四围刷新函数
!!FU|x3<70/x4<70:E;   不足70时中止
!!VRy13:Sx3 -70;
!!VRy14:Sx4 -70;
!!IF:Wx2;         使用英雄变量
!!VRw144:+y13;       魔力储存
!!VRy14:*1000;
!!VRw144:+y14;       知识储存
!!HEx2:Fd/d/70/70;四围刷新
**过天判断**英雄移动是魔法值是否为满值作为判断条件
!?HM-1;
!!HE-1:N?j;
!!FU66:P-11/j;

!?FU66&x1=-11;
!!HEx2:Fd/d/d/?y1 S24/?y-1;
!!IF:Wx2;!!VRy11:S0;!!VRy12:S0;!!VRy13:S0;
!!VRy11:Sw144:1000; knowlege
!!FU|y11<1:E;
!!VRv1&y-1=0:Sy1*10;
!!VRv1&y-1=1:Sy1*125:100;
!!VRv1&y-1=2:Sy1*15;
!!VRv1&y-1=3:Sy1*20;
!!VRv2&y-1=0:Sy1*20;
!!VRv2&y-1=1:Sy1*25;
!!VRv2&y-1=2:Sy1*30;
!!VRv2&y-1=3:Sy1*40;
!!HEx2:I?y2;
!!VRy12&y-1=0/y2=v1:Sy11*10;
!!VRy12&y-1=1/y2=v1:Sy11*125:100;
!!VRy12&y-1=2/y2=v1:Sy11*15;
!!VRy12&y-1=3/y2=v1:Sy11*20;
!!VRy13&y-1=0/y2=v2:Sy11*20;
!!VRy13&y-1=1/y2=v2:Sy11*25;
!!VRy13&y-1=2/y2=v2:Sy11*30;
!!VRy13&y-1=3/y2=v2:Sy11*40;
!!VRv3&y2=v1:Sy2+y12;
!!VRv4&y2=v2:Sy2+y13;
!!HEx2&y2=v1:Iv3;
!!HEx2&y2=v2:Iv4;

!?CM4&1000;                               mouse move trigger
!!CM:D?y-1 F?y1;
!!BG:Q?y-10;                     attacking side? (0=left, 1= right)
!!BHy-10:N?y-5;
!!IF:Wy-5;
!!HEy-5:B0/?z7;
!!VRm:S0; !!VRn:S0; !!VRg:S0; !!VRh:S0;
!!VRm:Sw143:1000;         defense
!!VRn:Sw143%1000;         attack
!!VRg:Sw144:1000;         knowlege
!!VRh:Sw144%1000;         POWER
!!VRy2&y-10=0:S252;!!VRy2&y-10=1:S253;
!!IF&y1=512/y-1=y2:Q2/31/n/32/m/4^%Z7攻防重置后的附加能力:^;
!!IF&y1=512/y-1=y2:Q2/33/h/34/g/4^%Z7魔智重置后的附加能力:^;
!!VRy-11&y-10=0:S1; !!VRy-11&y-10=1:S0;   opponent hero?
!!BHy-11:N?y-30;                        is this a hot seat 2 hero battle?
!!FU&y-30=-1:E;                           end if no hero opponent on field]
!!IF:Wy-30;
!!HEy-30:B0/?z7;
!!VRm:S0; !!VRn:S0; !!VRg:S0; !!VRh:S0;
!!VRm:Sw143:1000;         defense
!!VRn:Sw143%1000;         attack
!!VRg:Sw144:1000;         knowlege
!!VRh:Sw144%1000;         POWER
!!VRy3&y-10=0:S253;!!VRy3&y-10=1:S252;
!!IF&y1=512/y-1=y3:Q2/31/n/32/m/4^%Z7攻防重置后的附加能力:^;
!!IF&y1=512/y-1=y3:Q2/33/h/34/g/4^%Z7魔智重置后的附加能力:^;
;exp;这到底是哪里的问题呢

lin198597 发表于 2014-3-15 12:24:20

请教大大们 这代码覆盖去那才能用呢 得闲求教下新手
页: [1]
查看完整版本: fly的英雄重转极限版问题

捐赠