- 积分
- 9245689
- 威望
- 181
- 魅力
- 183
- 经验
- 9232475
- 热心度
- 17
- 注册时间
- 2005-11-5
- 最后登录
- 2025-1-22
- 主题
- 567
- 回帖
- 5774
- 精华
- 42
- 阅读权限
- 200
成长值: 31345 TA的每日心情 | 无聊 2020-5-27 00:09 |
---|
签到天数: 24 天 连续签到: 2 天 [LV.4]狂狼人
管理员
精灵奇侠
- 积分
- 9245689
|
帖子转自HC(http://heroescommunity.com/viewthread.php3?TID=28885),该脚本的作者:James Vogan
脚本的作用:消除海量兵种在BT地图作战时[wiki]生物经验[/wiki]变负的bug。
脚本内容:- ZVSE
- ** script to prevent creature experience reduction due to overflow. JHV,
- 2/3/2009
- ** uses v7090-v7103 to store troop ranks @ start of battle
- ** uses FU459-FU462
- !?BA0&1000; start of (human) battle
- !!BA:H0/?v1; get attacker hero #
- !!BA:H1/?v2; get defender hero # (if any)
- !!DO459/0/6/1&v1>-1/v1<156:Pv1; check stacks 0-6 for attacker
- !!DO460/0/6/1&v2>-1/v2<156:Pv2; check stacks 0-6 for defender
- !?FU459; get exp. rank of troop in slot x16 of hero x1, store in v[7090+x16]
- !!HEx1:C0/x16/?y1/?y2/?y3/2; y1=type, y2=no., y3=experience
- !!VRv5:S7090+x16;
- !!VRvv5:Sy3;
- !?FU460; get exp. rank of troop in slot x16 of hero x1, store in v[7097+x16]
- !!HEx1:C0/x16/?y1/?y2/?y3/2; y1=type, y2=no., y3=experience
- !!VRv5:S7097+x16;
- !!VRv5:Sy3;
- !?BA1&1000; end of (human) battle
- !!BA:H0/?v1; get attacker hero #
- !!BA:H1/?v2; get defender hero # (if any)
- !!VRv3:C-1/-1; set v3 & v4 to -1
- !!HEv1&v1>-1/v1<156:O?v3; get attacker's Owner - will be 0-7 if attacker won
- !!HEv2&v2>-1/v2<156:O?v4; get defender's Owner - will be 0-7 if defender won
- !!DO461/0/6/1&v3>-1/v3<8:Pv1; check stacks 0-6 for attacker
- !!DO462/0/6/1&v4>-1/v4<8:Pv2; check stacks 0-6 for defender
- !?FU461; get exp. rank of troop in slot x16 of hero x1, vs. v[7090+x16]
- !!HEx1:C0/x16/?y1/?y2/?y3/2; y1=type, y2=no., y3=experience
- !!FU&y2<1:E; quit if no troops left in slot
- !!VRv5:S7090+x16;
- !!VRy4:Svv5;
- !!HEx1&y4>y3:C0/x16/d/d/11/12; set rank to 11 if negative experience was
- gained (overflow occurred)
- !?FU462; get exp. rank of troop in slot x16 of hero x1, vs. v[7097+x16]
- !!HEx1:C0/x16/?y1/?y2/?y3/2; y1=type, y2=no., y3=experience
- !!FU&y2<1:E; quit if no troops left in slot
- !!VRv5:S7097+x16;
- !!VRy4:Svv5;
- !!HEx1&y4>y3:C0/x16/d/d/11/12; set rank to 11 if negative experience was
- gained (overflow occurred)
- !!IF&610:V616/1;
复制代码 帖子提供成品[wiki]ERM[/wiki]下载,我将脚本编号设置成了78,如果和你的脚本编号有冲突,请自行更改。脚本需放置在Data\s文件夹中方可生效。
script78.rar
(1.42 KB, 下载次数: 1305)
云斯原版
原帖由 老实猪 于 2009-4-13 16:56 发表
上面是yunings的原帖,今天看了一下,发现一个变量错误:
!!VRv5:S7097+x16;
!!VRv5:Sy3;
本来想在原帖上修改,悍然发现没有权限改boss的帖子,:shufu ...
script78.rar
(1.47 KB, 下载次数: 342)
老实猪修正版 |
|