找回密码
 注册
搜索
查看: 435|回复: 1

谁能帮我解释下这段代码的意思啊?

[复制链接]
门派:古墓派
发表于 2018-2-28 17:24:06 | 显示全部楼层 |阅读模式
  这里我不明白 flag.prepare = 4 和 flag.prepare = flag.prepare +5
flag.prepare 这个东西主要控制什么的???
   

  if not flag.prepare or type(flag.prepare)~='number' then flag.prepare=0 end
   if condition.busy and condition.busy>20 and job.prepare and job.prepare~=test and flag.prepare>0 then flag.prepare=4 end
   if condition.busy and condition.busy==0 and job.prepare and job.prepare~=test and flag.prepare>0 then flag.prepare=flag.prepare+5 end
   if job.prepare==duHhe_start or job.prepare==duCjiang_start then flag.prepare=0 end
   if flag.prepare>4 then flag.prepare=0 end
门派:古墓派
发表于 2018-3-2 09:45:43 | 显示全部楼层
判断是否有任务busy执行某设置job, 去你代码里 找找 job.prepare是干啥的吧。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-9 23:18 , Processed in 0.046830 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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