Boom中的这段是啥意思?; (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-AD

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 14:43:57

Boom中的这段是啥意思?; (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-AD
Boom中的这段是啥意思?
; (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) )

Boom中的这段是啥意思?; (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-AD
是定时器和常量的组合.定时器到时间时,把goal_addresouce常量从零改为1 你需要看goal为1时ai的动作,查看原帖>>