- 积分
- 6121
- 威望
- 0
- 魅力
- 0
- 经验
- 4
- 热心度
- 0
- 注册时间
- 2009-3-4
- 最后登录
- 2018-6-5
- 主题
- 22
- 回帖
- 4936
- 精华
- 7
- 阅读权限
- 90
该用户从未签到
论坛嘉宾
- 积分
- 6121
|
楼主 |
发表于 2011-12-13 22:06:51
|
显示全部楼层
寻梦帮我看下,目前阿泰3用的防止部队经验溢出的脚本,我个人觉得下面红字的地方有问题
ZVSE 部队经验变负修正
!?BA0&1000; start of (human) battle
!!BA:H0/?v9555; get attacker hero #
!!BA:H1/?v9560; get defender hero # (if any)
!!DO459/0/6/1&v9555>-1/v9555<156:Pv1; check stacks 0-6 for attacker 是不是该改为Pv9555
!!DO460/0/6/1&v9560>-1/v9560<156:Pv2; check stacks 0-6 for defender 是不是该改为Pv9560 正确
!?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;
!!VRvv5: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; vv5 从上面的函数来看,应该没被赋值
!!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; vv5 从上面的函数来看,应该没被赋值
!!HEx1&y4>y3:C0/x16/d/d/11/12; set rank to 11 if negative experience was
gained (overflow occurred)
!!IF&610:V616/1; 这个不知道做什么的
麻烦你帮我看下
[ 本帖最后由 寻梦人 于 2011-12-13 22:51 编辑 ] |
|