Das ist aber ganz schön viel ... und etwas zu ungenau.
... aber holzfällen und Felder bauen ist einfach :
<pre style="color:green">
(defrule
(building-type-count mill less-than 1)
(can-build mill)
=>
(build mill))
(defrule
(building-type-count lumber-camp less-than 1)
(can-build lumber-camp)
=>
(build lumber-camp))
(defrule
(true)
=>
(set-strategic-number sn-maximum-food-drop-distance 10)
(set-strategic-number sn-maximum-wood-drop-distance 20)
(set-strategic-number sn-maximum-gold-drop-distance 0)
(set-strategic-number sn-maximum-hunt-drop-distance 0)
(set-strategic-number sn-maximum-stone-drop-distance 0)
(set-strategic-number sn-food-gatherer-percentage 50)
(set-strategic-number sn-wood-gatherer-percentage 50)
(set-strategic-number sn-gold-gatherer-percentage 0)
(set-strategic-number sn-stone-gatherer-percentage 0)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(disable-self))
(defrule
(sheep-and-forage-too-far)
(idle-farm-count less-than 1)
(can-build farm)
=>
(build farm))
(defrule
(true)
=>
(set-strategic-number sn-percent-civilian-builders 30)
(disable-self))
</pre>
ki 2 : Wieviel Rohstoffe? Wozu werden die Rohstoffe benötigt?
ki 1,4,5 : wer soll verteidigen? Sollen dazu Units ausgebildet werden?
ki 2.4 : wer soll angreifen? Units ausbilden?
ki 3 müsste so aussehen:
<pre style="color:green">
(defrule
(building-type-count mill less-than 1)
(can-build mill)
=>
(build mill))
(defrule
(true)
=>
(set-strategic-number sn-maximum-food-drop-distance 10)
(set-strategic-number sn-maximum-wood-drop-distance 0)
(set-strategic-number sn-maximum-gold-drop-distance 0)
(set-strategic-number sn-maximum-hunt-drop-distance 0)
(set-strategic-number sn-maximum-stone-drop-distance 0)
(set-strategic-number sn-food-gatherer-percentage 100)
(set-strategic-number sn-wood-gatherer-percentage 0)
(set-strategic-number sn-gold-gatherer-percentage 0)
(set-strategic-number sn-stone-gatherer-percentage 0)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(disable-self))
(defrule
(sheep-and-forage-too-far)
(idle-farm-count less-than 1)
(can-build farm)
=>
(build farm))
(defrule
(true)
=>
(set-strategic-number sn-percent-civilian-builders 30)
(disable-self))
(defrule
(wood-amount less-than 500)
=>
(cc-add-resource wood 1000)) ;damit das Holz nicht ausgeht
</pre>
ki 4 : Welches KI-Signal ?