找回密码
 注册
搜索
查看: 2920|回复: 39

我的理相函数,供师兄弟们参考

[复制链接]
门派:星宿派
发表于 2016-12-29 16:24:56 | 显示全部楼层 |阅读模式
本帖最后由 zerg@tj 于 2016-12-29 23:25 编辑

score_check_xy=function(n,l,w)
        score.xiangyun=Trim(w[1])
        score.xynum=tonumber(Trim(w[2]))
          if score.xiangyun=='死' and score.xynum>=10 then smyteam=10 end
          if score.xiangyun=='死' and score.xynum<10 then smyteam=11 end
          if score.xiangyun=='衰' and score.xynum>=10 then smyteam=10 end
          if score.xiangyun=='衰' and score.xynum<10 then smyteam=10 end
          if score.xiangyun=='平' then smyteam=11 end
          if score.xiangyun=='败' and score.xynum>=8 then smyteam=12 end
          if score.xiangyun=='败' and score.xynum<8 then smyteam=11 end
          if score.xiangyun=='生' and score.xynum>=8 then smyteam=12 end
          if score.xiangyun=='生' and score.xynum<8 then smyteam=11 end
          if score.xiangyun=='旺' then smyteam=12 end
end
门派:天龙寺
发表于 2016-12-29 17:25:41 | 显示全部楼层
1、你这个哪来的?
2、能不能通俗易懂点。
门派:天龙寺
发表于 2016-12-29 17:51:33 | 显示全部楼层
不错,还有分时功能              
门派:星宿派
发表于 2016-12-29 19:36:33 | 显示全部楼层
你还能打12组啊?我9组都费劲
门派:武当派
发表于 2016-12-29 20:31:50 | 显示全部楼层
这个不错 学习了
门派:姑苏慕容
发表于 2016-12-29 21:04:11 | 显示全部楼层
zerg是个好师兄啊                  
门派:武当派
发表于 2016-12-29 21:30:01 | 显示全部楼层
if score.xiangyun=='生' and score.xynum<8 then smyteam=11

少了个end

评分

1

查看全部评分

门派:星宿派
 楼主| 发表于 2016-12-29 21:56:56 | 显示全部楼层
changan@tj 发表于 2016-12-29 17:25
1、你这个哪来的?
2、能不能通俗易懂点。

1. 在大昏版的基础上自己改的
2. 说不明白了,因为我自己也不太明白
门派:星宿派
 楼主| 发表于 2016-12-29 21:57:33 | 显示全部楼层
semic@tj 发表于 2016-12-29 17:51
不错,还有分时功能

这点小玩意儿,你们早就有了吧
我昨天才写出来的,今天跑测试
门派:星宿派
 楼主| 发表于 2016-12-29 21:58:15 | 显示全部楼层
ravf@tj 发表于 2016-12-29 19:36
你还能打12组啊?我9组都费劲

12组只是测试,我也不知道稳不稳
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-8-15 13:42 , Processed in 0.065821 second(s), 29 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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