Re: Brauche Hilfe für KI
Verfasst: Dienstag 28. Dezember 2004, 17:36
Ich bin neu hier. Deshalb möchte ich zuerst alle mal begrüssen: Hallo zusammen!
Vor kurzem habe ich angefangen eigene Maps zu bauen. Doch es habbert ein bischen an der KI. Ich entwerfe gerade ein RPG. Doch endweder laufen alle Einheiten dumm herum oder wenn ich das Skript Immobile Units aktiviere, greifen die feindlichen Einheiten gar nicht an. Inzwischen weiss ich, dass ihre Kanpfhandlung auf passiv eingestellt ist. Was kann ich tun?
Hier noch der Skript-Code:
<i>;This Ai file has been created by Zanzard Lothar (zanzard@loja.net).
;Based on three ai files. One created by The Rasher and the others by Herodotus and Magnus.
;
;This Ai is supposed to make the Ai's villagers and military units stand still doing nothing.
;If enemy units come near the military units of the AI, the military units will move and attack the enemy
;units and then stand still again if the enemy units leave their sight or are vanquished.
;Villagers of the AI will not fight back.
;Units of the AI will execute orders given to them by triggers most of the time.
;
;Feel free to use this AI in any scenario of AOK, but use it at your own risk.
;The author is not responsible for any problems this AI file causes to any users of it.
(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)
) </i>
Vor kurzem habe ich angefangen eigene Maps zu bauen. Doch es habbert ein bischen an der KI. Ich entwerfe gerade ein RPG. Doch endweder laufen alle Einheiten dumm herum oder wenn ich das Skript Immobile Units aktiviere, greifen die feindlichen Einheiten gar nicht an. Inzwischen weiss ich, dass ihre Kanpfhandlung auf passiv eingestellt ist. Was kann ich tun?
Hier noch der Skript-Code:
<i>;This Ai file has been created by Zanzard Lothar (zanzard@loja.net).
;Based on three ai files. One created by The Rasher and the others by Herodotus and Magnus.
;
;This Ai is supposed to make the Ai's villagers and military units stand still doing nothing.
;If enemy units come near the military units of the AI, the military units will move and attack the enemy
;units and then stand still again if the enemy units leave their sight or are vanquished.
;Villagers of the AI will not fight back.
;Units of the AI will execute orders given to them by triggers most of the time.
;
;Feel free to use this AI in any scenario of AOK, but use it at your own risk.
;The author is not responsible for any problems this AI file causes to any users of it.
(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)
) </i>