|
发表于 2017-1-25 15:32:44
|
显示全部楼层
score_check_xy=function(n,l,w)
score.xiangyun=Trim(w[1]) --六个状态,生、旺、败、平、衰、死
score.xynum=tonumber(Trim(w[2]))
if score.xiangyun=='死' then smyteam=8 end
if score.xiangyun=='衰' and score.xynum<=5 then smyteam=9 end
if score.xiangyun=='衰' and score.xynum>5 then smyteam=8 end
if score.xiangyun=='平' then smyteam=10 end
if score.xiangyun=='败' and score.xynum>=25 then smyteam=13 end
if score.xiangyun=='败' and score.xynum<25 and score.xynum>=15 then smyteam=12 end
if score.xiangyun=='败' and score.xynum<15 and score.xynum>=5 then smyteam=11 end
if score.xiangyun=='败' and score.xynum<5 then smyteam=10 end
if score.xiangyun=='生' and score.xynum>=25 then smyteam=13 end
if score.xiangyun=='生' and score.xynum<25 and score.xynum>=15 then smyteam=12 end
if score.xiangyun=='生' and score.xynum<15 and score.xynum>=5 then smyteam=11 end
if score.xiangyun=='生' and score.xynum<5 then smyteam=10 end
if score.xiangyun=='旺' then smyteam=13 end
end |
|