You must be logged in to post messages.
Please login or register

AI & RM Scripting
Moderated by Leif Ericson

Hop to:    
Welcome! You are not logged in. Please Login or Register.No replies
Age of Kings Heaven » Forums » AI & RM Scripting » Assinging Specific Units to attack Walls
Bottom
Topic Subject:Assinging Specific Units to attack Walls
Dolzonek123
Squire
posted 02-14-19 08:13 AM CT (US)         
How do I get rams to attack walls first
The code is passable at best
I want the AI to attack through layered walls and defenses
(defrule
(true)
=>
(set-strategic-number sn-maximum-town-size 25)
(set-strategic-number sn-percent-enemy-sighted-response 80)
(set-strategic-number sn-enemy-sighted-response-distance 50)
(set-strategic-number sn-do-not-scale-for-difficulty-level 1)
(set-difficulty-parameter ability-to-dodge-missiles 0) ; Maximum dodge
(set-difficulty-parameter ability-to-maintain-distance 0) ; Maximum fallback
; User Patch only
(set-strategic-number sn-wall-targeting-mode 1)
(set-strategic-number sn-building-targeting-mode 0)
(set-strategic-number sn-disable-tower-priority 0)
(set-strategic-number sn-ignore-attack-group-under-attack 1)
(set-strategic-number sn-number-attack-groups 6)
(disable-self)
)

(defrule
(event-detected trigger 10)
=>
(set-strategic-number sn-percent-attack-soldiers 100)
(set-strategic-number sn-percent-attack-boats 100)
(attack-now)
)

https://app.box.com/s/ztquqwd8j9vek1bbj2oyygvv72sbpskx
here is the scenario for reference

please help me

[This message has been edited by Dolzonek123 (edited 02-14-2019 @ 08:17 AM).]

You must be logged in to post messages.
Please login or register

Hop to:    

Age of Kings Heaven | HeavenGames