ich habe einen spieler ohne dorfis und ohne rohstoffe diese ki gegeben:
;ai-script
;RESSOURCENABBAU STEUERN
(defconst Nahrung 400)
(defconst Holz 400)
(defconst Gold 400)
(defconst Stein 400)
(defrule
(true)
=>
(set-strategic-number sn-maximum-food-drop-distance 30)
(set-strategic-number sn-maximum-wood-drop-distance 30)
(set-strategic-number sn-maximum-gold-drop-distance 30)
(set-strategic-number sn-maximum-hunt-drop-distance 30)
(set-strategic-number sn-maximum-stone-drop-distance 30)
(set-strategic-number sn-food-gatherer-percentage 30)
(set-strategic-number sn-wood-gatherer-percentage 25)
(set-strategic-number sn-gold-gatherer-percentage 25)
(set-strategic-number sn-stone-gatherer-percentage 10)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-builders 10)
(disable-self))
(defrule
(food-amount less-than Nahrung)
(strategic-number sn-food-gatherer-percentage less-than 50)
=>
(set-strategic-number sn-food-gatherer-percentage 50)
(set-strategic-number sn-wood-gatherer-percentage 20)
(set-strategic-number sn-gold-gatherer-percentage 20)
(set-strategic-number sn-stone-gatherer-percentage 5)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-builders 5)
(disable-self))
(defrule
(wood-amount less-than Holz)
(strategic-number sn-wood-gatherer-percentage less-than 50)
=>
(set-strategic-number sn-food-gatherer-percentage 20)
(set-strategic-number sn-wood-gatherer-percentage 50)
(set-strategic-number sn-gold-gatherer-percentage 20)
(set-strategic-number sn-stone-gatherer-percentage 5)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-builders 5)
(disable-self))
(defrule
(gold-amount less-than Gold)
(strategic-number sn-gold-gatherer-percentage less-than 50)
=>
(set-strategic-number sn-food-gatherer-percentage 20)
(set-strategic-number sn-wood-gatherer-percentage 20)
(set-strategic-number sn-gold-gatherer-percentage 50)
(set-strategic-number sn-stone-gatherer-percentage 5)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-builders 5)
(disable-self))
(defrule
(stone-amount less-than Stein)
(strategic-number sn-stone-gatherer-percentage less-than 30)
=>
(set-strategic-number sn-food-gatherer-percentage 20)
(set-strategic-number sn-wood-gatherer-percentage 20)
(set-strategic-number sn-gold-gatherer-percentage 20)
(set-strategic-number sn-stone-gatherer-percentage 30)
(set-strategic-number sn-cap-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-explorers 0)
(set-strategic-number sn-percent-civilian-builders 10)
(disable-self))
(defrule
(wood-amount greater-than 2000)
(or (food-amount less-than 250)
(or (gold-amount less-than 250)(stone-amount less-than 25)))
(can-sell-commodity wood)
=>
(release-escrow wood)
(sell-commodity wood))
(defrule
(food-amount greater-than 2000)
(or (wood-amount less-than 250)
(or (gold-amount less-than 250)(stone-amount less-than 25)))
(can-sell-commodity food)
=>
(release-escrow food)
(sell-commodity food))
(defrule
(stone-amount greater-than 2000)
(or (wood-amount less-than 250)
(or (food-amount less-than 250)(gold-amount less-than 25)))
(can-sell-commodity stone)
=>
(release-escrow stone)
(sell-commodity stone))
(defrule
(gold-amount greater-than 2000)
(wood-amount less-than 250)
(can-buy-commodity wood)
(commodity-buying-price wood less-than 60)
=>
(release-escrow gold)
(buy-commodity wood))
(defrule
(gold-amount greater-than 2000)
(food-amount less-than 250)
(can-buy-commodity food)
(commodity-buying-price food less-than 60)
=>
(release-escrow gold)
(buy-commodity food))
(defrule
(gold-amount greater-than 2000)
(stone-amount less-than 250)
(can-buy-commodity stone)
(commodity-buying-price stone less-than 60)
=>
(release-escrow gold)
(buy-commodity stone))
(defrule
(food-amount less-than 200)
=>
(cc-add-resource food 2000))
(defrule
(wood-amount less-than 200)
=>
(cc-add-resource wood 2000))
(defrule
(gold-amount less-than 200)
=>
(cc-add-resource gold 2000))
(defrule
(stone-amount less-than 200)
=>
(cc-add-resource stone 2000))
(defrule
(not (resource-found gold))
(players-building-type-count any-ally market greater-or-equal 0)
(unit-type-count trade-cart less-than 4)
(can-train trade-cart)
=>
(train trade-cart))
(defrule
(players-building-type-count any-ally dock greater-or-equal 1)
(unit-type-count trade-cog less-than 4)
(can-train trade-cog)
=>
(train trade-cog))
;POPULATION UND ANGRIFFSTAKTIK STEUERN
#load-if-defined DIFFICULTY-EASIEST
(defconst Dorfbewohner 25)
(defconst Infanterie 10)
(defconst Kavallerie 10)
(defconst Unique 10)
(defconst Bogenschuetzen 10)
(defconst min-Angriffstrupp 5)
(defconst max-Angriffstrupp 10)
(defconst Prozent-Angriff 50)
(defconst Belagerungswaffen 4)
(defconst Schiffe 5)
(defconst Tribok 3)
#end-if
#load-if-defined DIFFICULTY-EASY
(defconst Dorfbewohner 25)
(defconst Infanterie 15)
(defconst Kavallerie 15)
(defconst Unique 15)
(defconst Bogenschuetzen 15)
(defconst min-Angriffstrupp 5)
(defconst max-Angriffstrupp 15)
(defconst Prozent-Angriff 70)
(defconst Belagerungswaffen 4)
(defconst Schiffe 5)
(defconst Tribok 3)
#end-if
#load-if-defined DIFFICULTY-MODERATE
(defconst Dorfbewohner 30)
(defconst Infanterie 25)
(defconst Kavallerie 25)
(defconst Unique 20)
(defconst Bogenschuetzen 25)
(defconst min-Angriffstrupp 10)
(defconst max-Angriffstrupp 20)
(defconst Prozent-Angriff 100)
(defconst Belagerungswaffen 8)
(defconst Schiffe 10)
(defconst Tribok 5)
#end-if
#load-if-defined DIFFICULTY-HARD
(defconst Dorfbewohner 30)
(defconst Infanterie 30)
(defconst Kavallerie 30)
(defconst Unique 25)
(defconst Bogenschuetzen 30)
(defconst min-Angriffstrupp 15)
(defconst max-Angriffstrupp 25)
(defconst Prozent-Angriff 100)
(defconst Belagerungswaffen 10)
(defconst Schiffe 15)
(defconst Tribok 10)
#end-if
#load-if-defined DIFFICULTY-HARDEST
(defconst Dorfbewohner 30)
(defconst Infanterie 30)
(defconst Kavallerie 30)
(defconst Unique 25)
(defconst Bogenschuetzen 30)
(defconst min-Angriffstrupp 20)
(defconst max-Angriffstrupp 30)
(defconst Prozent-Angriff 100)
(defconst Belagerungswaffen 10)
(defconst Schiffe 20)
(defconst Tribok 10)
#end-if
(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
(true)
=>
(set-strategic-number sn-percent-enemy-sighted-response 100)
(set-strategic-number sn-hits-before-alliance-change 25)
(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 10)
(disable-self))
(defrule
(true)
=>
(set-strategic-number sn-number-explore-groups 1)
(set-strategic-number sn-minimum-explore-group-size 2)
(set-strategic-number sn-maximum-explore-group-size 4)
(set-strategic-number sn-total-number-explorers 4)
(disable-self))
(defrule
(military-population greater-or-equal min-Angriffstrupp)
(game-time greater-than 300)
=>
(set-strategic-number sn-percent-attack-soldiers Prozent-Angriff)
(set-strategic-number sn-attack-intelligence 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-task-ungrouped-soldiers 30)
(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 120)
(disable-self))
(defrule
(timer-triggered 1)
=>
(disable-timer 1)
(enable-timer 1 120)
(attack-now))
(defrule
(true)
(unit-type-count-total villager less-than Dorfbewohner)
(can-train villager)
=>
(train villager))
;MILITAER TRAINIEREN
(defrule
(unit-type-count-total scout-cavalry-line less-than 5)
(can-train scout-cavalry-line)
=>
(train scout-cavalry-line))
(defrule
(unit-type-count-total knight-line less-than Kavallerie)
(can-train knight-line)
=>
(train knight-line))
(defrule
(unit-type-count archer-line less-than Bogenschuetzen)
(can-train archer-line)
=>
(train archer-line))
(defrule
(not (can-train archer-line))
(unit-type-count skirmisher-line less-than Bogenschuetzen)
(can-train skirmisher-line)
=>
(train skirmisher-line))
(defrule
(unit-type-count-total militiaman-line less-than Infanterie)
(can-train militiaman-line)
=>
(train militiaman-line))
(defrule
(not (can-train militiaman-line))
(unit-type-count-total spearman-line less-than Infanterie)
(can-train spearman-line)
=>
(train spearman-line))
(defrule
(unit-type-count monk less-than 5)
(can-train monk)
=>
(train monk))
(defrule
(not (can-train mangonel-line))
(unit-type-count-total scorpion-line less-than Belagerungswaffen)
(can-train scorpion-line)
=>
(train scorpion-line))
(defrule
(not (can-train battering-ram-line))
(unit-type-count-total mangonel-line less-than Belagerungswaffen)
(can-train mangonel-line)
=>
(train mangonel-line))
(defrule
(unit-type-count-total battering-ram-line less-than Belagerungswaffen)
(can-train battering-ram-line)
=>
(train battering-ram-line))
(defrule
(unit-type-count trebuchet less-than Tribok)
(can-train trebuchet)
=>
(train trebuchet))
(defrule
(unit-type-count trebuchet equal Tribok)
(unit-type-count-total my-unique-unit-line less-than Unique)
(can-train my-unique-unit-line)
=>
(train my-unique-unit-line))
;HAFEN KONTROLLIEREN
(defrule
(players-building-type-count any-enemy dock greater-or-equal 1)
(building-type-count dock less-than 3)
=>
(build dock))
(defrule
(players-building-type-count any-enemy dock greater-or-equal 3)
(building-type-count dock less-than 5)
=>
(build dock))
(defrule
(players-building-type-count any-enemy dock greater-or-equal 1)
(unit-type-count galley-line less-than Schiffe)
(can-train galley-line)
=>
(train galley-line))
(defrule
(players-building-type-count any-enemy dock greater-or-equal 1)
(unit-type-count fire-ship-line less-than 5)
(can-train fire-ship-line)
=>
(train fire-ship-line))
(defrule
(players-building-type-count any-enemy dock greater-or-equal 1)
(unit-type-count demolition-ship-line less-than 2)
(can-train demolition-ship-line)
=>
(train demolition-ship-line))
(defrule
(players-building-type-count any-enemy dock greater-or-equal 1)
(unit-type-count cannon-galleon-line less-than 3)
(can-train cannon-galleon-line)
=>
(train cannon-galleon-line))
(defrule
(players-building-type-count any-enemy dock greater-or-equal 1)
=>
(set-strategic-number sn-number-boat-explore-groups 1)
(set-strategic-number sn-minimum-boat-explore-group-size 2)
(set-strategic-number sn-maximum-boat-explore-group-size 4)
(disable-self))
(defrule
(players-building-type-count any-enemy dock greater-or-equal 1)
=>
(set-strategic-number sn-number-boat-attack-groups 2)
(set-strategic-number sn-minimum-boat-attack-group-size 3)
(set-strategic-number sn-maximum-boat-attack-group-size 10)
(disable-self))
(defrule
(players-building-type-count any-enemy dock greater-or-equal 3)
=>
(set-strategic-number sn-number-boat-attack-groups 3)
(set-strategic-number sn-minimum-boat-attack-group-size 5)
(set-strategic-number sn-maximum-boat-attack-group-size 15)
(disable-self))
;BUILDINGS
(defconst Dorfzentrum 2)
(defconst Kaserne 3)
(defconst Schiessanlage 3)
(defconst Stall 4)
(defconst Waffenschmiede 2)
(defconst Burg 2)
(defconst Kloster 2)
(defconst Marktplatz 1)
(defconst Muehle 2)
(defconst Hafen 1)
(defconst Schmiede 2)
(defconst Uni 2)
(defconst Turm 7)
(defconst Holzfällerlager 2)
(defconst Bergarbeiterlager 2)
;FELDER BAUEN
(defrule
(sheep-and-forage-too-far)
(idle-farm-count less-than 1)
(can-build farm)
=>
(build farm))
;HAEUSER BAUEN
(defrule
(housing-headroom less-than 5)
(can-build house)
=>
(build house))
(defrule
(building-type-count town-center less-than Dorfzentrum)
(can-build town-center)
=>
(build town-center))
(defrule
(building-type-count barracks less-than Kaserne)
(can-build barracks)
=>
(build barracks))
(defrule
(building-type-count archery-range less-than Schiessanlage)
(can-build archery-range)
=>
(build archery-range))
(defrule
(building-type-count stable less-than Stall)
(can-build stable)
=>
(build stable))
(defrule
(building-type-count siege-workshop less-than Waffenschmiede)
(can-build siege-workshop)
=>
(build siege-workshop))
(defrule
(building-type-count castle less-than Burg)
(can-build castle)
=>
(build castle))
(defrule
(building-type-count monastery less-than Kloster)
(can-build monastery)
=>
(build monastery))
(defrule
(building-type-count market less-than Marktplatz)
(can-build market)
=>
(build market))
(defrule
(building-type-count dock less-than Hafen)
(can-build dock)
=>
(build dock))
(defrule
(building-type-count blacksmith less-than Schmiede)
(can-build blacksmith)
=>
(build blacksmith))
(defrule
(building-type-count university less-than Uni)
(can-build university)
=>
(build university))
(defrule
(building-type-count watch-tower-line less-than Turm)
(can-build watch-tower-line)
=>
(build watch-tower-line))
(defrule
(building-type-count lumber-camp less-than Holzfällerlager)
(can-build lumber-camp)
=>
(build lumber-camp))
(defrule
(building-type-count mining-camp less-than Bergarbeiterlager)
(can-build mining-camp)
=>
(build mining-camp))
(defrule
(building-type-count mining-camp less-than Bergarbeiterlager)
(can-build mining-camp)
=>
(build mining-camp))
(defrule
(current-age greater-or-equal feudal-age)
(can-build-wall 2 stone-wall-line)
=>
(build-wall 2 stone-wall-line))
(defrule
(current-age greater-or-equal feudal-age)
(building-type-count stone-wall-line greater-or-equal 20)
(can-build-gate 2)
=>
(build-gate 2))
;TECHNOLOGY
;archery
(defrule
(true)
=>
(research ri-arbalest)
(research ri-crossbow)
(research ri-elite-skirmisher)
(research ri-hand-cannon)
(research ri-heavy-cavalry-archer))
;barracks
(defrule
(true)
=>
(research ri-champion)
(research ri-long-swordsman)
(research ri-man-at-arms)
(research ri-pikeman)
(research ri-squires)
(research ri-tracking)
(research ri-two-handed-swordsman))
;blacksmith
(defrule
(true)
=>
(research ri-blast-furnace)
(research ri-bodkin-arrow)
(research ri-bracer)
(research ri-chain-barding)
(research ri-chain-mail)
(research ri-fletching)
(research ri-forging)
(research ri-iron-casting)
(research ri-leather-archer-armor)
(research ri-padded-archer-armor)
(research ri-plate-barding)
(research ri-plate-mail)
(research ri-ring-archer-armor)
(research ri-scale-barding)
(research ri-scale-mail))
;castle
(defrule
(can-research my-unique-unit-upgrade)
=>
(research my-unique-unit-upgrade)
(disable-self))
(defrule
(true)
=>
(research ri-conscription)
(research ri-hoardings)
(research ri-sappers))
;dock
(defrule
(true)
=>
(research ri-cannon-galleon)
(research ri-careening)
(research ri-deck-guns)
(research ri-dry-dock)
(research ri-elite-longboat)
(research ri-fast-fire-ship)
(research ri-galleon)
(research ri-heavy-demolition-ship)
(research ri-shipwright)
(research ri-war-galley))
;lumber camp
(defrule
(true)
=>
(research ri-bow-saw)
(research ri-double-bit-axe)
(research ri-two-man-saw))
;market
(defrule
(true)
=>
(research ri-banking)
(research ri-cartography)
(research ri-coinage)
(research ri-guilds))
;mill
(defrule
(true)
=>
(research ri-crop-rotation)
(research ri-heavy-plow)
(research ri-horse-collar))
;mining camp
(defrule
(true)
=>
(research ri-gold-mining)
(research ri-gold-shaft-mining)
(research ri-stone-mining)
(research ri-stone-shaft-mining))
;monastery
(defrule
(true)
=>
(research ri-atonement)
(research ri-block-printing)
(research ri-faith)
(research ri-fervor)
(research ri-illumination)
(research ri-redemption)
(research ri-sanctity))
;siege workshop
(defrule
(true)
=>
(research ri-bombard-cannon)
(research ri-capped-ram)
(research ri-heavy-scorpion)
(research ri-onager)
(research ri-scorpion)
(research ri-siege-onager)
(research ri-siege-ram))
;stable
(defrule
(true)
=>
(research ri-cavalier)
(research ri-heavy-camel)
(research ri-husbandry)
(research ri-light-cavalry)
(research ri-paladin))
;town center
(defrule
(true)
=>
(research ri-hand-cart)
(research ri-loom)
(research ri-town-patrol)
(research ri-town-watch)
(research ri-wheel-barrow))
;university
(defrule
(true)
=>
(research ri-architecture)
(research ri-ballistics)
(research ri-bombard-tower)
(research ri-chemistry)
(research ri-fortified-wall)
(research ri-guard-tower)
(research ri-heated-shot)
(research ri-keep)
(research ri-masonry)
(research ri-murder-holes)
(research ri-siege-engineers)
(research ri-stonecutting))
;age up
(defrule
(can-research feudal-age)
=>
(research feudal-age)
(disable-self))
(defrule
(can-research castle-age)
=>
(research castle-age)
(disable-self))
(defrule
(can-research imperial-age)
=>
(research imperial-age)
(disable-self))
;AUFGEBEN
(defrule
(unit-type-count villager less-than 3)
(military-population less-than 3)
(building-type-count castle equal 0)
(building-type-count town-center equal 0)
=>
(resign))
aber trotzdem baut er units und wird sehr mächtig