Ich kopier hier mal die ganze KI rein. Vielleicht findest du ja auf Anhieb den Fehler
:
---------------------------------------------------
(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)
)
;added by Styrbiorn
(defrule;player 8 in third scn should not scout with his fleet
(true)
=>
(set-strategic-number sn-number-boat-attack-groups 0)
(set-strategic-number sn-number-boat-explore-groups 0)
(disable-self)
)
;this one forces diplomacy (ie player must be allied)
(defrule ;conditions only working for locals in first scenario
(players-stance 2 ally)
(players-stance 3 ally)
(players-stance 4 ally)
(xor
(players-stance 5 enemy)
(players-stance 5 ally)
)
(or
(players-stance 1 neutral)
(players-stance 1 enemy)
)
=>
(set-signal 50) ;don't know which signals I've previously used
)
(defrule ;conditions only working for locals in first scenario
(players-stance 2 ally)
(players-stance 3 ally)
(players-stance 4 ally)
(xor
(players-stance 5 enemy)
(players-stance 5 ally)
)
=>
(set-strategic-number sn-percent-enemy-sighted-response 0)
(disable-self)
)
(defrule ;conditions only working for locals in first scenario
(players-stance 2 ally)
(players-stance 3 ally)
(players-stance 4 ally)
(xor
(players-stance 5 enemy)
(players-stance 5 ally)
)
(event-detected trigger 11)
=>
(set-strategic-number sn-percent-enemy-sighted-response 100)
(disable-self)
)
(defrule ;conditions for player 8, first scn, forcing diplomacy
(or
(players-stance 2 ally)
(players-stance 2 enemy)
)
(players-stance 3 ally)
(players-stance 4 ally)
(players-stance 7 ally)
(or
(players-stance 1 neutral)
(players-stance 1 enemy)
)
=>
(set-signal 51)
)
(defrule ;for Cheng He in the last scenario forces diplomacy ally
(players-stance 3 ally)
(players-stance 4 ally)
(players-stance 6 ally)
(players-stance 7 ally)
(or
(players-stance 1 enemy)
(players-stance 1 neutral)
)
=>
(set-signal 82) ;this signal is never used in another scenaciro - just in case...
)
; ---------------------------------------------
(defrule
(taunt-detected 1 136)
=>
(set-signal 1)
(disable-self)
)
(defrule
(taunt-detected 1 142)
=>
(set-signal 2)
(disable-self)
)
(defrule
(taunt-detected 1 156)
=>
(set-signal 3)
(disable-self)
)
(defrule
(taunt-detected 1 149)
=>
(set-signal 4)
(disable-self)
)
(defrule
(taunt-detected 1 167)
=>
(set-signal 5)
(disable-self)
)
(defrule
(taunt-detected 1 113)
=>
(set-signal 6)
(disable-self)
)
(defrule
(taunt-detected 1 109)
=>
(set-signal 7)
(disable-self)
)
(defrule
(taunt-detected 1 200)
(food-amount >= 5)
=>
(acknowledge-taunt 1 200)
(set-signal 9)
)
---------------------------------------------------
Der letzte Befehl, ist der Befehl den ich von dir hab. Aber das klappt irgendwie nicht... hmm