Ich hab ne Ki gemacht .. aber nach KI-Skriptziel greift sie ncht an bzw baut keine Einheiten
(defconst Schwert1 3)
(defconst Schwert2 4)
(defconst Schwert3 6)
(defconst Speer1 2)
(defconst Speer2 4)
(defconst Speer3 6)
(defconst Bogen1 4)
(defconst Bogen2 6)
(defconst Bogen3 8)
(defconst Ritter 5)
(defconst Plänkler 4)
(defconst Kav 5)
(defconst Mange 1)
(defconst Skorp 1)
(defconst min-Angriffstrupp 12)
(defconst max-Angriffstrupp 21)
(defconst Prozent-Angriff 100)
(defconst Angriffs-Intervall 360)
(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-hunt-drop-distance 0)
(set-strategic-number sn-maximum-stone-drop-distance 0)
(set-strategic-number sn-food-gatherer-percentage 0)
(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)
(set-strategic-number sn-percent-civilian-builders 0)
(set-strategic-number sn-cap-civilian-explorers 0)
(disable-self))
(defrule
(true)
=>
(set-strategic-number sn-percent-enemy-sighted-response 100)
(set-strategic-number sn-enemy-sighted-response-distance 100)
(set-strategic-number sn-hits-before-alliance-change 25)
(set-strategic-number sn-percent-attack-boats 0)
(set-strategic-number sn-percent-attack-soldiers 0)
(set-strategic-number sn-task-ungrouped-soldiers 0)
(set-strategic-number sn-consecutive-idle-unit-limit 0)
(set-difficulty-parameter ability-to-maintain-distance 100)
(set-difficulty-parameter ability-to-dodge-missiles 100)
(disable-self))
(defrule
(true)
=>
(set-strategic-number sn-number-explore-groups 0)
(set-strategic-number sn-minimum-explore-group-size 0)
(set-strategic-number sn-maximum-explore-group-size 0)
(disable-self))
(defrule
(true)
=>
(set-strategic-number sn-number-boat-explore-groups 0)
(set-strategic-number sn-minimum-boat-explore-group-size 0)
(set-strategic-number sn-maximum-boat-explore-group-size 0)
(disable-self))
(defrule
(event-detected trigger 4)
=>
(set-goal 10 1)
(disable-self))
(defrule
(goal 10 1)
=>
(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-hunt-drop-distance 0)
(set-strategic-number sn-maximum-stone-drop-distance 0)
(set-strategic-number sn-food-gatherer-percentage 0)
(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)
(set-strategic-number sn-percent-civilian-builders 0)
(disable-self))
(defrule
(goal 10 1)
=>
(set-strategic-number sn-number-explore-groups 0)
(set-strategic-number sn-minimum-explore-group-size 0)
(set-strategic-number sn-maximum-explore-group-size 0)
(disable-self))
(defrule
(goal 10 1)
=>
(set-strategic-number sn-percent-attack-soldiers Prozent-Angriff)
(set-strategic-number sn-attack-intelligence 100)
(set-strategic-number sn-defense-distance 100)
(set-strategic-number sn-sentry-distance 100)
(set-strategic-number sn-target-evaluation-siege-weapon 100)
(set-strategic-number sn-target-evaluation-damage-capability 100)
(set-strategic-number sn-number-attack-groups 3)
(set-strategic-number sn-minimum-attack-group-size min-Angriffstrupp)
(set-strategic-number sn-maximum-attack-group-size max-Angriffstrupp)
(attack-now)
(enable-timer 1 Angriffs-Intervall)
(enable-timer 3 6)
(enable-timer 4 6)
(enable-timer 5 6)
(disable-self))
(defrule
(timer-triggered 1)
=>
(disable-timer 1)
(enable-timer 1 Angriffs-Intervall)
(attack-now))
(defrule
(goal 10 1)
(unit-type-count-total militiaman-line less-than Schwert1)
(can-train militiaman-line)
=>
(train militiaman-line))
(defrule
(goal 10 1)
(unit-type-count-total spearman-line less-than Speer1)
(can-train spearman-line)
=>
(train spearman-line))
(defrule
(goal 10 1)
(unit-type-count-total archer-line less-than Bogen1)
(can-train archer-line)
=>
(train archer-line))
(defrule
(goal 10 1)
(unit-type-count-total skirmisher-line less-than Plänkler)
(can-train skirmisher-line)
=>
(train skirmisher-line))
(defrule
(goal 10 1)
(unit-type-count-total scout-cavalry-line less-than Kav)
(can-train scout-cavalry-line)
=>
(train scout-cavalry-line))
(defrule
(event-detected trigger 5)
=>
(set-goal 10 1)
(disable-self))
(defrule
(goal 10 1)
=>
(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-hunt-drop-distance 0)
(set-strategic-number sn-maximum-stone-drop-distance 0)
(set-strategic-number sn-food-gatherer-percentage 0)
(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)
(set-strategic-number sn-percent-civilian-builders 0)
(disable-self))
(defrule
(goal 10 1)
=>
(set-strategic-number sn-number-explore-groups 0)
(set-strategic-number sn-minimum-explore-group-size 0)
(set-strategic-number sn-maximum-explore-group-size 0)
(disable-self))
(defrule
(goal 10 1)
=>
(set-strategic-number sn-percent-attack-soldiers Prozent-Angriff)
(set-strategic-number sn-attack-intelligence 100)
(set-strategic-number sn-defense-distance 100)
(set-strategic-number sn-sentry-distance 100)
(set-strategic-number sn-target-evaluation-siege-weapon 100)
(set-strategic-number sn-target-evaluation-damage-capability 100)
(set-strategic-number sn-number-attack-groups 3)
(set-strategic-number sn-minimum-attack-group-size min-Angriffstrupp)
(set-strategic-number sn-maximum-attack-group-size max-Angriffstrupp)
(attack-now)
(enable-timer 1 Angriffs-Intervall)
(enable-timer 3 6)
(enable-timer 4 6)
(enable-timer 5 6)
(disable-self))
(defrule
(timer-triggered 1)
=>
(disable-timer 1)
(enable-timer 1 Angriffs-Intervall)
(attack-now))
(defrule
(goal 10 1)
(unit-type-count-total militiaman-line less-than Schwert2)
(can-train militiaman-line)
=>
(train militiaman-line))
(defrule
(goal 10 1)
(unit-type-count-total spearman-line less-than Speer2)
(can-train spearman-line)
=>
(train spearman-line))
(defrule
(goal 10 1)
(unit-type-count-total archer-line less-than Bogen2)
(can-train archer-line)
=>
(train archer-line))
(defrule
(goal 10 1)
(unit-type-count-total skirmisher-line less-than Plänkler)
(can-train skirmisher-line)
=>
(train skirmisher-line))
(defrule
(goal 10 1)
(unit-type-count-total scout-cavalry-line less-than Kav)
(can-train scout-cavalry-line)
=>
(train scout-cavalry-line))
(defrule
(event-detected trigger 6)
=>
(set-goal 10 1)
(disable-self))
(defrule
(goal 10 1)
=>
(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-hunt-drop-distance 0)
(set-strategic-number sn-maximum-stone-drop-distance 0)
(set-strategic-number sn-food-gatherer-percentage 0)
(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)
(set-strategic-number sn-percent-civilian-builders 0)
(disable-self))
(defrule
(goal 10 1)
=>
(set-strategic-number sn-number-explore-groups 0)
(set-strategic-number sn-minimum-explore-group-size 0)
(set-strategic-number sn-maximum-explore-group-size 0)
(disable-self))
(defrule
(goal 10 1)
=>
(set-strategic-number sn-percent-attack-soldiers Prozent-Angriff)
(set-strategic-number sn-attack-intelligence 100)
(set-strategic-number sn-defense-distance 100)
(set-strategic-number sn-sentry-distance 100)
(set-strategic-number sn-target-evaluation-siege-weapon 100)
(set-strategic-number sn-target-evaluation-damage-capability 100)
(set-strategic-number sn-number-attack-groups 3)
(set-strategic-number sn-minimum-attack-group-size min-Angriffstrupp)
(set-strategic-number sn-maximum-attack-group-size max-Angriffstrupp)
(attack-now)
(enable-timer 1 Angriffs-Intervall)
(enable-timer 3 6)
(enable-timer 4 6)
(enable-timer 5 6)
(disable-self))
(defrule
(timer-triggered 1)
=>
(disable-timer 1)
(enable-timer 1 Angriffs-Intervall)
(attack-now))
(defrule
(goal 10 1)
(unit-type-count-total militiaman-line less-than Schwert3)
(can-train militiaman-line)
=>
(train militiaman-line))
(defrule
(goal 10 1)
(unit-type-count-total spearman-line less-than Speer3)
(can-train spearman-line)
=>
(train spearman-line))
(defrule
(goal 10 1)
(unit-type-count-total archer-line less-than Bogen3)
(can-train archer-line)
=>
(train archer-line))
(defrule
(goal 10 1)
(unit-type-count-total skirmisher-line less-than Plänkler)
(can-train skirmisher-line)
=>
(train skirmisher-line))
(defrule
(goal 10 1)
(unit-type-count-total knight-line less-than Ritter)
(can-train knight-line)
=>
(train knight-line))
(defrule
(goal 10 1)
(unit-type-count-total scorpion-line less-than Skorp)
(can-train scorpion-line)
=>
(train scorpion-line))
(defrule
(goal 10 1)
(unit-type-count-total mangonel-line less-than Mange)
(can-train mangonel-line)
=>
(train mangonel-line))