找回密码
 注册
搜索
楼主: ykghwz@tj

smy 组数怎么改?

[复制链接]
门派:天龙寺
发表于 2017-3-5 11:18:43 | 显示全部楼层
ykghwz@tj 发表于 2017-3-5 08:13
不好意思,不会改,这可咋整啊?都不敢挂机了。

shujian.lua里面

score_check_xy=function(n,l,w)
        score.xiangyun=Trim(w[1])  --六个状态,生、旺、败、平、衰、死
          if scorexy==false then
             scorexy=smyteam*1
          end
                if score.xiangyun=='衰' or score.xiangyun=='死' then
                  if smyteam>=scorexy then
                     smyteam=scorexy-1
                  end
                        --if job.zuhe["songmoya"] then job.zuhe["songmoya"]=nil end
                else
                  if smyteam<scorexy then
                     smyteam=scorexy*1
                  end
                        --if go_on_smy~=0 and job.zuhe["songmoya"]==nil then job.zuhe["songmoya"]=true end
                end
end
门派:天龙寺
发表于 2017-3-5 11:19:10 | 显示全部楼层
这个修改掉,或者屏蔽掉
门派:华山派
发表于 2017-3-5 12:59:31 | 显示全部楼层
貌似我都发过一次了。。。。
门派:少林派
 楼主| 发表于 2017-3-5 13:03:14 | 显示全部楼层
modman@tj 发表于 2017-3-5 11:19
这个修改掉,或者屏蔽掉

如何修改?如何屏蔽?具体点呗!
门派:天龙寺
发表于 2017-3-5 13:05:46 | 显示全部楼层
ykghwz@tj 发表于 2017-3-5 13:03
如何修改?如何屏蔽?具体点呗!

额。。mush一点儿都不会啊
门派:天龙寺
发表于 2017-3-5 13:07:10 | 显示全部楼层
score_check_xy=function(n,l,w)
        score.xiangyun=Trim(w[1])  --六个状态,生、旺、败、平、衰、死
          if scorexy==false then
             scorexy=smyteam*1
          end
                if score.xiangyun=='衰' or score.xiangyun=='死' then
                  if smyteam>=6 then
                     smyteam=8
                  end
                else
                  if smyteam<scorexy then
                     smyteam=8
                  end
                        --if go_on_smy~=0 and job.zuhe["songmoya"]==nil then job.zuhe["songmoya"]=true end
                end
end

我给你改成了6和8,自己看着改
门派:华山派
发表于 2017-3-5 13:07:24 | 显示全部楼层
ykghwz@tj 发表于 2017-3-5 13:03
如何修改?如何屏蔽?具体点呗!

找到shujian.lua里面
score_check_xy=function(n,l,w) 这个,把这一条,意思是到整个改成下面这个样子。
具体数值参照自己情况
不要笑话我做的low逼

score_check_xy=function(n,l,w)
        score.xiangyun=Trim(w[1])  --六个状态,生、旺、败、平、衰、死        
        score.xynum=tonumber(Trim(w[2]))
        if score.xiangyun=='死' then smyteam=11 end
        if score.xiangyun=='衰' and score.xynum<7 then smyteam=12 end
        if score.xiangyun=='衰' and score.xynum>=7 then smyteam=11 end
        if score.xiangyun=='平' then smyteam=12 end  
        if score.xiangyun=='败' and score.xynum<25 and score.xynum>19 then smyteam=16 end
        if score.xiangyun=='败' and score.xynum<=19 and score.xynum>13 then smyteam=15 end
        if score.xiangyun=='败' and score.xynum<=13 and score.xynum>7 then smyteam=14 end
        if score.xiangyun=='败' and score.xynum<=7 then smyteam=13 end
        if score.xiangyun=='生' and score.xynum<25 and score.xynum>19 then smyteam=16 end
        if score.xiangyun=='生' and score.xynum<=19 and score.xynum>13 then smyteam=15 end
        if score.xiangyun=='生' and score.xynum<=13 and score.xynum>7 then smyteam=14 end
        if score.xiangyun=='生' and score.xynum<=7 then smyteam=13 end
        if score.xiangyun=='旺' then smyteam=16 end
end
门派:少林派
 楼主| 发表于 2017-3-5 13:07:41 | 显示全部楼层
modman@tj 发表于 2017-3-5 13:05
额。。mush一点儿都不会啊

能会用就不错了,慢慢学呗
门派:少林派
 楼主| 发表于 2017-3-5 13:14:36 | 显示全部楼层
modman@tj 发表于 2017-3-5 13:07
score_check_xy=function(n,l,w)
        score.xiangyun=Trim(w[1])  --六个状态,生、旺、败、平、衰、 ...

把这个复制了就能做8组是吗
门派:天龙寺
发表于 2017-3-5 13:15:31 | 显示全部楼层
或者这一段前面加        --[[                          
最后面加    ]]
就屏蔽掉了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|书剑永恒MUD ( 闽ICP备14012032号|闽公网安备 35050202000162号 )

GMT+8, 2025-6-20 17:05 , Processed in 0.025279 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表