哪位大侠救救我!……
我搞得头好痛啊!!为什么敌人总是不攻城门,而打城内的塔,打完了就在那儿站,城内的士兵射他,他就远离。我明明发信号叫他进攻的吗……;villagers
(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-stone-gatherer-percentage 0)
(set-strategic-number sn-gold-gatherer-percentage 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)
)
;military
(defrule
(true)
=>
(set-strategic-number sn-percent-enemy-sighted-response 100)
(set-strategic-number sn-hits-before-alliance-change 25)
(set-strategic-number sn-number-explore-groups 0)
(set-strategic-number sn-percent-attack-soldiers 100)
(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
(event-detected trigger 1)
=>
(acknowledge-event trigger 1)
(set-strategic-number sn-percent-enemy-sighted-response 100)
(set-strategic-number sn-percent-attack-soldiers 100)
(set-strategic-number sn-task-ungrouped-soldiers 0)
(set-strategic-number sn-number-attack-groups 5)
(set-strategic-number sn-enemy-sighted-response-distance 20)
(set-strategic-number sn-minimum-attack-group-size 20)
(set-strategic-number sn-attack-intelligence 10)
(attack-now)
(disable-self)
)
……拜托,哪位大侠救救我!…… 只用(attack-now)看看,我刚才试了一下,会打城墙的 (defrule
(event-detected trigger 1)
=>
(acknowledge-event trigger 1)
(set-strategic-number sn-percent-enemy-sighted-response 100)
(set-strategic-number sn-percent-attack-soldiers 100)
(set-strategic-number sn-task-ungrouped-soldiers 0)
(set-strategic-number sn-number-attack-groups 5)
(set-strategic-number sn-enemy-sighted-response-distance 20)
(set-strategic-number sn-minimum-attack-group-size 20)
(set-strategic-number sn-attack-intelligence 10)
(attack-now)
(disable-self)
)
(disable-self)可以去掉,要攻打城门你要先让电脑看到城门 (set-strategic-number sn-attack-intelligence 10)這不是只可用1和0的嗎? <P inter-ideograph; MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: justify"><FONT size=2><FONT face="Courier New">楼上正解</FONT></FONT> <P inter-ideograph; MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: justify"><FONT size=2></FONT><FONT face="Courier New" size=2><B normal"></B></FONT><P inter-ideograph; MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: justify"><FONT size=2><B normal"><FONT face="Courier New">sn-attack-intelligence</FONT></B><B normal">(智能攻击系统)</B><B normal"></B></FONT> <P inter-ideograph; MARGIN: 0cm 0cm 0pt; TEXT-ALIGN: justify"><FONT size=2>可以控制计算机游戏者的智能攻击系统启动与否。数值必须是 0 或 1 , 0 代表关闭, 1 代表开启。默认值是 0 。</FONT> 智能攻击系统是指计算机游戏者进攻时,会试图回避有敌人单位驻防的区域,并从另一方向发动攻击。 使用了(acknowledge-event trigger 1)
就不需要(disable-self) 谢谢,我试试看行否
页:
[1]