|
发表于 2016-1-27 13:08:41
|
显示全部楼层
本帖最后由 creat 于 2016-1-27 06:00 AM 编辑
hpbrief这种值……。
没有必要写进mcl里面吧,拿来直接运算就好了。而且脚本运算更加简单,触发里面不用写括号都可以
比如
^\#\d*\.*\d*(?:\w*)\,\d*,\d*,\d*,\d*,\d*\n\#\d*,\d*,\d*,\d*,\d*,\d*$
- function hpbrief (n,l,w)
- local _,_,xp,pot,max_neili,neili,max_jingli,jingli,full_qi,max_qi,qi,full_jing,max_jing,jing=string.find (w[0],"(%d*%.?%d*K?M?),(%d+),(%d+),(%d+),(%d+),(%d+)%\n%#(%d+),(%d+),(%d+),(%d+),(%d+),(%d+)")
- print ("xp:",xp,"pot:",pot,"max_neili:",max_neili,"neili:",neili,"max_jingli:",max_jingli,"jingli:",jingli,"full_qi:",full_qi,"max_qi:",max_qi,"qi:",qi,"full_jing:",full_jing,"max_jing:",max_jing,"jing:",jing)
- end
复制代码
然后写进一个表里还是写进mcl里都可以随便处理,不用受mush的数量限制 |
|