Boom中的这段是啥意思?
;=========== add resource every 30 sec ========== (defrule(true) =>(enable-timer TIMER-RESOURCE 30)(set-goal GOAL-ADDRESOURCE 0)(disable-self) )(defrule(timer-triggered TIMER-RESOURCE)(goal GOAL-DISABLE-CHEAT 0)(difficulty <=hard) =>(set-goal GOAL-ADDRESOURCE 1) ) 都是自定义的常量................ 是定时器和常量的组合。定时器到时间时,把goal_addresouce常量从零改为1你需要看goal为1时ai的动作,才知道是什么意思 我知道了。谢谢
页:
[1]