|
理相现在影响比较大了 尤其对上山,我这边把自己的改法跟大家分享一下哈
1. shujian.lua 里面
1)触发改一下
- create_trigger_t('score10','^┃致命抗性:(\\d*)\\s*理相:(\\D*)\\((\\d*)\\)\\s*┃','','score_check_xy')
复制代码
2)函数改动
- score_check_xy=function(n,l,w)
- score.xiangyun=Trim(w[2]) --六个状态,生、旺、败、平、衰、死
- score.xiangyund=tonumber(w[3])
- end
复制代码
2. songmoya.lua 改动
考虑山上时间长,有可能会遇到山上的时候理相变化,所以理相判断加到战斗前
1)找到yptHaltover函数
在顶部加入如下语句
- smyteam = tonumber(GetVariable("smydefault")) ----20
- if score.xiangyun=='生' or score.xiangyun=='旺' or score.xiangyun=='败' or score.xiangyun=='平' then
- if score.xiangyund*1 > 8 then smyteam = smyteam*1 end ----20
- if score.xiangyund*1 <= 8 and score.xiangyund*1 >= 7 then smyteam = smyteam*1 - 1 end ----19
- if score.xiangyund*1 < 7 and score.xiangyund*1 > 5 then smyteam = smyteam*1 - 2 end ----18
- if score.xiangyund*1 < 5 then smyteam = smyteam*1 - 3 end ----17
- else
- if score.xiangyund*1 < 5 then smyteam = smyteam*1 - 4 else smyteam = smyteam*1 - 5 end ----16/15
- end
复制代码
2)找到yptFightbegin函数
在顶部加入
exe('score')
3. 在mush里添加“smydefault”变量,这个数值就是你理相旺的时候能打多少组。。
|
|