- 积分
- 2490
- 威望
- 1
- 魅力
- 1
- 经验
- 1865
- 热心度
- 5
- 注册时间
- 2019-3-12
- 最后登录
- 2024-3-3
- 主题
- 41
- 回帖
- 342
- 精华
- 0
- 阅读权限
- 40
TA的每日心情 | 开心 2021-3-22 22:17 |
---|
签到天数: 14 天 连续签到: 1 天 [LV.3]火元素使者
4级 Famous Hero
- 积分
- 2490
|
发表于 2021-4-20 18:53:46
|
显示全部楼层
关于英雄经验等级和生物经验的等级的计算很有意思的,请问版主,以下两个以前的修正脚本可以使用吗?
*******************************************************************
修正生物经验溢出 By JHV
*******************************************************************
!?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;
!!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;
!!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;
*******************************************************************
英雄等级限制最高为108级 By 寻梦人 v3636---v3639
*******************************************************************
! ?BF&1000;
! !VRv3636:C0/0/0/0;
* !BA:H0/?v9555 H1/?v9560;
! !HEv9555:O?y1;
! !OW:Iy1/?y-1;
! !HEv9560&v9560>-1:O?y2;
! !OW&v9560>-1:Iy2/?y-2;
! !VRy-3:S-1;
! !VRy-3&y-2=1:Sv9560;
! !VRy-3&y-1=1:Sv9555;
! !HEy-3&y-3>-1:E?v3638/?v3639;记录电脑的等级和经验
! !VRy-4&y-2=0/v9560>-1:Sv9560;
! !VRy-4&y-1=0:Sv9555;
! !HEy-4:E?v3636/?v3637; 记录玩家的等级和经验
! ?BA1&1000/v3637>=108; 玩家战斗后触发
! !VRy-2:S-1;
! !HE-1:O?y2;
! !FU&y2<0:E;
! !OW:Iy2/?y-2;
! !FU&y-2<>0:E;
! !UN:J1/108/2099639276;限制等级
! !HE-1:E2099639276/108;重置等级和经验
! ?BA1&-1000/v3639>=108; 电脑战斗后触发
! !VRy-2:S-1;
! !HE-1:O?y2;
! !FU&y2<0:E;
! !OW:Iy2/?y-2;
! !FU&y-2<>1:E;
! !HE-1:Ev3638/v3639;重置电脑等级和经验 |
|