♂嗜心づ恶魔 发表于 2008-11-30 18:19:30

帝国时代怎么搞简易不动AI

就是不用AI敌人的兵还是不动。。。就是说敌人的兵不动!!!

nomygf 发表于 2008-11-30 23:38:20

兵種不動的話就直接用以下規則就行了

(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 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)
)

這是最簡單的了, 但村民那些都會動的。

⒎冄ニ㈦。 发表于 2008-12-3 11:18:26

不懂。我也需要。啊啊啊...

Ru43 发表于 2008-12-6 14:13:33

(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-percent-civilian-gatherers 0)
    (set-strategic-number sn-percent-civilian-builders 0)
    (set-strategic-number sn-percent-civilian-explorers 0)
    (set-strategic-number sn-maximum-hunt-drop-distance 0)
    (set-strategic-number sn-maximum-fish-boat-drop-distance 0)
    (set-strategic-number sn-task-ungrouped-soldiers 0)
    (set-strategic-number sn-total-number-explorers 0)
    (disable-self)
)

建议不动AI是这段。。。。。。
然后记得每个Player的第1个农民(指你刷上地图编辑器的农民的顺序),放到运输船上去。这样村民就不会乱动去探路了。

(defrule
    (true)
=>
    (set-difficulty-parameter ability-to-maintain-distance 0)
        (set-difficulty-parameter ability-to-dodge-missiles 0)
        (set-strategic-number sn-percent-enemy-sighted-response 99)
        (set-strategic-number sn-enemy-sighted-response-distance 32)
    (disable-self)
)

如果要统一不同难度下的兵种行为可以再加这段。。。。。。。
页: [1]
查看完整版本: 帝国时代怎么搞简易不动AI