- Joined
- Dec 3, 2020
- Messages
- 881
So I made an .ai script for a human bot.
I order the AI to have 2 footmen, 1 footman archer, 1 sorceress, 1 captain and 1 Doril Aran (custom unit, non hero) as campaign defenders.
Initially it's fine but after like 16 minutes I update the defenders by making them ---> 3 footmen, 2 footman archers, 2 sorceresses, 1 knight, 1 captain and 1 Doril Aran.
When this happens, the AI just uses 20 units as defenders, way more than I have told it to use!
As you can see, it even uses Dwarven Battlepriests as campaign defenders.
Is there a way to easily fix this???
I've attached the .ai file on this thread.
And yes, before anyone asks, I do call the call WaitForSignal() command 4 times in the trigger editor, with a 4 minute delay between each one and the AddGuard commands also work properly.
I order the AI to have 2 footmen, 1 footman archer, 1 sorceress, 1 captain and 1 Doril Aran (custom unit, non hero) as campaign defenders.
Initially it's fine but after like 16 minutes I update the defenders by making them ---> 3 footmen, 2 footman archers, 2 sorceresses, 1 knight, 1 captain and 1 Doril Aran.
When this happens, the AI just uses 20 units as defenders, way more than I have told it to use!
As you can see, it even uses Dwarven Battlepriests as campaign defenders.
Is there a way to easily fix this???
I've attached the .ai file on this thread.
And yes, before anyone asks, I do call the call WaitForSignal() command 4 times in the trigger editor, with a 4 minute delay between each one and the AddGuard commands also work properly.