佳丽云

英雄无敌3-WoG中文站

 找回密码
 英雄注册|Register
查看: 9743|回复: 6

凤凰战后复活ERM(1.3版)

[复制链接]

该用户从未签到

75

回帖

6249

金币

2

精华

2级 Adventuring Hero

Rank: 2

积分
345
发表于 2007-2-10 06:43:22 | 显示全部楼层 |阅读模式
大家是否觉得凤凰的复活很鸡肋,必须全死光才复活20%,假设有100个凤凰,被打死了99个,然后战后仅有一个,而全死光了却因为复活而变成20个,战后就有20个,这样设计明显很不合理.本[wiki]ERM[/wiki]就是解决这个问题的.
ERM的作用:假如凤凰或[wiki]神[/wiki]圣凤凰在战斗中还有复活次数则战后就会复活,复活数量为战前数量的20%,但损失少于20%则自动复活为原数量.例如100个凤凰,被打死了99个,然后战后仅有一个,则会复活20个变成21个,而在战场上复活的队伍则不能在战后复活.
此ERM有一个BUG,如果开了经验系统,增加了凤凰的复活次数则有可能出现战前和战后都复活的情况,那么还是会出现没死光不如死光的情况,以后有时间再修复.
使用了这个ERM以后建议开凤凰产量减1,不然凤凰实在太BT了.
本来还想让大[wiki]天使[/wiki]如果在战斗中没有用复活就可以在战后用复活,但是这样要做一个让人选择复活哪支部队的对话框,我不会做有选择的对话框,如果有谁会做的话,请详细的告诉我制作方法,先谢了.


1.1版的改动:如果凤凰的复活次数大于1,则战后的最少数量为原数量的40%,但战后剩余数量大于原数量的20%还是只能复活20%.另外此版本还是会出现死光了比没死光最后数量多的情况,因为凤凰在战斗中复活的数量有可能大于20%.而战后复活则一定为20%,没法解决了.

1.2版的改动:修复凤凰前面有空格,凤凰不复活的BUG。

1.3版的改动:修正凤凰复活的数目问题

!?BA0;
!!VRv9140:C0/0/0/0/0/0/0;                   [no creatures to resurrect after battle attacker]
!!VRv9147:C0/0/0/0/0/0/0;                   [no creatures to resurrect after battle defender]
!!BA:M0/0/?v9101/?v9140;                      [save qty in each of attacking hero's slots for after battle]
!!BA:M0/1/?v9102/?v9141;                      [to determine qty lost for first aid skill]
!!BA:M0/2/?v9103/?v9142;                      // new by Thomas Franz: save creature type in v9101-v9114
!!BA:M0/3/?v9104/?v9143;
!!BA:M0/4/?v9105/?v9144;
!!BA:M0/5/?v9106/?v9145;
!!BA:M0/6/?v9107/?v9146;
!!BA:M1/0/?v9108/?v9147;                      [save qty in each of defending hero's slots for after battle]
!!BA:M1/1/?v9109/?v9148;                      [to determine qty lost for first aid skill]
!!BA:M1/2/?v9110/?v9149;
!!BA:M1/3/?v9111/?v9150;
!!BA:M1/4/?v9112/?v9151;
!!BA:M1/5/?v9113/?v9152;
!!BA:M1/6/?v9114/?v9153;
!!DO7079/0/6/1:P0/21;
!!BA:H0/?v9902;                             [get attacking hero #]
!!BA:H1/?v9903;                             [get defending hero #]
!?FU7079;
!!VRy1:Sx16+9101;
!!VRy2:Svy1;
!!VRy3:Sx16+785;
!!VRvy3:Sx1;
!!VRx1&y2>0:Sd1;
!!VRy4:Sx16+9108;
!!VRy5:Svy4;
!!VRy6:Sx16+792;
!!VRvy6:Sx2;
!!VRx2&y5>0:Sd1;
!?BG1;
!!BMv785:E?v9115;
!!BMv786:E?v9116;
!!BMv787:E?v9117;
!!BMv788:E?v9118;
!!BMv789:E?v9119;
!!BMv790:E?v9120;
!!BMv791:E?v9121;
!!BMv792:E?v9122;
!!BMv793:E?v9123;
!!BMv794:E?v9124;
!!BMv795:E?v9125;
!!BMv796:E?v9126;
!!BMv797:E?v9127;
!!BMv798:E?v9128;
!?BA1;
!!HEv9902&v9902>-1:O?y20;                 [get attacking hero's owner]
!!HEv9903&v9903>-1:O?y30;                 [get defending hero owner]
!!BA:M0/0/?y11/?y21;                      [save qty in each of attacking hero's slots for after battle]
!!BA:M0/1/?y12/?y22;                      [to determine qty lost for first aid skill]
!!BA:M0/2/?y13/?y23;                      // new by Thomas Franz: save creature type in v9101-v9114
!!BA:M0/3/?y14/?y24;
!!BA:M0/4/?y15/?y25;
!!BA:M0/5/?y16/?y26;
!!BA:M0/6/?y17/?y27;
!!BA:M1/0/?y31/?y41;                      [save qty in each of defending hero's slots for after battle]
!!BA:M1/1/?y32/?y42;                      [to determine qty lost for first aid skill]
!!BA:M1/2/?y33/?y43;
!!BA:M1/3/?y34/?y44;
!!BA:M1/4/?y35/?y45;
!!BA:M1/5/?y36/?y46;
!!BA:M1/6/?y37/?y47;
!!VRy1&v9902>-1/y20>-1/v9101<>-1:Sv9140:5;
!!VRy2&v9902>-1/y20>-1/v9102<>-1:Sv9141:5;
!!VRy3&v9902>-1/y20>-1/v9103<>-1:Sv9142:5;
!!VRy4&v9902>-1/y20>-1/v9104<>-1:Sv9143:5;
!!VRy5&v9902>-1/y20>-1/v9105<>-1:Sv9144:5;
!!VRy6&v9902>-1/y20>-1/v9106<>-1:Sv9145:5;
!!VRy7&v9902>-1/y20>-1/v9107<>-1:Sv9146:5;
!!VRy1&v9903>-1/y30>-1/v9108<>-1:Sv9147:5;
!!VRy2&v9903>-1/y30>-1/v9109<>-1:Sv9148:5;
!!VRy3&v9903>-1/y30>-1/v9110<>-1:Sv9149:5;
!!VRy4&v9903>-1/y30>-1/v9111<>-1:Sv9150:5;
!!VRy5&v9903>-1/y30>-1/v9112<>-1:Sv9151:5;
!!VRy6&v9903>-1/y30>-1/v9113<>-1:Sv9152:5;
!!VRy7&v9903>-1/y30>-1/v9114<>-1:Sv9153:5;
!!VRy51&v9902>-1/y20>-1/v9101<>-1:Sy1+y21;
!!VRy52&v9902>-1/y20>-1/v9102<>-1:Sy2+y22;
!!VRy53&v9902>-1/y20>-1/v9103<>-1:Sy3+y23;
!!VRy54&v9902>-1/y20>-1/v9104<>-1:Sy4+y24;
!!VRy55&v9902>-1/y20>-1/v9105<>-1:Sy5+y25;
!!VRy56&v9902>-1/y20>-1/v9106<>-1:Sy6+y26;
!!VRy57&v9902>-1/y20>-1/v9107<>-1:Sy7+y27;
!!VRy51&v9903>-1/y30>-1/v9108<>-1:Sy1+y41;
!!VRy52&v9903>-1/y30>-1/v9109<>-1:Sy2+y42;
!!VRy53&v9903>-1/y30>-1/v9110<>-1:Sy3+y43;
!!VRy54&v9903>-1/y30>-1/v9111<>-1:Sy4+y44;
!!VRy55&v9903>-1/y30>-1/v9112<>-1:Sy5+y45;
!!VRy56&v9903>-1/y30>-1/v9113<>-1:Sy6+y46;
!!VRy57&v9903>-1/y30>-1/v9114<>-1:Sy7+y47;
!!VRy51&v9902>-1/y20>-1/v9101<>-1/y1>y21/v9115>1:Sy1*2;
!!VRy52&v9902>-1/y20>-1/v9102<>-1/y2>y22/v9116>1:Sy2*2;
!!VRy53&v9902>-1/y20>-1/v9103<>-1/y3>y23/v9117>1:Sy3*2;
!!VRy54&v9902>-1/y20>-1/v9104<>-1/y4>y24/v9118>1:Sy4*2;
!!VRy55&v9902>-1/y20>-1/v9105<>-1/y5>y25/v9119>1:Sy5*2;
!!VRy56&v9902>-1/y20>-1/v9106<>-1/y6>y26/v9120>1:Sy6*2;
!!VRy57&v9902>-1/y20>-1/v9107<>-1/y7>y27/v9121>1:Sy7*2;
!!VRy51&v9903>-1/y30>-1/v9108<>-1/y1>y41/v9122>1:Sy1*2;
!!VRy52&v9903>-1/y30>-1/v9109<>-1/y2>y42/v9123>1:Sy2*2;
!!VRy53&v9903>-1/y30>-1/v9110<>-1/y3>y43/v9124>1:Sy3*2;
!!VRy54&v9903>-1/y30>-1/v9111<>-1/y4>y44/v9125>1:Sy4*2;
!!VRy55&v9903>-1/y30>-1/v9112<>-1/y5>y45/v9126>1:Sy5*2;
!!VRy56&v9903>-1/y30>-1/v9113<>-1/y6>y46/v9127>1:Sy6*2;
!!VRy57&v9903>-1/y30>-1/v9114<>-1/y7>y47/v9128>1:Sy7*2;
!!VRy61&v9902>-1/y20>-1/v9140>=y51:Sy51;
!!VRy62&v9902>-1/y20>-1/v9141>=y52:Sy52;
!!VRy63&v9902>-1/y20>-1/v9142>=y53:Sy53;
!!VRy64&v9902>-1/y20>-1/v9143>=y54:Sy54;
!!VRy65&v9902>-1/y20>-1/v9144>=y55:Sy55;
!!VRy66&v9902>-1/y20>-1/v9145>=y56:Sy56;
!!VRy67&v9902>-1/y20>-1/v9146>=y57:Sy57;
!!VRy61&v9902>-1/y20>-1/v9140<y51:Sv9140;
!!VRy62&v9902>-1/y20>-1/v9141<y52:Sv9141;
!!VRy63&v9902>-1/y20>-1/v9142<y53:Sv9142;
!!VRy64&v9902>-1/y20>-1/v9143<y54:Sv9143;
!!VRy65&v9902>-1/y20>-1/v9144<y55:Sv9144;
!!VRy66&v9902>-1/y20>-1/v9145<y56:Sv9145;
!!VRy67&v9902>-1/y20>-1/v9146<y57:Sv9146;
!!VRy61&v9903>-1/y30>-1/v9147>=y51:Sy51;
!!VRy62&v9903>-1/y30>-1/v9148>=y52:Sy52;
!!VRy63&v9903>-1/y30>-1/v9149>=y53:Sy53;
!!VRy64&v9903>-1/y30>-1/v9150>=y54:Sy54;
!!VRy65&v9903>-1/y30>-1/v9151>=y55:Sy55;
!!VRy66&v9903>-1/y30>-1/v9152>=y56:Sy56;
!!VRy67&v9903>-1/y30>-1/v9153>=y57:Sy57;
!!VRy61&v9903>-1/y30>-1/v9147<y51:Sv9147;
!!VRy62&v9903>-1/y30>-1/v9148<y52:Sv9148;
!!VRy63&v9903>-1/y30>-1/v9149<y53:Sv9149;
!!VRy64&v9903>-1/y30>-1/v9150<y54:Sv9150;
!!VRy65&v9903>-1/y30>-1/v9151<y55:Sv9151;
!!VRy66&v9903>-1/y30>-1/v9152<y56:Sv9152;
!!VRy67&v9903>-1/y30>-1/v9153<y57:Sv9153;
!!HEv9902&v9902>-1/y20>-1/v9101=131/v9115>0:C0/0/v9101/y61;
!!HEv9902&v9902>-1/y20>-1/v9102=131/v9116>0:C0/1/v9102/y62;
!!HEv9902&v9902>-1/y20>-1/v9103=131/v9117>0:C0/2/v9103/y63;
!!HEv9902&v9902>-1/y20>-1/v9104=131/v9118>0:C0/3/v9104/y64;
!!HEv9902&v9902>-1/y20>-1/v9105=131/v9119>0:C0/4/v9105/y65;
!!HEv9902&v9902>-1/y20>-1/v9106=131/v9120>0:C0/5/v9106/y66;
!!HEv9902&v9902>-1/y20>-1/v9107=131/v9121>0:C0/6/v9107/y67;
!!HEv9903&v9903>-1/y30>-1/v9108=131/v9122>0:C0/0/v9108/y61;
!!HEv9903&v9903>-1/y30>-1/v9109=131/v9123>0:C0/1/v9109/y62;
!!HEv9903&v9903>-1/y30>-1/v9110=131/v9124>0:C0/2/v9110/y63;
!!HEv9903&v9903>-1/y30>-1/v9111=131/v9125>0:C0/3/v9111/y64;
!!HEv9903&v9903>-1/y30>-1/v9112=131/v9126>0:C0/4/v9112/y65;
!!HEv9903&v9903>-1/y30>-1/v9113=131/v9127>0:C0/5/v9113/y66;
!!HEv9903&v9903>-1/y30>-1/v9114=131/v9128>0:C0/6/v9114/y67;
!!HEv9902&v9902>-1/y20>-1/v9101=158/v9115>0:C0/0/v9101/y61;
!!HEv9902&v9902>-1/y20>-1/v9102=158/v9116>0:C0/1/v9102/y62;
!!HEv9902&v9902>-1/y20>-1/v9103=158/v9117>0:C0/2/v9103/y63;
!!HEv9902&v9902>-1/y20>-1/v9104=158/v9118>0:C0/3/v9104/y64;
!!HEv9902&v9902>-1/y20>-1/v9105=158/v9119>0:C0/4/v9105/y65;
!!HEv9902&v9902>-1/y20>-1/v9106=158/v9120>0:C0/5/v9106/y66;
!!HEv9902&v9902>-1/y20>-1/v9107=158/v9121>0:C0/6/v9107/y67;
!!HEv9903&v9903>-1/y30>-1/v9108=158/v9122>0:C0/0/v9108/y61;
!!HEv9903&v9903>-1/y30>-1/v9109=158/v9123>0:C0/1/v9109/y62;
!!HEv9903&v9903>-1/y30>-1/v9110=158/v9124>0:C0/2/v9110/y63;
!!HEv9903&v9903>-1/y30>-1/v9111=158/v9125>0:C0/3/v9111/y64;
!!HEv9903&v9903>-1/y30>-1/v9112=158/v9126>0:C0/4/v9112/y65;
!!HEv9903&v9903>-1/y30>-1/v9113=158/v9127>0:C0/5/v9113/y66;
!!HEv9903&v9903>-1/y30>-1/v9114=158/v9128>0:C0/6/v9114/y67;
!!UN:R1;
!!VRv9115:S0;
!!VRv9116:S0;
!!VRv9117:S0;
!!VRv9118:S0;
!!VRv9119:S0;
!!VRv9120:S0;
!!VRv9121:S0;
!!VRv9122:S0;
!!VRv9123:S0;
!!VRv9124:S0;
!!VRv9125:S0;
!!VRv9126:S0;
!!VRv9127:S0;
!!VRv9128:S0;

[ 本帖最后由 yjwlhy 于 2010-1-2 17:56 编辑 ]

 成长值: 30400

  • TA的每日心情
    无聊
    2020-5-27 00:09
  • 签到天数: 24 天

    连续签到: 2 天

    [LV.4]狂狼人

    5774

    回帖

    2696万

    金币

    42

    精华

    管理员

    精灵奇侠

    Rank: 12Rank: 12Rank: 12

    积分
    9245403

    社区QQ达人论坛创始人杰出贡献论坛元老

    发表于 2007-2-10 14:21:51 | 显示全部楼层
    这个脚本创意不错,赞一个,可以够的上精华了,呵呵
  • TA的每日心情
    擦汗
    2016-6-16 09:53
  • 签到天数: 2 天

    连续签到: 1 天

    [LV.1]投石矮人

    6

    回帖

    7959

    金币

    0

    精华

    1级 Hired Hero

    Rank: 1

    积分
    27
    发表于 2007-2-28 17:01:39 | 显示全部楼层
    支持会复活的凤凰
  • TA的每日心情
    奋斗
    2017-4-20 20:35
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]投石矮人

    15

    回帖

    7688

    金币

    0

    精华

    1级 Hired Hero

    Rank: 1

    积分
    133
    发表于 2007-3-2 14:53:12 | 显示全部楼层
    支持会复活的凤凰:handshake
  • TA的每日心情
    奋斗
    2017-4-20 20:35
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]投石矮人

    15

    回帖

    7688

    金币

    0

    精华

    1级 Hired Hero

    Rank: 1

    积分
    133
    发表于 2007-3-2 14:53:25 | 显示全部楼层
    支持会复活的凤凰:handshake
  • TA的每日心情
    开心
    2022-5-8 16:30
  • 签到天数: 4 天

    连续签到: 1 天

    [LV.2]野猪

    195

    回帖

    1万

    金币

    0

    精华

    3级 Known Hero

    Rank: 3Rank: 3

    积分
    617

    社区QQ达人

    发表于 2009-8-24 10:29:46 | 显示全部楼层
    赞个
  • TA的每日心情
    无聊
    2022-1-5 22:43
  • 签到天数: 81 天

    连续签到: 1 天

    [LV.6]地狱战马

    765

    回帖

    7384

    金币

    1

    精华

    5级 Honorable Hero

    Rank: 5Rank: 5

    积分
    3985

    退役版主

    发表于 2011-12-28 11:20:43 | 显示全部楼层
    挖坟帖...据作者所言,还有BUG,期待达人进行修正...
    ahome_bigavatar:guest
    ahome_bigavatar:welcomelogin
    您需要登录后才可以回帖 登录 | 英雄注册|Register

    本版积分规则

    捐赠
    关注我们,英3Mod一网打尽!

    WoG中文站 ( 辽B2-20210485-10 )|辽公网安备 21128202000228 号

    GMT+8, 2024-11-22 03:17 , Processed in 0.593223 second(s), 13 queries , Gzip On, File On.

    Powered by Discuz! X3.4

    Copyright © 2004-2022, Beijing Second Sight Technology Co., LTD.

    快速回复 返回顶部 返回列表