- 积分
- 1308
- 威望
- 0
- 魅力
- 0
- 经验
- 292
- 热心度
- 0
- 注册时间
- 2006-3-15
- 最后登录
- 2024-3-7
- 主题
- 69
- 回帖
- 496
- 精华
- 1
- 阅读权限
- 40
TA的每日心情 | 慵懒 2024-3-7 15:26 |
---|
签到天数: 96 天 连续签到: 1 天 [LV.6]地狱战马

4级 Famous Hero

- 积分
- 1308
|
[wiki]ERM[/wiki]39,就是英雄特长的erm,我下载了云斯的增强版本,结果发现报错,原因居然是这一段:
;x1 = number of hero
;x2 = next level advance (1 = attack will +1, 2 = defense will +1 see HL-1 trigger code above)
;do not change v426 and v427
!?FU804;
!!HEx1:F?v430/?v431/?v432/?v433/1; //set v430 and v431 as attack|defense TOBYN: new local 430
!!VRv430&x2=1:+1; //take account of next level advances
!!VRv431&x2=2:+1;
!!HEx1:E?v429/?v428; //v428=level of hero TOBYN: this v429 is useless
!!VRw30:Sv428*3+12; //Additional percent to HP = 12+3*level of hero
!!VRw30|w29=62/w29=56:S0; [TOBYN: Skeleton and Vampire specialists dont give health bonus]
!!VRw31:Sv430;
!!VRw32:Sv431;
!!MA:Lw29/?v430; TOBYN: new local 430
!!VRv429:S8-v430; TOBYN: new local 429
!!VRw28:Sv428:v429+1; TOBYN: w28 set here
!!VRw28|w29=62/w29=56:S0;
!!HEx1&w31<0:F?y10/d/d/d/1; get hero's basic attack [DEBUGGING]
!!HEx1&w31<0:F?y11/d/d/d; get hero's current attack [DEBUGGING]
!!IF&w31<0:M^{DEBUG INFORMATION - FU804}
Hero #%X1 gave negative attack bonus to the creatures, now compensated.^;
!!VRw31&w31<0:Sy10 +y11; set correct w31 instead [DEBUGGING]
!!HEx1:X4/w29/w31/w32/w28;
!!VRw28:+1000;
!?FU803; in: x1=hero number
!!VRy1:Sx1; TOBYN: changed x3 to y1 because modding x vars now has outside effects
!!VRx1&x1<0:Sx16; what's this and why?
!!IF:Wx1;
!!FU804&w28>=1000/w28<2000:Px1/x2; //check that hero is monster spec
!!VRx1:Sy1;
也就是骷髅和吸血鬼不增加hp的这一段。删除该段就正常就入游戏
很奇怪啊,以前用这个脚本没有问题,但是使用了土地的新脚本汉化补丁后就报错,连用原来的erm覆盖也不行 |
|