Am besten löst du dieses Problem mit einer Ai-Datei, hier ein Beispiel:
<pre><i>
;untätige Dorfbewohner
(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))
;untätige Militäreinheiten:
(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))
;Dorbewohner sammeln Ressourcen ab einem bestimmten Zeitpunkt (Beispiel):
(defrule
(game-timer greater-or-equal 300)
=>
(set-strategic-number sn-maximum-food-drop-distance 40)
(set-strategic-number sn-maximum-wood-drop-distance 40)
(set-strategic-number sn-maximum-gold-drop-distance 40)
(set-strategic-number sn-maximum-stone-drop-distance 40)
(set-strategic-number sn-maximum-hunt-drop-distance 40)
(set-strategic-number sn-food-gatherer-percentage 40)
(set-strategic-number sn-stone-gatherer-percentage 10)
(set-strategic-number sn-gold-gatherer-percentage 20)
(set-strategic-number sn-wood-gatherer-percentage 30)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(disable-self))
;Beispiel für den Zeitpunkt, wann der Gegner angreifen soll:
(defrule
(game-time greater-or-equal 900)
=>
(set-strategic-number sn-number-attack-groups 1)
(set-strategic-number sn-minimum-attack-group-size 10)
(set-strategic-number sn-maximum-attack-group-size 25)
(attack-now)
(disable-self))
</i></pre>
Damit ist es möglich, den gesamten Computerspieler zum stehen zu bringen, doch wenn er angegriffen wird verteidigt er sich.
Wie gesagt, das sind nur Beispiele. Wenn du dich für diese Lösung entscheidest solltest du dich unbedingt näher mit dem Thema Ai befassen. Wenn du möchtest kann ich dir auch dabei helfen.