為何人工智慧設定目標後電腦沒有反應?
(defrule(true)
=>
(set-strategic-number sn-maximum-food-drop-distance 0)
(set-strategic-number sn-maximum-wood-drop-distance 0)
(set-strategic-number sn-maximum-gold-drop-distance 0)
(set-strategic-number sn-maximum-stone-drop-distance 0)
(set-strategic-number sn-maximum-hunt-drop-distance 0)
(set-strategic-number sn-food-gatherer-percentage 0)
(set-strategic-number sn-gold-gatherer-percentage 0)
(set-strategic-number sn-minimum-civilian-explorers 0)
(set-strategic-number sn-wood-gatherer-percentage 0)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(disable-self)
)
(defrule
(true)
=>
(set-strategic-number sn-percent-enemy-sighted-response 100)
(set-strategic-number sn-hits-before-alliance-change 25)
(set-difficulty-parameter ability-to-maintain-distance 100)
(set-difficulty-parameter ability-to-dodge-missiles 100)
(set-strategic-number sn-number-explore-groups 0)
(set-strategic-number sn-percent-attack-soldiers 0)
(set-strategic-number sn-task-ungrouped-soldiers 0)
(set-strategic-number sn-number-attack-groups 0)
(set-strategic-number sn-enemy-sighted-response-distance 10)
(set-strategic-number sn-total-number-explorers 0)
(set-strategic-number sn-relic-return-distance 0)
(disable-self)
)
(defrule
(taunt-detected 1 1)
=>
(acknowledge-taunt 1 1)
(set-signal 1)
)
(defrule
(taunt-detected 1 2)
=>
(acknowledge-taunt 1 1)
(set-signal 2)
)
(defrule
(taunt-detected 1 3)
=>
(acknowledge-taunt 1 1)
(set-signal 3)
)
(defrule
(taunt-detected 1 4)
=>
(acknowledge-taunt 1 1)
(set-signal 4)
)
(defrule
(taunt-detected 1 5)
=>
(acknowledge-taunt 1 1)
(set-signal 5)
)
(defrule
(taunt-detected 1 6)
=>
(acknowledge-taunt 1 1)
(set-signal 6)
)
(defrule
(taunt-detected 1 7)
=>
(acknowledge-taunt 1 1)
(set-signal 7)
)
(defrule
(taunt-detected 1 8)
=>
(acknowledge-taunt 1 1)
(set-signal 8)
)
(defrule
(taunt-detected 1 9)
=>
(acknowledge-taunt 1 1)
(set-signal 9)
)
(defrule
(taunt-detected 1 10)
=>
(acknowledge-taunt 1 1)
(set-signal 10)
)
(defrule
(taunt-detected 1 11)
=>
(acknowledge-taunt 1 1)
(set-signal 11)
)
(defrule
(taunt-detected 1 12)
=>
(acknowledge-taunt 1 1)
(set-signal 12)
)
(defrule
(taunt-detected 1 13)
=>
(acknowledge-taunt 1 1)
(set-signal 13)
)
(defrule
(taunt-detected 1 14)
=>
(acknowledge-taunt 1 1)
(set-signal 14)
)
(defrule
(taunt-detected 1 15)
=>
(acknowledge-taunt 1 1)
(set-signal 15)
)
(defrule
(taunt-detected 1 16)
=>
(acknowledge-taunt 1 1)
(set-signal 16)
)
(defrule
(taunt-detected 1 17)
=>
(acknowledge-taunt 1 1)
(set-signal 17)
)
(defrule
(taunt-detected 1 18)
=>
(acknowledge-taunt 1 1)
(set-signal 18)
)
(defrule
(taunt-detected 1 19)
=>
(acknowledge-taunt 1 1)
(set-signal 19)
)
(defrule
(taunt-detected 1 20)
=>
(acknowledge-taunt 1 1)
(set-signal 20)
)
(defrule
(taunt-detected 1 21)
=>
(acknowledge-taunt 1 1)
(set-signal 21)
)
(defrule
(taunt-detected 1 20)
=>
(acknowledge-taunt 1 1)
(set-signal 20)
)
(defrule
(event-detected trigger 1)
=>
(acknowledge-event trigger 1)
(cc-add-resource gold 10000)
(cc-add-resource wood 10000)
(cc-add-resource food 10000)
(cc-add-resource stone 10000)
(set-strategic-number sn-attack-intelligence 1)
(set-strategic-number sn-number-defend-groups 60)
(set-strategic-number sn-percent-attack-soldiers 50)
(set-strategic-number sn-minimum-attack-group-size 20)
(set-strategic-number sn-initial-attack-delay 0)
(attack-now)
(disable-self)
)
(defrule
(players-stance 1enemy)
=>
(set-stance 1 enemy)
)
(defrule
(players-stance 1 neutral)
=>
(set-stance 1neutral)
) 似乎没什么问题记得触发里AI信号从0开始,你现在设置的是1开始(defrule
(event-detected trigger 1)
=>
(acknowledge-event trigger 1)
(cc-add-resource gold 10000)
(cc-add-resource wood 10000)
(cc-add-resource food 10000)
(cc-add-resource stone 10000)
(set-strategic-number sn-attack-intelligence 1)
(set-strategic-number sn-number-defend-groups 60)
(set-strategic-number sn-percent-attack-soldiers 50)
(set-strategic-number sn-minimum-attack-group-size 20)
(set-strategic-number sn-initial-attack-delay 0)
(attack-now)
(disable-self)
)
不需要(disable-self) 人工智慧設定目標(效果)是由1開始的,但人工智慧信號(條件)是0,我效果那裡沒問題,就是這裡的問題:
(defrule
(event-detected trigger 1)
=>
(acknowledge-event trigger 1)
(cc-add-resource gold 10000)
(cc-add-resource wood 10000)
(cc-add-resource food 10000)
(cc-add-resource stone 10000)
(set-strategic-number sn-attack-intelligence 1)
(set-strategic-number sn-number-defend-groups 60)
(set-strategic-number sn-percent-attack-soldiers 50)
(set-strategic-number sn-minimum-attack-group-size 20)
(set-strategic-number sn-initial-attack-delay 0)
(attack-now)
(disable-self)
)
去掉(disable-self)後都沒有attack?
[此贴子已经被作者于2004-10-5 20:49:56编辑过]
會不會受上面不動AI影響?? 攻击之前要先让电脑看到能攻击的东西 他看到了.............我加了(set-strategic-number sn-number-explore-groups 1)但還是不打 用“地图启示者”电脑的侦察兵不一定能立即发现可攻击内容注意一路上不要给电脑设置障碍 已用了地图启示者......................不行..................太多兵會不會有問題? 为什么全部都是(acknowledge-taunt 1 <b>1</b>)? <DIV class=quote><B>以下是引用<I>_CCC_大智</I>在2004-10-5 22:03:25的发言:</B>
为什么全部都是(acknowledge-taunt 1 <B>1</B>)? </DIV>
Oh~~~~但這部分沒有問題.......... 那我不清楚了,AI我不怎么行 <DIV class=quote><B>以下是引用<I>尼克</I>在2004-10-5 21:59:29的发言:</B>
已用了地图启示者......................不行..................
太多兵會不會有問題? </DIV>
给发动进攻那个电脑放“地图启示者”,不要搞错所有者
在进攻前几秒放 初始放行不行? 应该可以 5555,不行...Why??!!
[此贴子已经被作者于2004-10-6 16:05:48编辑过]
再加一句 (set-strategic-number sn-number-attack-groups 50)另外你的语音指令怎么都是(acknowledge-taunt 1 1)对应着用 (taunt-detected 1 1)
=>
(acknowledge-taunt 1 1) (taunt-detected 1 2)
=>
(acknowledge-taunt 1 2) (taunt-detected 1 3)
=>
(acknowledge-taunt 1 3)…… 哦~attack-now好象经常出问题上次我分成3个难度不同间隔时间的attack-now他就没反应了@@;
页:
[1]